华为AC+AP上线配置(小型企业网)

文章详细描述了华为AR路由器(R1和AR2)的IP配置、DHCP设置,交换机(SW1)的VLAN管理和三层接口配置,以及AC控制器(AC1和AC6605)的DHCP、VLAN、无线配置等,包括SSID、安全策略和AP组的配置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

AR1配置:

<Huawei>system-view # 进入系统视图

<Huawei>sysname R1  # 设备重命名

[R1]dhcp enable  # 开启DHCP功能

[R1]acl 2000     # 创建NAT地址转换策略
[R1]rule permit source any  # 选择所有内网地址

[R1]interface GigabitEthernet0/0/0  # 进入接口
[R1-GigabitEthernet0/0/0]ip address 10.0.0.1 24  # 配置出接口地址
[R1-GigabitEthernet0/0/0]nat outbound 2000       # 应用NAT地址转换策略

[R1]interface GigabitEthernet0/0/1  # 进入接口
[R1-GigabitEthernet0/0/1]ip address 192.168.10.1 24  # 配置接口地址
[R1-GigabitEthernet0/0/1]dhcp select interface       # 通过接口地址自动创建DHCP地址池(PC用的vlan)

[R1-GigabitEthernet0/0/1]excluded-ip-address 192.168.10.2 192.168.10.10    #排除不分配的地址段
[R1-GigabitEthernet0/0/1]quit       # 退出

[R1]ip route-static 0.0.0.0 0 10.0.0.2    #添加出口路由

AR2配置:

<Huawei>system-view # 进入系统视图

<Huawei>sysname R2  # 设备重命名

[R1]interface GigabitEthernet0/0/0  # 进入接口
[R1-GigabitEthernet0/0/0]ip address 10.0.0.2 24  # 配置接口地址
[R1]interface GigabitEthernet0/0/1  # 进入接口
[R1-GigabitEthernet0/0/1]quit       # 退出

[R1]ip route-static 0.0.0.0 0 10.0.0.1    #添加出口路由

SW1配置:

<Huawei>system-view # 进入系统视图
<Huawei>sysname SW1 # 重命名
[SW1]undo info-center enable # 关闭提示信息

[SW1]vlan batch 10 20    # 创建vlan

[SW1]interface Vlanif10  # 进入三层接口
[SW1-Vlanif10]ip address 192.168.10.2 255.255.255.0    # 配置接口地址

[SW1]interface GigabitEthernet0/0/1              # 进入接口1
[SW1-GigabitEthernet0/0/1]port link-type access  # 配置接口类型
[SW1-GigabitEthernet0/0/1]port default vlan 10   # 绑定vlan

[SW1]interface GigabitEthernet0/0/2
[SW1-GigabitEthernet0/0/2]port link-type trunk
[SW1-GigabitEthernet0/0/2]port trunk allow-pass vlan all

[SW1]interface GigabitEthernet0/0/3
[SW1-GigabitEthernet0/0/3]port link-type access
[SW1-GigabitEthernet0/0/3]port default vlan 10

[SW1]interface GigabitEthernet0/0/4
[SW1-GigabitEthernet0/0/4]port link-type trunk            # 配置接口类型
[SW1-GigabitEthernet0/0/4]port trunk allow-pass vlan all  # 放行所有vlan

AC1基础配置:

[AC6005]dhcp enable         # 开启dhcp功能
[AC6005]vlan batch 10 20    # 创建vlan

[AC6005]int vlanif10        # 创建三层接口
[AC6005-Vlanif20]ip add 192.168.10.3 24    # 配置ip

[AC6005]int vlanif20        # 创建三层接口
[AC6005-Vlanif20]ip add 192.168.20.1 24    # 配置ip
[AC6005-Vlanif20]dhcp select interface     # 创建dhcp地址池(AP用)

[AC6005]interface GigabitEthernet0/0/1             # 进入接口
[AC6005-GigabitEthernet0/0/1]port link-type trunk  # 配置接口类型
[AC6005-GigabitEthernet0/0/1]port trunk allow-pass vlan all    # 放行所有vlan

[AC6605]ip route-static 0.0.0.0 0 192.168.10.1  # 添加出口地址
[AC6605]capwap source interface Vlanif 20       # 为capwap隧道绑定vlan(AP用的vlan)

AC1无线配置:

[AC6605]wlan #进入无线配置视图
[AC6605-wlan-view]
 
[AC6605-wlan-view]regulatory-domain-profile name office-domain #创建域管理模板,名称为office-domain
[AC6605-wlan-regulate-domain-office-domain]country-code CN #配置国家代码
[AC6605-wlan-regulate-domain-office-domain]quit
 
[AC6605-wlan-view]ssid-profile name office-ssid #创建SSID模板,名称为office-ssid
[AC6605-wlan-ssid-prof-office-ssid]ssid office  #配置SSID名称为office
[AC6605-wlan-ssid-prof-office-ssid]quit
 
[AC6605-wlan-view]security-profile name office-security #创建安全策略,名称为office-security
[AC6605-wlan-sec-prof-office-security]security wpa-wpa2 psk pass-phrase 12345678 aes #SSID密码为12345678
 
[AC6605-wlan-view]vap-profile name office-vap #创建VAP模板
[AC6605-wlan-vap-prof-office-vap]forward-mode tunnel #隧道转发数据
[AC6605-wlan-vap-prof-office-vap]security-profile office-security #绑定安全策略
[AC6605-wlan-vap-prof-office-vap]ssid-profile office-ssid #绑定SSID模板
[AC6605-wlan-vap-prof-office-vap]service-vlan vlan-id 101 #绑定业务VLAN(用户用的vlan)
 
[AC6605-wlan-view]ap-group name office-ap-group #创建AP组,名称为office-ap-group
[AC6605-wlan-ap-group-office-ap-group]regulatory-domain-profile office-domain #绑定域模板
[AC6605-wlan-ap-group-office-ap-group]vap-profile office-vap wlan 1 radio 0 #绑定vap模板到射频卡0上
[AC6605-wlan-ap-group-office-ap-group]vap-profile office-vap wlan 1 radio 1 #绑定vap模板到射频卡1上
 
[AC6605-wlan-view]ap-id 0 ap-mac 00e0-fc10-14d0 添加AP,APmac
[AC6605-wlan-ap-0]ap-group office-ap-group #添加到AP组中

[AC6605-wlan-view]ap-id 1 ap-mac 00e0-fcb9-0f90 添加AP,APmac
[AC6605-wlan-ap-0]ap-group office-ap-group #添加到AP组中

SW2配置:

# 只在接入AP的端口绑定管理Vlan
#
sysname SW2
#
undo info-center enable
#
vlan batch 10 20
#
interface Ethernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan all
#
interface Ethernet0/0/2
 port link-type trunk
 port trunk pvid vlan 20
 port trunk allow-pass vlan all
#
interface Ethernet0/0/3
 port link-type trunk
 port trunk pvid vlan 20
 port trunk allow-pass vlan all

SW3配置: 

#
sysname SW3
#
undo info-center enable
#
vlan batch 10 20
#
interface Ethernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan all
#
interface Ethernet0/0/2
 port link-type access
 port default vlan 10

AP-MAC地址获取:

<Huawei>dis interface GigabitEthernet 0/0/0

PC设置:

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值