SW1
sysname SW1 //修改名称
#
undo info-center enable //关闭提示
#
vlan batch 100 to 102 //批量创建vlan,100 101 102
#
interface GigabitEthernet0/0/1 //进入0/0/1接口
port link-type trunk //设置端口类型为trunk
port trunk allow-pass vlan 100 to 102 //允许vlan 100 101 102通过
#
interface GigabitEthernet0/0/3 //进入0/0/3接口
port link-type trunk //设置端口类型为trunk
port trunk allow-pass vlan 100 to 102 /允许vlan 100 101 102通过
SW2
sysname SW2 //修改名称
#
undo info-center enable //关闭提示消息
#
vlan batch 100 to 102 //批量创建vlan vlan 100 101 102
#
interface GigabitEthernet0/0/1 //进入g0/0/1接口
port link-type trunk //设置端口类型为trunk
port trunk allow-pass vlan 100 to 102 //允许vlan 100 101 102通过
#
interface GigabitEthernet0/0/2
port link-type trunk //设置端口类型为trunk
port trunk pvid vlan 100 //打上pvid vlan 100
port trunk allow-pass vlan 100 to 101 //允许vlan 100 101 通过
#
interface GigabitEthernet0/0/3 //进入g0/0/3接口
port link-type trunk //设置端口类型为trunk
port trunk pvid vlan 100 //打上pvid vlan 100
port trunk allow-pass vlan 100 102 //允许vlan 100 102通过
AC
第一步:注册AP上线
vlan batch 100 to 102 //批量创建vlan vlan 100 101 102
#
dhcp enable //开启dhcp
#
interface Vlanif100 //进入虚拟接口100
ip address 10.1.100.1 255.255.255.0 //添加ip地址
dhcp select interface //接口上应用DHCP
#
interface Vlanif101 //进入虚拟接口101
ip address 10.1.101.1 255.255.255.0 //添加ip地址
dhcp select interface //接口上应用dhcp
#
interface Vlanif102 //进入虚拟接口102
ip address 10.1.102.1 255.255.255.0 //添加ip地址
dhcp select interface //接口上应用dhcp
#
interface GigabitEthernet0/0/1 //进入g0/0/接口
port link-type trunk //设置端口类型trunk
port trunk pvid vlan 100
port trunk allow-pass vlan 100 to 102
#
capwap source interface vlanif100 //配置源接口或源地址与AP建隧道
#
wlan //创建安全模版
regulatory-domain-profile name D1 //域管理模版名称
country-code CN
ap auth-mode mac-auth //AP接入控制,这里是MAC认证
ap-group name AP1 //AP组名称
regulatory-domain-profile D1 //域管理模版名称
(AP组里面的AP使用该域管理模板)
ap-mac 00e0-fc1d-2670 //AP接口MAC地址
ap-group AP1 //AP组名称
ap-mac 00e0-fca5-0b80 //AP接口MAC地址
ap-group AP1 //AP组名称
使用display ap all查看AP状态
第二步:WLAN业务下发
security-profile name S1 //安全模版名称
security wpa-wpa2 psk pass-phrase 88888888(WiFi密码) aes
ssid-profile name HW1 //SSID模版名称
ssid HW1(Wifi名称)
ssid-profile name HW2 //SSID模版名称
ssid HW2
vap-profile name HW1 //VAP模版名称
service-vlan vlan-id 101
ssid-profile HW1
security-profile S1
vap-profile name HW2 //VAP模版名称
service-vlan vlan-id 102
ssid-profile HW2 //SSID模版名称
security-profile S1 //安全模版名称
ap-group name AP1
vap-profile HW1(VAP模版名称) wlan 1 radio all
vap-profile HW2 (VAP模版名称)wlan 2 radio all