拓扑
相关设备配置
S1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| # sysname S1 # vlan batch 100 to 101 # dhcp enable # ip pool sta gateway-list 192.168.101.254 network 192.168.101.0 mask 255.255.255.0 # interface Vlanif101 ip address 192.168.101.254 255.255.255.0 dhcp select global # interface GigabitEthernet0/0/10 port link-type trunk port trunk allow-pass vlan 100 to 101 # interface GigabitEthernet0/0/12 # interface GigabitEthernet0/0/13 port link-type trunk port trunk allow-pass vlan 100 to 101 # interface GigabitEthernet0/0/14 port link-type trunk port trunk allow-pass vlan 100 to 101 # interface LoopBack0 ip address 10.0.1.1 255.255.255.255 # return
|
S2(AC)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
| # sysname AC # vlan batch 100 to 101 # dhcp enable # ip pool ap gateway-list 192.168.100.254 network 192.168.100.0 mask 255.255.255.0 # interface Vlanif100 ip address 192.168.100.254 255.255.255.0 dhcp select global # interface GigabitEthernet0/0/10 port link-type trunk port trunk allow-pass vlan 100 to 101 # wlan security-profile name HCIA-WLAN security wpa-wpa2 psk pass-phrase %^%#V-rr;CTW$X%,nJ/0jcmO!tRQ(pt;^8IN,z1||UU)%^%# aes ssid-profile name HCIA-WLAN ssid HCIA-WLAN vap-profile name HCIA-WLAN service-vlan vlan-id 101 ssid-profile HCIA-WLAN security-profile HCIA-WLAN ap-group name ap-group1 radio 0 vap-profile HCIA-WLAN wlan 1 radio 1 vap-profile HCIA-WLAN wlan 1 radio 2 vap-profile HCIA-WLAN wlan 1 ap-id 0 type-id 75 ap-mac 60f1-8a9c-2b40 ap-sn 21500831023GJ9022622 ap-name ap1 ap-group ap-group1 ap-id 1 type-id 75 ap-mac b4fb-f9b7-de40 ap-sn 21500831023GJ2001889 ap-name ap2 ap-group ap-group1 provision-ap # return
|
S3
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| # sysname S3 # vlan batch 100 to 101 # interface GigabitEthernet0/0/1 port link-type trunk port trunk allow-pass vlan 100 to 101 # interface GigabitEthernet0/0/4 port link-type trunk port trunk pvid vlan 100 port trunk allow-pass vlan 100 to 101 # return
|
S4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| # sysname S4 # vlan batch 100 to 101 # interface GigabitEthernet0/0/1 port link-type trunk port trunk allow-pass vlan 100 to 101 # interface GigabitEthernet0/0/4 port link-type trunk port trunk pvid vlan 100 port trunk allow-pass vlan 100 to 101 # return
|
AP上线
配置完成后,等待一会,AP就会正常工作,终端即可连接网络
在终端ping网关测试连通性
配置完成