WLAN的无线综合实验

拓扑

实验的代码

LSW1
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center enable
Info: Information center is disabled.
[Huawei]sysname LSW1
[LSW1]vlan batch 100 101
[LSW1]interface g0/0/1
[LSW1-GigabitEthernet0/0/1]port link-type trunk
[LSW1-GigabitEthernet0/0/1]port trunk allow-pass vlan 100
[LSW1-GigabitEthernet0/0/1]quit
[LSW1]interface g0/0/3
[LSW1-GigabitEthernet0/0/3]port link-type trunk
[LSW1-GigabitEthernet0/0/3]port trunk allow-pass vlan 100 101
[LSW1-GigabitEthernet0/0/3]quit
[LSW1]interface g0/0/2
[LSW1-GigabitEthernet0/0/2]port link-type access
[LSW1-GigabitEthernet0/0/2]port default vlan 101
[LSW1-GigabitEthernet0/0/2]quit
[LSW1]interface Vlanif 101
[LSW1-Vlanif101]ip address 192.168.101.1 24
[LSW1-Vlanif101]undo shutdown
Info: Interface Vlanif101 is not shutdown.
[LSW1-Vlanif101]quit

<LSW1>sys
Enter system view, return user view with Ctrl+Z.
[LSW1]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[LSW1]interface Vlanif 101
[LSW1-Vlanif101]dhcp select interface
[LSW1-Vlanif101]quit

LSW2
[Huawei]undo info-center enable
Info: Information center is disabled.
[Huawei]sysname LSW2
[LSW2]vlan 100
[LSW2-vlan100]quit
[LSW2]interface e0/0/1
[LSW2-Ethernet0/0/1]port link-type trunk
[LSW2-Ethernet0/0/1]port trunk allow-pass vlan 100
[LSW2-Ethernet0/0/1]port trunk pvid vlan 100
[LSW2-Ethernet0/0/1]quit
[LSW2]interface e0/0/2
[LSW2-Ethernet0/0/2]port link-type trunk
[LSW2-Ethernet0/0/2]port trunk allow-pass vlan 100
[LSW2-Ethernet0/0/2]port trunk pvid vlan 100
[LSW2-Ethernet0/0/2]quit
[LSW2]interface e0/0/3
[LSW2-Ethernet0/0/3]port link-type trunk
[LSW2-Ethernet0/0/3]port trunk allow-pass vlan 100
[LSW2-Ethernet0/0/3]quit
[LSW2]quit
 

R1
<Huawei>SYS
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center enable
Info: Information center is disabled.
[Huawei]sysname R1
[R1]interface g0/0/0
[R1-GigabitEthernet0/0/0]ip address 192.168.101.2 24
[R1-GigabitEthernet0/0/0]undo shutdown
Info: Interface GigabitEthernet0/0/0 is not shutdown.
[R1-GigabitEthernet0/0/0]quit
[R1]quit
 

AC1
<AC6005>system-view
Enter system view, return user view with Ctrl+Z.
[AC6005]undo info-center enable
Info: Information center is disabled.
[AC6005]sysname AC1
[AC1]vlan batch 100 101
Info: This operation may take a few seconds. Please wait for a moment...done.
[AC1]interface g0/0/1
[AC1-GigabitEthernet0/0/1]port link-type trunk
[AC1-GigabitEthernet0/0/1]port trunk allow-pass vlan 100 101
[AC1-GigabitEthernet0/0/1]quit
[AC1]interface Vlanif 100
[AC1-Vlanif100]ip address 192.168.100.1 24
[AC1-Vlanif100]undo shutdown
Info: Interface Vlanif100 is not shutdown.
[AC1-Vlanif100]quit
[AC1]quit
 

<AC1>sys
Enter system view, return user view with Ctrl+Z.
[AC1]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[AC1]interface Vlanif 100
[AC1-Vlanif100]dhcp select interface
[AC1-Vlanif100]quit
[AC1]wlan 
[AC1-wlan-view]regulatory-domain-profile name x1
[AC1-wlan-regulate-domain-x1]country-code cn
Info: The current country code is same with the input country code.
[AC1-wlan-regulate-domain-x1]quit
[AC1-wlan-view]ap-group name x
Info: This operation may take a few seconds. Please wait for a moment.done
[AC1-wlan-ap-group-x]regulatory-domain-profile x1
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
[AC1-wlan-ap-group-x]quit
[AC1-wlan-view]quit
[AC1]capwap source interface Vlanif 100
[AC1]wlan
[AC1-wlan-view]ap auth-mode mac-auth

[AC1]wlan
[AC1-wlan-view]ap auth-mode mac-auth
[AC1-wlan-view]ap-id 1 ap-mac 00e0-fcd5-1c70
[AC1-wlan-ap-1]ap-name ds
[AC1-wlan-ap-1]ap-group x

[AC1]wlan
[AC1-wlan-view]ap-id 2 ap-mac 00e0-fc1e-3670
[AC1-wlan-ap-2]ap-name xs
[AC1-wlan-ap-2]ap-group x
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

<AC1> sys
Enter system view, return user view with Ctrl+Z.
[AC1]wlan
[AC1-wlan-view]security-profile name y1
[AC1-wlan-sec-prof-y1]security wpa-wpa2 psk pass-phrase huawei@123 aes
[AC1-wlan-sec-prof-y1]quit
[AC1-wlan-view]ssid-profile name y1
[AC1-wlan-ssid-prof-y1]quit
[AC1-wlan-view]ssid-profile name y2
[AC1-wlan-ssid-prof-y2]ssid hcia
Info: This operation may take a few seconds, please wait.done.
[AC1-wlan-ssid-prof-y2]quit
[AC1-wlan-view]vap-profile name y
[AC1-wlan-vap-prof-y]forward-mode tunnel
Info: This operation may take a few seconds, please wait.done.
[AC1-wlan-vap-prof-y]service-vlan vlan-id 101
Info: This operation may take a few seconds, please wait.done.
[AC1-wlan-vap-prof-y]security-profile y1
Info: This operation may take a few seconds, please wait.done.
[AC1-wlan-vap-prof-y]ssid-profile y2
Info: This operation may take a few seconds, please wait.done.
[AC1-wlan-vap-prof-y]quit
[AC1-wlan-view]ap-group name x
[AC1-wlan-ap-group-x]vap-profile y wlan 1 radio 0
Info: This operation may take a few seconds, please wait...done.
[AC1-wlan-ap-group-x]vap-profile y wlan 1 radio 1
Info: This operation may take a few seconds, please wait...done.
[AC1-wlan-ap-group-x]
[AC1-wlan-ap-group-x]quit
[AC1-wlan-view]quit
 

结果

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值