16.1 AC加瘦AP网络配置
1.SW1配置
[SW1]vlan batch 100 101
[SW1]interface GigabitEthernet 0/0/1
[SW1-GigabitEthernet0/0/1]port link-type trunk
[SW1-GigabitEthernet0/0/1]port trunk allow-pass vlan 100 101
[SW1-GigabitEthernet0/0/1]quit
[SW1]interface GigabitEthernet 0/0/2
[SW1-GigabitEthernet0/0/2]port link-type trunk
[SW1-GigabitEthernet0/0/2]port trunk allow-pass vlan 100 101
[SW1-GigabitEthernet0/0/2]port trunk pvid vlan 101
//剥离标签
[SW1-GigabitEthernet0/0/2]QUIT
[SW1]interface GigabitEthernet 0/0/3
[SW1-GigabitEthernet0/0/3]port link-type trunk
[SW1-GigabitEthernet0/0/3]port trunk allow-pass vlan 100 101
[SW1-GigabitEthernet0/0/3]port trunk pvid vlan 101
//剥离标签
[SW1-GigabitEthernet0/0/3]quit
2.SW1开启DHCP 服务,配置VlanIF
[SW1]dhcp enable
[SW1]interface Vlanif 100
[SW1-Vlanif100]ip address 192.168.100.254 24
[SW1-Vlanif100]dhcp select interface
//设置DHCP地址池接口
[SW1-Vlanif100]dhcp server dns-list 114.114.114.114 8.8.8.8
//设置DNS地址
[SW1-Vlanif100]quit
3.配置AC1VlanIF
[AC1]vlan batch 100 101
[AC1]dhcp enable
[AC1]interface GigabitEthernet 0/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 101
[AC1-Vlanif101]ip address 192.168.101.254 24
[AC1-Vlanif101]dhcp select interface
[AC1-Vlanif101]quit
4.配置wlan,创建域管理模板并绑定到ap-group1组,通过capwap协议是AC和AP通信
[AC1]wlan
[AC1-wlan-view]ap-group name ap-group1
//创建ap-group1组
[AC1-wlan-ap-group-ap-group1]regulatory-domain-profile default
//创建域管理模板并绑定到ap-group1中
[AC1-wlan-ap-group-ap-group1]quit
[AC1-wlan-view]quit
[AC1]capwap source interface Vlanif 101
//通过capwap协议使AP与AC通信
5.创建ap模板
[AC1]wlan
[AC1-wlan-view]ap auth-mode mac-auth
//创建ap模板
[AC1-wlan-view]ap-id 0 ap-mac 00e0-fc17-7c90
//绑定ap1的id和MAC地址,通过display arp 查询AP的MAC地址
[AC1-wlan-ap-0]ap-name area_1
//对ap-0 命名
[AC1-wlan-ap-0]ap-group ap-group1
//ap-0 绑入ap-group1中
[AC1-wlan-ap-0]quit
[AC1-wlan-view]ap-id 1 ap-mac 00e0-fcc5-59f0
//绑定ap2的id和MAC地址,通过display arp 查询AP的MAC地址
[AC1-wlan-ap-1]ap-name area_2
//对ap-1 命名
[AC1-wlan-ap-1]ap-group ap-group1
//ap-1 绑入ap-group1中
[AC1-wlan-ap-1]quit
6.显示ap信息
[AC1-wlan-view]display ap all
Total AP information:
fault: fault [1]
nor : normal [1]
0 00e0-fc17-7c90 area_1 ap-group1 192.168.101.118 AP2050DN nor 0 3M:7S
1 00e0-fcc5-59f0 area_2 ap-group1 192.168.101.137 AP2050DN nor 0 1M:31S
7.配置wlan业务安全模板
[AC1-wlan-view]security-profile name Internet
//创建安全模板
[AC1-wlan-sec-prof-Internet]security wpa-wpa2 psk pass-phrase dsrw.com aes
[AC1-wlan-sec-prof-Internet]quit
8.配置wlan业务SSID模板
[AC1-wlan-view]ssid-profile name Internet
//创建ssid模板
[AC1-wlan-ssid-prof-Internet]ssid Internet
[AC1-wlan-ssid-prof-Internet]quit
9.配置wlan业务 VAP模板
[AC1-wlan-view]vap-profile name Internet
//创建vap模板
[AC1-wlan-vap-prof-Internet]forward-mode direct-forward
//配置vap模板下数据转发方式
[AC1-wlan-vap-prof-Internet]service-vlan vlan-id 100
//设置服务vlan id
[AC1-wlan-vap-prof-Internet]security-profile Internet
//绑定安全模板
[AC1-wlan-vap-prof-Internet]ssid-profile Internet
//绑定ssid模板
[AC1-wlan-vap-prof-Internet]quit
10.开启无线通信
[AC1-wlan-view]ap-group name ap-group1
[AC1-wlan-ap-group-ap-group1]vap-profile Internet wlan 1 radio 0
//启动2.4G信号(0)
[AC1-wlan-ap-group-ap-group1]vap-profile Internet wlan 1 radio 1
//启动5G信号(1)
[AC1-wlan-ap-group-ap-group1]quit
[AC1-wlan-view]display arp all
192.168.101.254 00e0-fcbf-5a87 I - Vlanif101
192.168.101.137 00e0-fcc5-59f0 7 D-0 GE0/0/1
101/-
192.168.101.118 00e0-fc17-7c90 6 D-0 GE0/0/1
11.启动STA1输入无线密码连接WiFi:dsrw.com
12.查看STA1的IP地址
STA>ipconfig
Link local IPv6 address...........: ::
IPv6 address......................: :: / 128
IPv6 gateway......................: ::
IPv4 address......................: 192.168.100.253
Subnet mask.......................: 255.255.255.0
Gateway...........................: 192.168.100.254
Physical address..................: 54-89-98-CB-04-B1
DNS server........................: 114.114.114.114
8.8.8.8
12.配置AC的WEB图形界面
[AC1]vlan batch 200
[AC1]interface GigabitEthernet 0/0/2
[AC1-GigabitEthernet0/0/2]port link-type access
[AC1-GigabitEthernet0/0/2]port default vlan 200
[AC1-GigabitEthernet0/0/2]quit
[AC1]interface Vlanif 200
[AC1-Vlanif200]ip address 192.168.10.2 24
[AC1-Vlanif200]quit
13.配置Clould1
14.AC连通性测试1,开启http服务
[AC1]ping 192.168.10.1
PING 192.168.10.1: 56 data bytes, press CTRL_C to break
Reply from 192.168.10.1: bytes=56 Sequence=1 ttl=64 time=40 ms
[AC1]http server enable
15.进入WEB管理界面
浏览器中输入http://192.168.10.2进入AC管理网页
用户名:admin,密码:admin@huawei.com
修改密码为:dsrw.com
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
请登录后查看评论内容