(1)实现AP与AC的连通
AC: 配置AC与用户的VLAN,将与核心交换机的接口设置为trunk模式
[AC6005]vlan 100
[AC6005-vlan100]int vlan 100
[AC6005-Vlanif100]ip add 192.168.100.100 24
[AC6005-Vlanif100]quit
[AC6005]vlan batch 10 20
[AC6005]int g0/0/1
[AC6005-GigabitEthernet0/0/1]port link-type trunk
[AC6005-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[AC6005-GigabitEthernet0/0/1]quit
三层核心交换机:创建并配置AC,AP,以及用户设备的VLAN,配置各个接口,创建AP的DHCP地址池
[Huawei]vlan batch 10 20 192 100
[Huawei]interface g0/0/1
[Huawei-GigabitEthernet0/0/1]port link-type trunk
[Huawei-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[Huawei-GigabitEthernet0/0/1]q
[Huawei]interface vlan 100
[Huawei-Vlanif100]ip address 192.168.100.254 24
[Huawei-Vlanif100]q
[Huawei]interface g0/0/2
[Huawei-GigabitEthernet0/0/2]port link-type trunk
[Huawei-GigabitEthernet0/0/2]port trunk allow-pass vlan all
[Huawei-GigabitEthernet0/0/2]q
[Huawei]interface vlan 192
[Huawei-Vlanif192]ip address 192.168.10.254 24
[Huawei-Vlanif192]q
[Huawei]dhcp enable
[Huawei]ip pool forap
[Huawei-ip-pool-forap]network 192.168.10.0 mask 255.255.255.0
[Huawei-ip-pool-forap]gateway-list 192.168.10.254
[Huawei-ip-pool-forap]option 43 sub-option 2 ip-address 192.168.100.100
[Huawei-ip-pool-forap]int vlan 192
[Huawei-Vlanif192]dhcp select global
[Huawei-Vlanif192]q
二层交换机:创建AP的VLAN,配置各个接口
[Huawei]vlan 192
[Huawei]interface e0/0/3
[Huawei-Ethernet0/0/3]port link-type trunk
[Huawei-Ethernet0/0/3]port trunk allow-pass vlan all
[Huawei-Ethernet0/0/3]q
[Huawei]interface e0/0/1
[Huawei-Ethernet0/0/1]port link-type access
[Huawei-Ethernet0/0/1]port default vlan 192
[Huawei-Ethernet0/0/1]q
[Huawei]interface e0/0/2
[Huawei-Ethernet0/0/2]port link-type access
[Huawei-Ethernet0/0/2]port default vlan 192
[Huawei-Ethernet0/0/2]q
AC: 配置AP与AC相连的静态路由
[AC6005]ip route-static 192.168.10.0 24 192.168.100.254
查看AP的IP地址并查看与AC的连通性:
(2)在AC上配置WLAN相关参数
AC: 配置ssid,security,vap模板
[AC6005]wlan
[AC6005-wlan-view]ssid-profile name ssid-wzr
[AC6005-wlan-ssid-prof-ssid-wzr]ssid wzr
[AC6005-wlan-ssid-prof-ssid-wzr]q
[AC6005-wlan-view]security-profile name sec-wzr
[AC6005-wlan-sec-prof-sec-wzr]security wpa-wpa2 psk pass-phrase a1234567 aes
[AC6005-wlan-sec-prof-sec-wzr]q
[AC6005-wlan-view]vap-profile name vap-wzr
[AC6005-wlan-vap-prof-vap-wzr]forward-mode tunnel
[AC6005-wlan-vap-prof-vap-wzr]service-vlan vlan-id 10
[AC6005-wlan-vap-prof-vap-wzr]ssid-profile ssid-wzr
[AC6005-wlan-vap-prof-vap-wzr]security-profile sec-wzr
[AC6005-wlan-vap-prof-vap-wzr]q
[AC6005-wlan-view]ssid-profile name ssid-wzr1
[AC6005-wlan-ssid-prof-ssid-wzr1]ssid wzr1
[AC6005-wlan-ssid-prof-ssid-wzr1]q
[AC6005-wlan-view]security-profile name sec-wzr1
[AC6005-wlan-sec-prof-sec-wzr1]security wpa-wpa2 psk pass-phrase b1234567 aes
[AC6005-wlan-sec-prof-sec-wzr1]q
[AC6005-wlan-view]vap-profile name vap-wzr1
[AC6005-wlan-vap-prof-vap-wzr1]forward-mode tunnel
[AC6005-wlan-vap-prof-vap-wzr1]service-vlan vlan-id 20
[AC6005-wlan-vap-prof-vap-wzr1]ssid-profile ssid-wzr1
[AC6005-wlan-vap-prof-vap-wzr1]security-profile sec-wzr1
[AC6005-wlan-vap-prof-vap-wzr1]q
(3)把AP加入到AP组中,配置用户的DHCP
AC: 用vap模板将两个ssid加入到AP组中,再通过AP的MAC地址来把AP添加到AC上
[AC6005-wlan-view]ap-group name group-xm
[AC6005-wlan-ap-group-group-xm]vap-profile vap-wzr wlan 1 radio all
[AC6005-wlan-ap-group-group-xm]vap-profile vap-wzr1 wlan 2 radio all
[AC6005-wlan-view]ap auth-mode mac-auth
[AC6005-wlan-view]ap-id 0 ap-mac 00e0-fce9-6440
[AC6005-wlan-ap-0]ap-name ap-wzr
[AC6005-wlan-ap-0]ap-group group-xm
[AC6005-wlan-ap-0]q
[AC6005-wlan-view]ap-id 1 ap-mac 00e0-fcbf-2cb0
[AC6005-wlan-ap-1]ap-name ap-wzr1
[AC6005-wlan-ap-1]ap-group group-xm
[AC6005-wlan-ap-1]q
[AC6005-wlan-view]q
[AC6005]capwap source interface Vlanif 100
三层核心交换机
[Huawei]ip pool forwzr
[Huawei-ip-pool-forwzr]network 172.16.1.0 mask 255.255.255.0
[Huawei-ip-pool-forwzr]gateway-list 172.16.1.254
[Huawei-ip-pool-forwzr]q
[Huawei]interface vlan 10
[Huawei-Vlanif10]dhcp select global
[Huawei-Vlanif10]ip add 172.16.1.254 24
[Huawei-Vlanif10]q
[Huawei]ip pool forwzr1
[Huawei-ip-pool-forwzr1]network 172.16.2.0 mask 255.255.255.0
[Huawei-ip-pool-forwzr1]gateway-list 172.16.2.254
[Huawei-ip-pool-forwzr1]q
[Huawei]int vlan 20
[Huawei-Vlanif20]dhcp select global
[Huawei-Vlanif20]ip add 172.16.2.254 24
[Huawei-Vlanif20]q
(4)配置路由器
[Huawei]interface g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 200.200.200.200 24
[Huawei-GigabitEthernet0/0/0]q
[Huawei]ip route-static 0.0.0.0 0.0.0.0 200.200.200.254
[Huawei]q
[Huawei]vlan 200
[Huawei-vlan200]int vlan 200
[Huawei-Vlanif200]ip add 200.200.200.254 24
[Huawei-Vlanif200]q
[Huawei]interface g0/0/3
[Huawei-GigabitEthernet0/0/3]port link-type access
[Huawei-GigabitEthernet0/0/3]port default vlan 200
[Huawei-GigabitEthernet0/0/3]q
标签:AC6005,vlan,wlan,ip,配置,基础,Huawei,vap,无线 From: https://www.cnblogs.com/guoxinfeng/p/18548274