配置如下:
R1:
system-view
sysname r1
interface g0/0/0
ip address 192.168.102.2 24
interface g0/0/1
ip address 200.0.0.1 24
quit
ip route-static 192.168.101.0 255.255.255.0 192.168.102.1
SW1:
system-view
sysname sw1
vlan batch 100 102
interface e0/0/1
port link-type trunk
port trunk allow-pass vlan 100 102
interface e0/0/2
port link-type access
port default vlan 102
interface vlanif 100
ip address 192.168.100.2 24
interface vlanif 102
ip address 192.168.102.1 24
ip route-static 192.168.101.0 255.255.255.0 192.168.100.1
ip route-static 200.0.0.0 255.255.255.0 192.168.102.2
ac1:
system-view
sysname ac
dhcp enable
vlan batch 100 101
interface g0/0/1
port link-type trunk
port trunk pvid vlan 100
port trunk allow-pass vlan 100 101
interface g0/0/0
port link-type trunk
port trunk allow-pass vlan 100
interface vlanif 100
ip address 192.168.100.1 24
dhcp select interface
dhcp server excluded-ip-address 192.168.100.2
interface vlanif 101
ip address 192.168.101.1 24
dhcp select interface
dhcp server dns-list 114.114.114.114
wlan
ap-group name g1
quit
regulatory-domain-profile name d1
country-code cn
ap-group name g1
regulatory-domain-profile d1
ap auth-mode mac-auth
ap-id 0 mac-auth 00e0-fc03-3940
ap-name area_1
ap-group g1
capwap source interface vlanif 100
wlan
security-profile name security-net
security wpa2 psk pass-phrase a1234567 aes
ssid-profile name ssid-net
ssid wlan-net
vap-profile name vap-net
forward-mode tunnel
server-vlan vlan-id 101
security-profile security-net
ssid-profile ssid-net
ap-group name g1
vap-profile vap-net wlan 1 radio 0
vap-profile vap-net wlan 1 radio 1
rrm-profile name rrm-net
undo calibrate auto-channel-select disable
undo calibrate auto-txpower-select disable
ap-id 0
radio 0
channel 20mhz 6
eirp 127
raido 1
channel 20mhz 149
eirp 127
ip route-static 0.0.0.0 0.0.0.0 192.168.100.2
相关文章: