WLAN配置

 

 

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

 

  • 4
    点赞
  • 30
    收藏
    觉得还不错? 一键收藏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值