组建直连式二层无线局域网
直连式二层组网AC数据规划表
[S1]vlan batch 100 101
[S1]interface gigabitethernet 0/0/1
[S1-GigabitEthernet0/0/1]port link-type trunk
[S1-GigabitEthernet0/0/1]port trunk pvid vlan 100
[S1-GigabitEthernet0/0/1]port trunk allow-pass vlan 100 101
[S1]interface gigabitethernet 0/0/2
[S1-GigabitEthernet0/0/2]port link-type trunk
[S1-GigabitEthernet0/0/2]port trunk pvid vlan 100
[S1-GigabitEthernet0/0/2]port trunk allow-pass vlan 100 101
[S1]interface gigabitethernet 0/0/3
[S1-GigabitEthernet0/0/3]port link-type trunk
[S1-GigabitEthernet0/0/3]port trunk allow-pass vlan 100 101
[AC]vlan batch 100 101[AC]interface gigabitethernet 0/0/1[AC-GigabitEthernet0/0/1]port link-type trunk[AC-GigabitEthernet0/0/1]port trunk allow-pass vlan 100 101[AC-GigabitEthernet0/0/1]quit[AC]interface gigabitethernet 0/0/2[AC-GigabitEthernet0/0/2]port link-type trunk[AC-GigabitEthernet0/0/2]port trunk allow-pass vlan 101[AC-GigabitEthernet0/0/2]quit
IP地址部署
[AC]interface vlanif 100
[AC-Vlanif100]ip address 10.23.100.1 24
[AC]interface vlanif 101
[AC-Vlanif101]ip address 10.23.101.1 24
[R1]interface GigabitEthernet0/0/0.101[R1-GigabitEthernet0/0/0.101]dot1q termination vid 101[R1-GigabitEthernet0/0/0.101]ip address 10.23.101.2 255.255.255.0[R1-GigabitEthernet0/0/0.101]arp broadcast enable[R1]interface LoopBack 10[R1-LoopBack10]ip address 10.10.10.10 24
[AC]ip route-static 0.0.0.0 0.0.0.0 10.23.101.2
[R1]ip route-static 10.23.100.0 255.255.255.0 10.23.101.1
[AC]dhcp enable
[AC]interface vlanif 100
[AC-Vlanif100]dhcp select interface
[AC-Vlanif100]quit
[AC]interface vlanif 101
[AC-Vlanif101]dhcp select interface
[AC-Vlanif101]dhcp server excluded-ip-address 10.23.101.2
[AC-Vlanif101]dhcp server dns-list 10.10.10.10
[AC-Vlanif101]quit
创建AP组
[AC]wlan
[AC-wlan-view]ap-group name ap-group1
[AC-wlan-view]regulatory-domain-profile name default
[AC-wlan-regulate-domain-default]country-code cn
[AC-wlan-regulate-domain-default]quit
[AC-wlan-view]ap-group name ap-group1
[AC-wlan-ap-group-ap-group1]regulatory-domain-profile default
Warning: Modifying the country code will clear channel, power and antenna gain configurations of the radio and reset the AP. Continue?[Y/N]:y
[AC-wlan-ap-group-ap-group1]quit
[AC]capwap source interface vlanif 100
[AC]wlan
[AC-wlan-view]ap auth-mode mac-auth
[AC-wlan-view]ap-id 0 ap-mac ac85-3d92-3340
[AC-wlan-ap-0]ap-name area_1
[AC-wlan-ap-0]ap-group ap-group1
Warning: This operation may cause AP reset. If the country code changes, it will clear channel, power and antenna gain configuration
s of the radio, Whether to continue? [Y/N]:y
[AC-wlan-ap-0]quit
[AC-wlan-view]display ap all
Info: This operation may take a few seconds. Please wait for a moment.done.
Total AP information:
nor : normal [2]
---------------------------------------------------------------------------------------------
ID MAC Name Group IP Type State STA Upt
ime
---------------------------------------------------------------------------------------------
0 00e0-fc4f-3de0 area_1 ap-group1 10.23.100.239 AP5030DN nor 1 1H:10M:48S
1 00e0-fc3e-2040 area_2 ap-group1 10.23.100.6 AP5030DN nor 1 1H:10M:39S
---------------------------------------------------------------------------------------------Total: 2
[AC-wlan-view]security-profile name wlan-net
[AC-wlan-sec-prof-wlan-net]security wpa-wpa2 psk pass-phrase a1234567 aes
[AC-wlan-sec-prof-wlan-net]quit
[AC-wlan-view]ssid-profile name wlan-net
[AC-wlan-ssid-prof-wlan-net]ssid wlan-net
[AC-wlan-ssid-prof-wlan-net]quit
[AC-wlan-view]vap-profile name wlan-net
[AC-wlan-vap-prof-wlan-net]forward-mode direct-forward
[AC-wlan-vap-prof-wlan-net]service-vlan vlan-id 101
[AC-wlan-vap-prof-wlan-net]security-profile wlan-net
[AC-wlan-vap-prof-wlan-net]ssid-profile wlan-net
[AC-wlan-vap-prof-wlan-net]quit
[AC-wlan-view]ap-group name ap-group1
[AC-wlan-ap-group-ap-group1]vap-profile wlan-net wlan 1 radio 0
[AC-wlan-ap-group-ap-group1]vap-profile wlan-net wlan 1 radio 1
[AC-wlan-ap-group-ap-group1]quit
[AC-wlan-view]ap-id 0
[AC-wlan-ap-0]radio 0
[AC-wlan-radio-0/0]calibrate auto-channel-select disable
[AC-wlan-radio-0/0]calibrate auto-txpower-select disable
[AC-wlan-radio-0/0]channel 20mhz 6
Warning: This action may cause service interruption. Continue?[Y/N]y
[AC-wlan-radio-0/0]eirp 127
[AC-wlan-radio-0/0]quit
侵权请私聊公众号删文
热文推荐