AC AP简单组网
- 1、LSW1交换机配置
- 2、AC1控制器配置
- 3、初步效果查看
- 3.1、查看PC1获取地址情况
- 3.2、查看AP获取地址情况
- 4、AC1控制器配置组网
- 5、组网成功验收
- 5.1、查看AP的物理地址(`dis arp`)
- 5.2、ensp模拟的拓扑结果
- 5.3、STA链接到AP网络
- 5.3、查看STA地址及连通性
vlanif100 为管理地址(为AP分配的地址)。
vlanif10 为业务地址(为STA分配的地址)。
vlanif20 为PC分配地址。
1、LSW1交换机配置
[Huawei]system-view
[Huawei]sysname LSW1
[LSW1]vlan batch 10 20 100
[LSW1]interface GigabitEthernet0/0/1
[LSW1-GigabitEthernet0/0/1]port link-type trunk
[LSW1-GigabitEthernet0/0/1]port trunk allow-pass vlan 10 20 100
[LSW1]interface GigabitEthernet0/0/2
[LSW1-GigabitEthernet0/0/2]port link-type trunk
[LSW1-GigabitEthernet0/0/2]port trunk pvid vlan 100
[LSW1-GigabitEthernet0/0/2]port trunk allow-pass vlan 10 20 100
[LSW1]interface GigabitEthernet0/0/3
[LSW1-GigabitEthernet0/0/3]port link-type access
[LSW1-GigabitEthernet0/0/3]port default vlan 20
2、AC1控制器配置
<AC6005>system-view
[AC6005]sysname AC1
[AC1]vlan batch 10 20 100
开启交换机的DHCP服务
[AC1]dhcp enable
[AC1]int g0/0/1
[AC1-GigabitEthernet0/0/1]port link-type trunk
[AC1-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[AC1]int Vlanif 100
管理地址
[AC1-Vlanif100]ip address 192.168.100.1 24
开启接口采用接口地址池的DHCP Server功能
[AC1-Vlanif100]dhcp select interface
dhcp的DNS服务器地址
[AC1-Vlanif100]dhcp server dns-list 114.114.114.114
[AC1]int Vlanif 10
[AC1-Vlanif10]ip address 192.168.10.1 24
[AC1-Vlanif10]dhcp select interface
[AC1-Vlanif10]dhcp server dns-list 114.114.114.114
[AC1]int Vlanif 20
[AC1-Vlanif20]ip address 192.168.20.1 24
[AC1-Vlanif20]dhcp select interface
[AC1-Vlanif20]dhcp server dns-list 114.114.114.114
3、初步效果查看
3.1、查看PC1获取地址情况
3.2、查看AP获取地址情况
4、AC1控制器配置组网
//配置源接口地址,用来建立CAPWAP隧道
[AC1]capwap source interface Vlanif 100
[AC1]wlan
//创建域管理模板
[AC1-wlan-view]regulatory-domain-profile name 1
//国家代码
[AC1-wlan-regulate-domain-1]country-code CN
//创ssid模板
[AC1-wlan-regulate-domain-1]quit
[AC1-wlan-view]ssid-profile name 1
//ssid名称
[AC1-wlan-ssid-prof-1]ssid 12
//创安全策略模板
[AC1-wlan-view]security-profile name 1
//加密方式、密码
[AC1-wlan-sec-prof-1]security wpa-wpa2 psk pass-phrase a1234567 aes
//创VAP模板
[AC1-wlan-sec-prof-1]quit
[AC1-wlan-view]vap-profile name 1
//直接转发
[AC1-wlan-vap-prof-1]forward-mode direct-forward
//绑定安全策略模板
[AC1-wlan-vap-prof-1]security-profile 1
//绑定ssid模板
[AC1-wlan-vap-prof-1]ssid-profile 1
//绑定业务服务VLAN
[AC1-wlan-vap-prof-1]service-vlan vlan-id 10
//创AP组
[AC1-wlan-vap-prof-1]quit
[AC1-wlan-view]ap-group name 1
//绑定域管理模板
[AC1-wlan-ap-group-1]regulatory-domain-profile 1
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
//绑vap射频卡 0 、 1
[AC1-wlan-ap-group-1]vap-profile 1 wlan 1 radio 0
[AC1-wlan-ap-group-1]vap-profile 1 wlan 1 radio 1
[AC1-wlan-view]ap-id 1 ap-mac 00E0-FC75-4730
[AC1-wlan-ap-1]ap-name AP1
//添加到AP组
[AC1-wlan-ap-1]ap-group 1
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 continue? [Y/N]:y
Info: This operation may take a few seconds. Please wait for a moment.. done.