vlanif100作为管理地址(为AP分配的地址)
vlanif10为业务地址(为STA分配的地址)
vlanif20为PC分配的地址
SW
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 10 20 100
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk pvid vlan 100
port trunk allow-pass vlan 10 20 100
#
interface GigabitEthernet0/0/3
port link-type access
port default vlan 20
#
AC
[AC6005]vlan batch 10 20 100
[AC6005]dhcp enable //开启交换机的DHCP服务
[AC6005]int g0/0/1
[AC6005-GigabitEthernet0/0/1]port link-type trunk
[AC6005-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[AC6005]int Vlanif 100
[AC6005-Vlanif100]ip address 192.168.100.1 24 //管理地址
[AC6005-Vlanif100]dhcp select interface //开启接口采用接口地址池的DHCP Server功能
[AC6005-Vlanif100]dhcp server dns-list 8.8.8.8 //dhcp的DNS服务器地址
[AC6005]int Vlanif 10
[AC6005-Vlanif10]ip address 192.168.10.1 24
[AC6005-Vlanif10]dhcp select interface
[AC6005-Vlanif10]dhcp server dns-list 8.8.8.8
[AC6005]int Vlanif 20
[AC6005-Vlanif20]ip address 192.168.20.1 24
[AC6005-Vlanif20]dhcp select interface
[AC6005-Vlanif20]dhcp server dns-list 8.8.8.8
查看PC1获取地址情况
查看AP获取地址情况
[AC6005]capwap source interface Vlanif 100 //配置源接口地址,用来建立CAPWAP隧道
[AC6005]wlan
[AC6005-wlan-view]regulatory-domain-profile name 1 //创域管理模板
[AC6005-wlan-regulate-domain-1]country-code CN //国家代码
[AC6005-wlan-view]ssid-profile name 1 //创ssid模板
[AC6005-wlan-ssid-prof-1]ssid 12 //ssid名称
[AC6005-wlan-view]security-profile name 1 //创安全策略模板
[AC6005-wlan-sec-prof-1]security wpa-wpa2 psk pass-phrase 12345678 aes //加密方式、密码
[AC6005-wlan-view]vap-profile name 1 //创VAP模板
[AC6005-wlan-vap-prof-1]forward-mode direct-forward //直接转发
[AC6005-wlan-vap-prof-1]security-profile 1 //绑定安全策略模板
[AC6005-wlan-vap-prof-1]ssid-profile 1 //绑定ssid模板
[AC6005-wlan-vap-prof-1]service-vlan vlan-id 10 绑定业务服务VLAN
[AC6005-wlan-view]ap-group name 1 //创AP组
[AC6005-wlan-ap-group-1]regulatory-domain-profile 1 //绑定域管理模板
[AC6005-wlan-ap-group-1]vap-profile 1 wlan 1 radio 0 //绑vap射频卡 0 、1
[AC6005-wlan-ap-group-1]vap-profile 1 wlan 1 radio 1
[AC6005-wlan-view]ap-id 1 ap-mac 00e0-fc3b-4180
[AC6005-wlan-ap-1]ap-name AP1
[AC6005-wlan-ap-1]ap-group 1 //添加到AP组
查看AP的物理地址(dis arp)
文章来源地址https://www.toymoban.com/news/detail-462936.html
效果图
STA连接到AP
STA获取地址
STA ping PC文章来源:https://www.toymoban.com/news/detail-462936.html
到了这里,关于学习随笔:ENSP:AC+AP简单配置的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!