192.168.1.0/24192.168.10.0/24192.168.20.0/24八、完整拓扑逻辑(你可以直接画拓扑图)

九、配置案例
1、基础信息规划
管理VLAN:1 网段:192.168.1.0/24
员工VLAN:10 网段:192.168.10.0/24
访客VLAN:20 网段:192.168.20.0/24
员工SSID:Huawei_Office
访客SSID:Huawei_Guest
AC地址:192.168.1.1
AP地址:自动获取2、华为路由器(集成 AC)完整命令配置
①基础配置 + 接口 VLAN
sys
sysname AR_AC_WiFi
vlan 1
vlan 10
vlan 20
# 上联互联网口(根据实际改)
interface GigabitEthernet0/0/0
ip address 拨号/静态IP 掩码
description To_Internet
# 下联交换机口(trunk透传VLAN)
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 1 10 20
# 管理VLAN接口
interface Vlanif1
ip address 192.168.1.1 255.255.255.0
# 员工VLAN接口
interface Vlanif10
ip address 192.168.10.1 255.255.255.0
# 访客VLAN接口
interface Vlanif20
ip address 192.168.20.1 255.255.255.0②DHCP 自动分配 IP
dhcp enable
# AP管理地址池
ip pool AP_POOL
gateway-list 192.168.1.1
network 192.168.1.0 mask 255.255.255.0
dns-list 223.5.5.5
option 43 hex 800700000000C0A80101 # 让AP自动找AC
# 员工地址池
ip pool STAFF_POOL
gateway-list 192.168.10.1
network 192.168.10.0 mask 255.255.255.0
dns-list 223.5.5.5
# 访客地址池
ip pool GUEST_POOL
gateway-list 192.168.20.1
network 192.168.20.0 mask 255.255.255.0
dns-list 223.5.5.5
# 接口启用DHCP
int Vlanif1
dhcp select global
int Vlanif10
dhcp select global
int Vlanif20
dhcp select global③NAT 上网配置
acl number 3000
rule 10 permit ip source 192.168.1.0 0.0.0.255
rule 20 permit ip source 192.168.10.0 0.0.0.255
rule 30 permit ip source 192.168.20.0 0.0.0.255
interface GigabitEthernet0/0/0
nat outbound 3000④AC 无线配置(核心)
wlan ac
# 国家码
country code CN
# 5G/2.4G 模板
ap 5g-profile name 5G
radio-type 80211ax
channel 40mhz
ap 2g-profile name 2G
radio-type 80211ax
channel 20mhz
# 员工SSID
ssid-profile name STAFF_SSID ssid Huawei_Office
security-profile name STAFF_SEC
wpa2 psk pass-phrase Huawei@1234 aes
# 访客SSID
ssid-profile name GUEST_SSID ssid Huawei_Guest
security-profile name GUEST_SEC
wpa2 psk pass-phrase Guest@888 aes
# VAP模板(绑定SSID+VLAN)
vap-profile name STAFF_VAP
ssid-profile STAFF_SSID
security-profile STAFF_SEC
service-vlan vlan-id 10
user-isolate enable # 终端隔离
vap-profile name GUEST_VAP
ssid-profile GUEST_SSID
security-profile GUEST_SEC
service-vlan vlan-id 20
user-isolate enable
traffic-filter outbound any cir 4096 # 访客限速4Mbps
# AP组配置
ap-group name OFFICE_AP
radio 0
2g-profile 2G
vap-profile STAFF_VAP wlan 1
vap-profile GUEST_VAP wlan 2
radio 1
5g-profile 5G
vap-profile STAFF_VAP wlan 1
vap-profile GUEST_VAP wlan 2
# 自动加入AP
ap auth-mode mac-auth
ap confirm all⑤漫游优化(企业必开)
wlan ac
roam optimize enable
roam rssi threshold 65⑥访客禁止访问内网(安全隔离)
acl number 3001
rule 10 deny ip source 192.168.20.0 0.0.0.255 destination 192.168.1.0 0.0.0.255
rule 20 deny ip source 192.168.20.0 0.0.0.255 destination 192.168.10.0 0.0.0.255
rule 30 permit ip
interface Vlanif20
traffic-filter inbound acl 3001⑦保存配置
save3、华为 POE 交换机 最简配置
sys
sysname POE_SW
vlan 1
vlan 10
vlan 20
# 上联口
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 1 10 20
# AP下联口
interface GigabitEthernet0/0/2 to 0/0/24
port link-type trunk
port trunk pvid vlan 1
port trunk allow-pass vlan 1 10 20
poe enable
save5、只需要改 3 个地方就能用
不想错过文章内容?读完请点一下“在看
”,加个“关注”,您的支持是我创作的动力
期待您的一键三连支持(点赞、在看、分享~)