华为ensp配置AC+AP配置无线

 

 整体配置都在AC上面完成

[AC]undo info-center enable 

创建vlan:

[AC]vlan batch 100 101

进端口开trunk:

[AC]int g0/0/1  
[AC-GigabitEthernet0/0/1]port link-type trunk     
[AC-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[AC-GigabitEthernet0/0/1]int g0/0/2   
[AC-GigabitEthernet0/0/2]port link-type trunk   
[AC-GigabitEthernet0/0/2]port trunk pvid vlan 101  
[AC-GigabitEthernet0/0/2]port trunk all vlan all   
[AC-GigabitEthernet0/0/2]quit

创建dhcp地址池 :

[AC]ip pool huawei
Info: It is successful to create an IP address pool.
[AC-ip-pool-huawei]network 192.168.100.0 mask 24   
[AC-ip-pool-huawei]gateway-list 192.168.100.254  
[AC-ip-pool-huawei]dns-list 192.168.100.254   
排除掉一些IP地址:

[AC-ip-pool-huawei]excluded-ip-address 192.168.100.201 192.168.100.253
[AC-ip-pool-huawei]excluded-ip-address 192.168.100.1
[AC-ip-pool-huawei]excluded-ip-address 192.168.100.2
[AC-ip-pool-huawei]qu
启动DHCP服务 
[AC]dhcp enable

创建端口应用DHCP

[AC]int vlanif 100
[AC-Vlanif100]ip add 192.168.100.2 255.255.255.0   
[AC-Vlanif100]dhcp select global 
管理vlan接口

[AC-Vlanif100]int vlanif 101
[AC-Vlanif101]ip add 192.168.101.1 24    
[AC-Vlanif101]dhcp select interface   
[AC-Vlanif101]quit 

capwap隧道绑定端口
[AC]capwap source interface vlan101

前四布完成。

配置WLAN

 

[AC]wlan
创建AP 组
[AC-wlan-view]ap-group name ap
Info: This operation may take a few seconds. Please wait for a moment.done.  
[AC-wlan-ap-group-ap]quit 
创建域管理模板  
[AC-wlan-view]regulatory-domain-profile name domain
城市代码CN    
[AC-wlan-regulate-domain-domain]country-code CN
Info: The current country code is same with the input country code.
[AC-wlan-regulate-domain-domain]q
应用到AP组中   
[AC-wlan-view]ap-group name ap   
[AC-wlan-ap-group-ap]regulatory-domain-profile name domain   
[AC-wlan-regulate-domain-domain]quit 

绑定AP到AC的AP组中
[AC]wlan
MAC认证的方式  
[AC-wlan-view]ap auth-mode mac-auth   
[AC-wlan-view]ap-id 0 ap-mac 00e0-fcde-34e0  MAC地址为AP的MAC  
[AC-wlan-ap-0]ap-name area_1     
[AC-wlan-ap-0]ap-group ap
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.   
查看AP上线情况:[AC-wlan-ap-0]display ap all


[AC]wlan
安全模板    
[AC-wlan-view]security-profile name sec
[AC-wlan-sec-prof-sec]security wpa2 psk pass-phrase huawei@123 aes
[AC-wlan-sec-prof-sec]q
WLAN的名字:

 

[AC-wlan-view]ssid-profile name ssid
[AC-wlan-ssid-prof-ssid]ssid huawei
Info: This operation may take a few seconds, please wait.done.
[AC-wlan-ssid-prof-ssid]quit
 
创建VAP 
[AC-wlan-view]vap-profile name vap   
[AC-wlan-vap-prof-vap]forward-mode tunnel 
Info: This operation may take a few seconds, please wait.done.

[AC-wlan-vap-prof-vap]service-vlan vlan-id 100
Info: This operation may take a few seconds, please wait.done.
   
[AC-wlan-vap-prof-vap]security-profile sec
Info: This operation may take a few seconds, please wait.done.

[AC-wlan-vap-prof-vap]ssid-profile ssid
Info: This operation may take a few seconds, please wait.done.
[AC-wlan-vap-prof-vap]q    
[AC-wlan-vap-prof-vap]quit 
  
[AC-wlan-view]ap-group name ap 
[AC-wlan-ap-group-ap]vap-profile vap wlan 1 radio 0
Info: This operation may take a few seconds, please wait...done.
[AC-wlan-ap-group-ap]qu    
[AC-wlan-ap-group-ap]return 
<AC>dis vap ssid huawei

 

  • 24
    点赞
  • 96
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值