interface GigabitEthernet0/0/1 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 100 to 101 # interface GigabitEthernet0/0/2 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 200 to 201 #
interface GigabitEthernet0/0/3 port link-type access port default vlan 10 #
interface Eth-Trunk10 port link-type trunk port trunk allow-pass vlan 300
undo port trunk allow-pass vlan 1
trunkport GigabitEthernet 0/0/23 0/0/24
AC
system-view
sysname AC
vlan 300
quit
#
interface Eth-Trunk10 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 300
#配置全局地址池为AP1和AP2分配IP地址 ip pool visit-ap1 gateway-list 172.16.100.1 network 172.16.100.0 mask 24 option 43 sub-option 1 ip-address 172.16.30.2 #
interface Vlanif100 dhcp select global
#配置全局地址池为AP3分配IP地址
ip pool visit-ap2 gateway-list 172.16.200.1 network 172.16.200.0 mask 24 option 43 sub-option 1 ip-address 172.16.30.2 #
interface Vlanif200 dhcp select global
#配置全局地址池为AP1、AP2下接入的STA分配IP地址
ip pool area1-sta gateway-list 172.16.101.1 network 172.16.101.0 mask 24 #
interface Vlanif101 dhcp select global
#配置全局地址池为AP3下接入的STA分配IP地址 ip pool area2-sta gateway-list 172.16.201.1 network 172.16.201.0 mask 24
# interface Vlanif201 dhcp select global #
配置路由
配置AC的默认路由指向LSW1
ip route-static 0.0.0.0 0.0.0.0 172.16.30.1
配置动态路由协议ospf
[LSW1-ospf-1]dis this #
router id 11.1.1.1 ospf 1 area 0.0.0.0 network 172.16.101.0 0.0.0.255 network 172.16.201.0 0.0.0.255 network 200.10.10.1 0.0.0.0
AR1
router id 1.1.1.1
ospf 1 area 0.0.0.0 network 200.10.10.2 0.0.0.0 #
配置验证
ospf邻居建立成功,如下图所示:
配置AP上线
创建AP组,用于将相同配置的AP都加入同一个AP组中
创建名为ap-group1、ap-group2的AP组
[AC]wlan [AC-wlan-view] ap-group name ap-group1 Info: This operation may take a few seconds. Please wait for a moment.done. [AC-wlan-ap-group-ap-group1] quit [AC-wlan-view] ap-group name ap-group2 Info: This operation may take a few seconds. Please wait for a moment.done. [AC-wlan-ap-group-ap-group2] quit [AC-wlan-view]
[AC-wlan-view] regulatory-domain-profile name domain1 [AC-wlan-regulate-domain-domain1] country-code cn Info: The current country code is same with the input country code. [AC-wlan-regulate-domain-domain1] quit [AC-wlan-view] ap-group name ap-group1 [AC-wlan-ap-group-ap-group1] regulatory-domain-profile domain1 Warning: Modifying the country code will clear channel, power and antenna gain c onfigurations of the radio and reset the AP. Continue?[Y/N]:y [AC-wlan-ap-group-ap-group1] quit [AC-wlan-view] ap-group name ap-group2 [AC-wlan-ap-group-ap-group2] regulatory-domain-profile domain1 Warning: Modifying the country code will clear channel, power and antenna gain c onfigurations of the radio and reset the AP. Continue?[Y/N]:y [AC-wlan-ap-group-ap-group2] quit [AC-wlan-view] quit
[AC-wlan-view] ap-id 101 ap-mac 00e0-fc9b-1120 [AC-wlan-ap-101] ap-name ap-101 [AC-wlan-ap-101] ap-group ap-group1 Warning: This operation may cause AP reset. If the country code changes, it will clear channel, power and antenna gain configurations of the radio, Whether to c ontinue? [Y/N]:y Info: This operation may take a few seconds. Please wait for a moment.. done. [AC-wlan-ap-101] quit [AC-wlan-view]
[AC-wlan-view] ap-id 102 ap-mac 00e0-fcfa-2810 2102354483102A24022C [AC-wlan-ap-102] ap-name ap-102 [AC-wlan-ap-102] ap-group ap-group1 Warning: This operation may cause AP reset. If the country code changes, it will clear channel, power and antenna gain configurations of the radio, Whether to c ontinue? [Y/N]:y Info: This operation may take a few seconds. Please wait for a moment.. done. [AC-wlan-ap-102] quit [AC-wlan-view]
[AC-wlan-view] ap-id 103 ap-mac 00e0-fcef-4a80 [AC-wlan-ap-103] ap-name ap-103 [AC-wlan-ap-103] ap-group ap-group2 Warning: This operation may cause AP reset. If the country code changes, it will clear channel, power and antenna gain configurations of the radio, Whether to c ontinue? [Y/N]:y Info: This operation may take a few seconds. Please wait for a moment.. done. [AC-wlan-ap-103] quit [AC-wlan-view]
[AC-wlan-view]ssid-profile name ssid-profile1 [AC-wlan-ssid-prof-ssid-rpofile1]ssid ssid1 Info: This operation may take a few seconds, please wait.done. [AC-wlan-ssid-prof-ssid-rpofile1]quit [AC-wlan-view]
创建流量模板
配置名为“traffic-profile1”的流量模板,并配置无线用户二层隔离
[AC-wlan-view]traffic-profile name traffic-profile1 [AC-wlan-traffic-prof-traffic-profile1]user-isolate ? all All l2 Layer 2 users isolated [AC-wlan-traffic-prof-traffic-profile1]user-isolate l2 Warning: This action may cause service interruption. Continue?[Y/N]y Info: This operation may take a few seconds, please wait.done. [AC-wlan-traffic-prof-traffic-profile1]quit [AC-wlan-view]
[AC-wlan-view] vap-profile name vap-profile1 [AC-wlan-vap-prof-vap-profile1] forward-mode direct-forward
[AC-wlan-vap-prof-vap-profile1]service-vlan vlan-id 101 Info: This operation may take a few seconds, please wait.done.
[AC-wlan-vap-prof-vap-profile1] security-profile security-profile1 Info: This operation may take a few seconds, please wait.done.
[AC-wlan-vap-prof-vap-profile1]ssid-profile ssid-profile1 Info: This operation may take a few seconds, please wait.done.
[AC-wlan-vap-prof-vap-profile1]traffic-profile traffic-profile1 Info: This operation may take a few seconds, please wait.done. [AC-wlan-vap-prof-vap-profile1]quit [AC-wlan-view]
[AC-wlan-vap-prof-vap-profile2]service-vlan vlan-id 201 Info: This operation may take a few seconds, please wait.done.
[AC-wlan-vap-prof-vap-profile2] security-profile security-profile1 Info: This operation may take a few seconds, please wait.done.
[AC-wlan-vap-prof-vap-profile2] ssid-profile ssid-profile1 Info: This operation may take a few seconds, please wait.done.
[AC-wlan-vap-prof-vap-profile2] traffic-profile traffic-profile1 Info: This operation may take a few seconds, please wait.done. [AC-wlan-vap-prof-vap-profile2] quit #
配置AP组引用VAP模板和射频模板
[AC-wlan-view]ap-group name ap-group1
[AC-wlan-ap-group-ap-group1]vap-profile vap-profile1 wlan 1 radio 0 Info: This operation may take a few seconds, please wait...done.
[AC-wlan-ap-group-ap-group1]vap-profile vap-profile1 wlan 1 radio 1 Info: This operation may take a few seconds, please wait...done.
[AC-wlan-ap-group-ap-group1]radio-2g-profile radio-2g radio 0 Warning: This action may cause service interruption. Continue?[Y/N]y
[AC-wlan-ap-group-ap-group1]radio-5g-profile radio-5g radio 1 Warning: This action may cause service interruption. Continue?[Y/N]y [AC-wlan-ap-group-ap-group1] quit
[AC-wlan-view]ap-group name ap-group2 [AC-wlan-ap-group-ap-group2]vap-profile vap-profile2 wlan 1 radio 0 Info: This operation may take a few seconds, please wait...done.
[AC-wlan-ap-group-ap-group2]vap-profile vap-profile2 wlan 1 radio 1 Info: This operation may take a few seconds, please wait...done.
[AC-wlan-ap-group-ap-group2]radio-2g-profile radio-2g radio 0 Warning: This action may cause service interruption. Continue?[Y/N]y
[AC-wlan-ap-group-ap-group2]radio-5g-profile radio-5g radio 1 Warning: This action may cause service interruption. Continue?[Y/N]y [AC-wlan-ap-group-ap-group2] quit
[AC-wlan-view]ap-id 101 [AC-wlan-ap-101]radio [AC-wlan-radio-101/0]channel 20mhz 1 Warning: This action may cause service interruption. Continue?[Y/N]y [AC-wlan-radio-101/0]eirp 10 Info: The EIRP value takes effect only when automatic transmit power selection is disabled, and the value depends on the AP specifications and local laws and regulations. [AC-wlan-radio-101/0]quit
[AC-wlan-ap-101]radio 1 [AC-wlan-radio-101/1]channel 20mhz 153 Warning: This action may cause service interruption. Continue?[Y/N]y [AC-wlan-radio-101/1]eirp 10 Info: The EIRP value takes effect only when automatic transmit power selection is disabled, and the value depends on the AP specifications and local laws and regulations. [AC-wlan-radio-101/1]quit [AC-wlan-ap-101] quit
[AC-wlan-view] ap-id 102 [AC-wlan-radio-102/0]channel 20mhz 6 Warning: This action may cause service interruption. Continue?[Y/N]y [AC-wlan-radio-102/0]eirp 10 Info: The EIRP value takes effect only when automatic transmit power selection is disabled, and the value depends on the AP specifications and local laws and regulations. [AC-wlan-radio-102/0]quit
[AC-wlan-ap-102]radio 1 [AC-wlan-radio-102/1]channel 20mhz 161 Warning: This action may cause service interruption. Continue?[Y/N]y [AC-wlan-radio-102/1]eirp 10 Info: The EIRP value takes effect only when automatic transmit power selection is disabled, and the value depends on the AP specifications and local laws and regulations. [AC-wlan-radio-102/1]quit [AC-wlan-ap-102]quit [AC-wlan-view]
[AC-wlan-view]ap-id 103 [AC-wlan-ap-103]radio 0 [AC-wlan-radio-103/0]channel 20mhz 1 Warning: This action may cause service interruption. Continue?[Y/N]y [AC-wlan-radio-103/0]eirp 10 Info: The EIRP value takes effect only when automatic transmit power selection is disabled, and the value depends on the AP specifications and local laws and regulations. [AC-wlan-radio-103/0]quit
[AC-wlan-ap-103]radio 1 [AC-wlan-radio-103/1]channel 20mhz 153 Warning: This action may cause service interruption. Continue?[Y/N]y [AC-wlan-radio-103/1]eirp 10 Info: The EIRP value takes effect only when automatic transmit power selection is disabled, and the value depends on the AP specifications and local laws and regulations. [AC-wlan-radio-103/1]quit [AC-wlan-ap-103]quit [AC-wlan-view]