huawei AC+AP无线网络配置

huawei 无线网络配置

二层AC

AP上线配置
配置AC源地址					capwap source interface Vlanif 1   
进入配置界面  				wlan 	
AC认证方式  					 ap auth-mode mac-auth
添加AP  默认在default组内		ap-id 0 ap-mac 00e0-fcc2-57f0     
查看全部ap状态 idle 初始化  nor正常上线状态    fault 离线    display ap all			

配置管理域模板   regulatory-domain-profile name huawei 
	配置国家代码  country-code CN    不同国家无线频率不一样
配置安全模板		security-profile name huawei 
	配置加密方式密码   security wpa-wpa2 psk pass-phrase 12345678 aes
配置SSID模板				ssid-profile name huawei
	配置无线SSID  		ssid wifiname   WiFi名称
配置vap模板				vap-profile name huawei 
	配置转发模式			forward-mode direct-forward        direct-forward直接转发   softgre云AP        tunnel 隧道转发         
	配置业务VLAN		service-vlan vlan-id 10
	调用安全模板			security-profile huawei
	调用SSID模板			ssid-profile huawei

创建AP组		ap-group  name work
	进入AP		ap-id 0 	
	加入AP组	ap-group work
	修改AP名	ap-name ap1
	调用域管理模板	regulatory-domain-profile huawei
	配置射频信号		vap-profile huawei wlan 1 radio all 

下面是部分代码
[AC6005]capwap source interface Vlanif 1
[AC6005]wlan
[AC6005-wlan-view]ap auth-mode mac-auth
[AC6005-wlan-view]ap-id 1 ap-mac 00e0-fc7f-0ea0
[AC6005]display ap all
[AC6005-wlan-view]regulatory-domain-profile name huawei
[AC6005-wlan-regulate-domain-huawei]country-code CN
[AC6005-wlan-view]security-profile name huawei
[AC6005-wlan-view]ssid-profile name huawei
[AC6005-wlan-ssid-prof-huawei]ssid wifiname
[AC6005-wlan-view]vap-profile name huawei
[AC6005-wlan-vap-prof-huawei]forward-mode direct-forward
[AC6005-wlan-vap-prof-huawei]service-vlan vlan-id 10
[AC6005-wlan-vap-prof-huawei]security-profile huawei
[AC6005-wlan-vap-prof-huawei]ssid-profile huawei
[AC6005-wlan-view]ap-group name work
[AC6005-wlan-ap-group-work]vap-profile huawei wlan 1 radio all
[AC6005-wlan-view]ap-id 0
[AC6005-wlan-ap-0]ap-group work
[AC6005-wlan-ap-0]ap-name ap1

实验证明不分旁挂式和直连式 所有配置在最后
管理地址不建议使用vlan1 因为任何一电脑接入都会获取到管理地址同一网段。
可在连接每个AP的接口上打上其他网段的PVID

在这里插入图片描述
配置文件如下

R1

interface Ethernet0/0/0
 ip address 21.1.1.1 255.255.255.0
interface Ethernet0/0/1
 ip address 12.1.1.1 255.255.255.0
ip route-static 0.0.0.0 0.0.0.0 12.1.1.2
ip route-static 10.1.0.0 255.255.0.0 21.1.1.2

R2

interface Ethernet0/0/0
 ip address 12.1.1.2 255.255.255.0
interface LoopBack0
 ip address 2.2.2.2 255.255.255.0
ip route-static 0.0.0.0 0.0.0.0 12.1.1.1

LSW1

vlan batch 10 20 to 21 30
ip pool work10
 gateway-list 10.1.1.1
 network 10.1.1.0 mask 255.255.255.0
 dns-list 8.8.8.8
ip pool work20
 network 10.1.2.0 mask 255.255.255.0
 dns-list 8.8.8.8
interface Vlanif10
 ip address 10.1.1.1 255.255.255.0
 dhcp select global
interface Vlanif20
 ip address 10.1.2.1 255.255.255.0
 dhcp select global
interface Vlanif21
 ip address 21.1.1.2 255.255.255.0
interface Vlanif30
 ip address 10.1.30.1 255.255.255.0
 dhcp select interface
interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/2
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/3
 port link-type access
 port default vlan 21
ip route-static 0.0.0.0 0.0.0.0 21.1.1.1

LSW2

vlan batch 10 20 30
interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk pvid vlan 30
 port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/2
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094

AC

vlan batch 3 10 20 30
interface Vlanif3
 ip address 192.168.0.9 255.255.255.0
interface Vlanif30
 ip address 10.1.30.2 255.255.255.0
interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk pvid vlan 30
 port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/2
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/3
 port link-type access
 port default vlan 3
capwap source interface vlanif30
wlan
 security-profile name cisco
  security wpa-wpa2 psk pass-phrase %^%#B^%X'-dygMX+&l'yw&KE/VW@;2)r]#]H`>J!(B3B
%^%# aes
 security-profile name huawei
  security wpa-wpa2 psk pass-phrase %^%#VQnQRJ\>p~#bxPC|0cULmv|51c~JzW9kiF78=rV4
%^%# aes
 ssid-profile name cisco
  ssid cisco
 ssid-profile name huawei
  ssid wifiname
 vap-profile name cisco
  service-vlan vlan-id 20
  ssid-profile cisco
  security-profile cisco
 vap-profile name huawei
  service-vlan vlan-id 10
  ssid-profile huawei
  security-profile huawei
 regulatory-domain-profile name huawei
 ap-group name work
  regulatory-domain-profile huawei
  radio 0
   vap-profile huawei wlan 1
   vap-profile cisco wlan 2
  radio 1
   vap-profile huawei wlan 1
   vap-profile cisco wlan 2
  radio 2
   vap-profile huawei wlan 1
   vap-profile cisco wlan 2
  ap-id 0 type-id 56 ap-mac 00e0-fcc2-57f0 ap-sn 2102354483104F519A66
  ap-name ap1
  ap-group work
 ap-id 1 type-id 56 ap-mac 00e0-fc7f-0ea0 ap-sn 210235448310F080403D
  ap-name ap2
  ap-group work

三层AC

三层AC管理地址有两个
一个是AC管理地址 vlanif3 AC需要保证路由可达
一个是给AP分配地址 vlanif10 需要在DHCP地址池指定AC地址 option 43 ascii 10.1.3.2

在这里插入图片描述
配置如下

R1

interface Ethernet0/0/0
 ip address 11.1.1.1 255.255.255.0
interface Ethernet0/0/1
 ip address 2.2.2.1 255.255.255.0
ip route-static 0.0.0.0 0.0.0.0 2.2.2.2
ip route-static 10.0.0.0 255.0.0.0 11.1.1.2

R2

interface Ethernet0/0/0
 ip address 2.2.2.2 255.255.255.0
interface LoopBack0
 ip address 3.3.3.3 255.255.255.0
ip route-static 0.0.0.0 0.0.0.0 2.2.2.1

LSW1

vlan batch 2 to 3 10 to 11 20
dhcp enable
ip pool 1
 gateway-list 10.1.1.1
 network 10.1.1.0 mask 255.255.255.0
 dns-list 8.8.8.8
 option 43 ascii 10.1.3.2
ip pool 20
 gateway-list 10.1.2.1
 network 10.1.2.0 mask 255.255.255.0
 dns-list 8.8.8.8
interface Vlanif3
 ip address 10.1.3.2 255.255.255.0
interface Vlanif10
 ip address 10.1.1.1 255.255.255.0
 dhcp select global
interface Vlanif11
 ip address 11.1.1.2 255.255.255.0
interface Vlanif20
 ip address 10.1.2.1 255.255.255.0
 dhcp select global
interface GigabitEthernet0/0/1
 port link-type access
 port default vlan 11
interface GigabitEthernet0/0/2
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/3
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
ip route-static 0.0.0.0 0.0.0.0 11.1.1.1

LSW2

vlan batch 10 to 11 20
interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk pvid vlan 10
 port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/2
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094

AC

vlan batch 3 10 20
interface Vlanif3
 ip address 10.1.3.1 255.255.255.0
interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
ip route-static 0.0.0.0 0.0.0.0 10.1.3.2
capwap source interface vlanif3
wlan
 security-profile name huaweiwifi
  security wpa-wpa2 psk pass-phrase %^%#!mOW*,2vM89N6RN4;G#O^.uQ01s|b~4${<'GWK`E
%^%# aes
 ssid-profile name huaweiwifi
  ssid huaweiwifi
 vap-profile name huaweiwifi
  service-vlan vlan-id 20
  ssid-profile huaweiwifi
  security-profile huaweiwifi
 ap-group name group1
  radio 0
   vap-profile huaweiwifi wlan 1
  radio 1
   vap-profile huaweiwifi wlan 1
  radio 2
   vap-profile huaweiwifi wlan 1
 ap-group name default
 ap-id 0 type-id 47 ap-mac 00e0-fc81-7bb0 ap-sn 210235448310E80AE10D
  ap-name ap1
  ap-group group1
  • 19
    点赞
  • 159
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值