简单 wlan
1.实验拓扑:
使用ENSP模拟器(版本V100R002C00 1.2.00.350)
2.实验需求:
1: AP1 通过AC1 DCHP获得地址
2: AP1发出wlan
3.实验配置:
1:注意点
使用前先注册
R1使用
2:ip规划
R1配置:
<Huawei>sy
[Huawei]int g0/0/2
[Huawei-GigabitEthernet0/0/2]ip add 192.168.1.1 30
[Huawei-GigabitEthernet0/0/2]int l0 进入环回口
[Huawei-LoopBack0]ip address 1.1.1.1 32 配置外网地址
[Huawei-LoopBack0]q
[Huawei]
AC1配置:
<AC6005>sy
[AC6005]sysname AC01 把AC名字改成AC01
[AC01]vlan 200
[AC01-vlan200]int vlan 200 做上行口vlan
[AC01-Vlanif200]ip address 192.168.1.2 30 配置上行口IP
[AC01-Vlanif200]q
[AC01]vlan 100
[AC01-vlan100]int vlan 100 做管理vlan
[AC01-Vlanif100]ip address 192.168.100.1 24
[AC01-Vlanif101]q
[AC01]vlan 101
[AC01-vlan101]int vlan 101 做业务vlan
[AC01-Vlanif101]ip address 192.168.101.1 24
[AC01-Vlanif101]q
3:实验脚本:
R1配置:
[Huawei]ip route-s 192.168.101.0 255.255.255.0 192.168.1.2
给业务IP配静态(管理IP和上行口IP不用指静态)
AC1配置:
[AC01]int g0/0/2
[AC01-GigabitEthernet0/0/2]port hybrid pvid vlan 200
做中继口 以 pvid方式放入vlan200
[AC01-GigabitEthernet0/0/2]port hybrid untagged vlan 200
以untagged方式放入vlan200
[AC01-GigabitEthernet0/0/2]q
[AC01]ping 192.168.1.1
看看能不能ping通 R1
[AC01]ip route-static 0.0.0.0 0.0.0.0 192.168.1.1 指上行口静态
[AC01]ping 1.1.1.1 测试 能不能ping通环回口
[AC01]dhcp enable 开启dhcp
[AC01]int vlan 100
[AC01-Vlanif100]dhcp select interface 配置接口dhcp
[AC01-Vlanif100]q
[AC01-vlan101]int vlan 101
[AC01-Vlanif101]dhcp select interface 配置接口dhcp
[AC01-Vlanif101]dhcp server dns-list 8.8.8.8
[AC01-Vlanif101]int g0/0/1
[AC01-GigabitEthernet0/0/1]port link-type trunk
[AC01-GigabitEthernet0/0/1]port trunk allow-pass vlan 100 101
[AC01-GigabitEthernet0/0/1]port trun pvid vlan 100
[AC01-GigabitEthernet0/0/1]dis this
[AC01-GigabitEthernet0/0/1]q
[AC01]wlan ac-global carrier id cmcc ac id 1
[AC01]wlan
[AC01-wlan-view]wlan ac source interface vlan 100 管理vlan设置成100
[AC01-wlan-view]ap-auth-mode mac-auth
[AC01-wlan-view]ap id 1 type-id 19 mac 00E0-FC56-4A50
mac地址要手动添加 注意!mac地址位数 !
AP右键 设置
点击配置
输入这个上面的 MAC地址
[AC01-wlan-ap-1]q
[AC01-wlan-view]wmm-profile id 1 name wmm 配置WMM模板 一个业务一个模板
[AC01-wlan-wmm-prof-wmm]q
[AC01-wlan-view]radio-profile id 1 name r01
[AC01-wlan-radio-prof-r01]wmm-profile id 1
[AC01-wlan-radio-prof-r01]q
[AC01-wlan-view]traffic-profile id 1 name t01
[AC01-wlan-traffic-prof-t01]q
[AC01-wlan-view]security-profile id 1 name s01
[AC01-wlan-sec-prof-s01]q
[AC01-wlan-view]q
[AC01]dis cu 检查一下
[AC01]int wlan-ess 1
[AC01-Wlan-Ess1]port hybrid pvid vlan 101
[AC01-Wlan-Ess1]port hybrid untagged vlan 101
[AC01-Wlan-Ess1]q
[AC01]wlan
[AC01-wlan-view]service-set id 1 name s01 配置五元素
[AC01-wlan-service-set-s01]wlan-ess 1
[AC01-wlan-service-set-s01]ssid hw01
[AC01-wlan-service-set-s01]service-vlan 101
[AC01-wlan-service-set-s01]traffic-profile id 1
[AC01-wlan-service-set-s01]security-profile id 1
[AC01-wlan-service-set-s01]dis this 检查五元素齐不齐
[AC01-wlan-service-set-s01]q
[AC01-wlan-view]ap 1 radio 0
[AC01-wlan-radio-1/0]radio-profile id 1
Warning: Modify the Radio type may cause some parameters of Radio resume default
value, are you sure to continue?[Y/N]:y 这里选择Y
[AC01-wlan-radio-1/0]service-set id 1
[AC01-wlan-radio-1/0]q
[AC01-wlan-view]commit all 更新配置 选择Y
Warning: Committing configuration may cause service interruption,continue?[Y/N]y
原文地址:http://funinghua.blog.51cto.com/9125449/1585719