经典无线场景1:HUAWEI AC+AP组网
1、LSW2配置如下: <Huawei>dis cu
sysname Huawei
vlan batch 100 200 to 201 4000
dhcp enable------开启DHCP
interface Vlanif100----配置网关做DHCP中继 ip address 192.168.100.254 255.255.255.0 dhcp select relay dhcp relay server-ip 192.168.100.100
interface Vlanif200 ip address 192.168.200.254 255.255.255.0 dhcp select relay dhcp relay server-ip 192.168.100.100
interface Vlanif201 ip address 192.168.201.254 255.255.255.0 dhcp select relay dhcp relay server-ip 192.168.100.100
interface Vlanif4000 ip address 12.12.12.2 255.255.255.252
interface MEth0/0/1
interface GigabitEthernet0/0/1
port link-type access
port default vlan 100
interface GigabitEthernet0/0/2 port link-type trunk port trunk allow-pass vlan 2 to 4094 interface GigabitEthernet0/0/24 port link-type trunk port trunk allow-pass vlan 2 to 4094
interface NULL0
user-interface con 0 user-interface vty 0 4
return
2、LSW2配置如下: <Huawei>dis cu
sysname Huawei
vlan batch 100 200 to 201 interface Ethernet0/0/1 port link-type access port default vlan 100
interface Ethernet0/0/2 port link-type access port default vlan 100
interface Ethernet0/0/3 port link-type access port default vlan 100
3、AC配置如下: <AC6005>dis cu
vlan batch 100 200 to 201
interface Vlanif100 ip address 192.168.100.1 255.255.255.0
interface GigabitEthernet0/0/1
interface GigabitEthernet0/0/2 port link-type trunk port trunk allow-pass vlan 2 to 4094
capwap source interface vlanif100
wlan security-profile name security-profile--密码设置 security wpa-wpa2 psk pass-phrase %^%#RRyBSyi=O87o9^L|24&-H$5(K$>J<G63AI!#J{oB ssid-profile name ssid-profile--信息名字 ssid bpg-menting vap-profile name vap-profile--射频 service-vlan vlan-id 200--关联业务vlan ssid-profile ssid-profile--信息名字 security-profile security-profile--密码 ap auth-mode no-auth ap-group name 17L---建立组 radio 0 vap-profile vap-profile wlan 1 radio 2 vap-profile vap-profile wlan 2 ap-id 0 type-id 35 ap-mac 00e0-fce2-7660 ap-sn 210235448310F662E12C ap-name id0 ap-group 17L ap-id 1 type-id 35 ap-mac 00e0-fc6a-11e0 ap-sn 210235448310A0200834 ap-name id1 ap-group 17L provision-ap return <AC6005>
4、DHCP配置 [Huawei]dis cu [V200R003C00]
snmp-agent local-engineid 800007DB03000000000000 snmp-agent
clock timezone China-Standard-Time minus 08:00:00
portal local-server load portalpage.zip
drop illegal-mac alarm
set cpu-usage threshold 80 restore 75
dhcp enable
ip pool vlan100 gateway-list 192.168.100.254 network 192.168.100.0 mask 255.255.255.0
ip pool vlan200 gateway-list 192.168.200.254 network 192.168.200.0 mask 255.255.255.0
ip pool vlan201 gateway-list 192.168.201.254 network 192.168.201.0 mask 255.255.255.0
aaa authentication-scheme default authorization-scheme default accounting-scheme default domain default domain default_admin local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$ local-user admin service-type http
firewall zone Local priority 15
interface Ethernet0/0/0
interface Ethernet0/0/1
interface Ethernet0/0/2
interface Ethernet0/0/3
interface Ethernet0/0/4
interface Ethernet0/0/5
interface Ethernet0/0/6
interface Ethernet0/0/7
interface GigabitEthernet0/0/0 ip address 192.168.100.100 255.255.255.0 dhcp select global
interface GigabitEthernet0/0/1
interface NULL0
ip route-static 192.168.0.0 255.255.0.0 192.168.100.254
user-interface con 0 authentication-mode password user-interface vty 0 4 user-interface vty 16 20
wlan ac
return [Huawei]
5、验证同PC