ac配置
vlan 1
#
vlan 20
#
vlan 30
#
vlan 56
#
wlan service-template 1
ssid HOM
service-template enable
#
interface NULL0
#
interface Vlan-interface20
ip address 192.168.20.2 255.255.255.0
#
interface Vlan-interface30
#
interface Vlan-interface56
ip address 192.168.1.56 255.255.255.0
#
interface GigabitEthernet1/0/0
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 20 30
combo enable fiber
#
interface GigabitEthernet1/0/1
port link-mode bridge
port access vlan 56
combo enable fiber
local-user admin class manage
password hash $h$6$NpRgaUR2MNu4Cq0k$cZNkB5dW7EXqb3WAVViN0RGVat3XoV2TgBWJr/vpfaImWpXsowUHBog1etPhB4MdDdVKIBRhdInk7gb1Qf9ErQ==
service-type telnet http https
authorization-attribute user-role level-15
authorization-attribute user-role network-operator
#
ip http enable
ip https enable
#
wlan auto-ap enable
#
wlan ap-group default-group
vlan 1
#
wlan virtual-ap-group default-virtualapgroup
#
wlan ap 189e-a9ee-0200 model WA6320-HCL
serial-id H3C_18-9E-A9-EE-02-00
vlan 1
radio 1
radio enable
service-template 1 vlan 30
radio 2
gigabitethernet 1
交换机配置
dhcp enable
#
lldp global enable
#
system-working-mode standard
xbar load-single
password-recovery enable
lpu-type f-series
#
vlan 1
#
vlan 20
#
vlan 30
#
stp global enable
#
dhcp server ip-pool 1
gateway-list 192.168.20.1
network 192.168.20.0 mask 255.255.255.0
#
dhcp server ip-pool 2
gateway-list 192.168.30.1
network 192.168.30.0 mask 255.255.255.0
#
interface NULL0
#
interface Vlan-interface20
ip address 192.168.20.1 255.255.255.0
#
interface Vlan-interface30
ip address 192.168.30.1 255.255.255.0
#
interface FortyGigE1/0/53
port link-mode bridge
#
interface FortyGigE1/0/54
port link-mode bridge
#
interface GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 20 30
combo enable fiber
#
interface GigabitEthernet1/0/2
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 20 30
port trunk pvid vlan 20
combo enable fiber
比原文做了进一步的简化,效果一样。没有ac和ap可以简单模拟一下。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。