esnp的AC+ap配置实验

简介:

VLAN10作为业务VLANVLAN100作为AC管理AP的管理VLAN

基本配置:

LSW1:
[Huawei]sysname SW1
[SW1]undo info-center en  //关闭消息弹出
[SW1]vlan batch 10 100
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1]int g0/0/1
[SW1-GigabitEthernet0/0/1]p l t	
[SW1-GigabitEthernet0/0/1]port trunk pvid vlan 100	//将默认管理vlan设为vlan100,不设默认为vlan1
[SW1-GigabitEthernet0/0/1]port trunk allow-pass vlan 10 100
[SW1-GigabitEthernet0/0/1]q
[SW1]int g0/0/2
[SW1-GigabitEthernet0/0/2]p l t
[SW1-GigabitEthernet0/0/2]p t a v 10 100
[SW1-GigabitEthernet0/0/2]q
[SW1]int vlan10  //配置业务vlan10网关
[SW1-Vlanif10]ip add 10.1.12.1 24
[SW1-Vlanif10]q
[SW1]dhcp en  //开启dhcp服务
Info: The operation may take a few seconds. Please wait for a moment.done.
[SW1]int vlan10
[SW1-Vlanif10]dhcp		//接口下开启dhcp
[SW1-Vlanif10]dhcp select interface 
[SW1-Vlanif10]q
AC1:
[AC6005]sysname AC1	
[AC1]undo info-center en
Info: Information center is disabled.
[AC1]vlan batch 10 100
Info: This operation may take a few seconds. Please wait for a moment...done.
[AC1]int g0/0/2
[AC1-GigabitEthernet0/0/2]p l t
[AC1-GigabitEthernet0/0/2]p t a v 10 100
[AC1-GigabitEthernet0/0/2]q
[AC1]int vlan 100
[AC1-Vlanif100]ip add 192.168.1.1 24
[AC1-Vlanif100]q
[AC1]dhcp en
Info: The operation may take a few seconds. Please wait for a moment.done.
[AC1]int vlan 100
[AC1-Vlanif100]dhcp select interface 
[AC1-Vlanif100]q

配置AC相关参数:

[AC1]capwap source interface Vlanif 100  //指定capwap协议的信令源地址
[AC1]wlan	
[AC1-wlan-view]ap auth-mode mac-auth //指定AC的验证方式为MAC地址验证

//创建 AP-group,为的是后期对大量AP进行批量管理
[AC1-wlan-view]ap-group name bangong  
Info: This operation may take a few seconds. Please wait for a moment.done.
[AC1-wlan-ap-group-bangong]q	
//创建域文件,命名为default
[AC1-wlan-view]regulatory-domain-profile name default
[AC1-wlan-regulate-domain-default]q
[AC1-wlan-view]ap-g	
[AC1-wlan-view]ap-group  name bangong	//将配置好的“域配置文件”关联到每一个 ap-group	
[AC1-wlan-ap-group-bangong]regulatory-domain-profile default
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
[AC1-wlan-ap-group-bangong]q
	
[AC1-wlan-view]ap-id 1 ap-mac 00E0-FCBA-2F30	//自己ap的mac地址,格式要与这个一致
[AC1-wlan-ap-1]ap-name AP1     //了区分,命名AP1
[AC1-wlan-ap-1]ap-group bangong    //为ap指定加入ap-group
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 c
ontinue? [Y/N]:y
Info: This operation may take a few seconds. Please wait for a moment.. done.
[AC1-wlan-ap-1]q
[AC1-wlan-view]display ap all  查看ap是否注册成功



//设置加密密码为a1234567
[AC1-wlan-view]security-profile name bangong	
[AC1-wlan-sec-prof-bangong]security wpa2 psk pass-phrase a1234567 aes
[AC1-wlan-sec-prof-bangong]q
//设置ssid名称,为AP分配无线信号的名称
[AC1-wlan-view]ssid-profile name bangong
[AC1-wlan-ssid-prof-bangong]ssid bangong
Info: This operation may take a few seconds, please wait.done.
[AC1-wlan-ssid-prof-bangong]q
	

//创建无线客户端访问模板,关联以上三个参数;
[AC1-wlan-view]vap-profile name bangong	
[AC1-wlan-vap-prof-bangong]service-vlan vlan-id 10
Info: This operation may take a few seconds, please wait.done.
[AC1-wlan-vap-prof-bangong]security-profile bangong
Info: This operation may take a few seconds, please wait.done.
[AC1-wlan-vap-prof-bangong]ssid-profile bangong
Info: This operation may take a few seconds, please wait.done.
[AC1-wlan-vap-prof-bangong]q

//开启ap无线信号
	
[AC1-wlan-view]ap-group name bangong	
[AC1-wlan-ap-group-bangong]vap-profile bangong wlan 1 radio 0 //0表示ap发射的射频类型
Info: This operation may take a few seconds, please wait...done.
[AC1-wlan-ap-group-bangong]vap-profile bangong wlan 1 radio 1
Info: This operation may take a few seconds, please wait...done.
[AC1-wlan-ap-group-bangong]q



验证STA 1S是否可连接,获取到IP

感谢点赞关注!!

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值