直连 

核心交换机:

Sys

#

sysname SW1

#

vlan batch 10 to 11 100 to 101 200

#

dhcp enable

#

diffserv domain default

#

drop-profile default

#

ip pool vlan100

 gateway-list 10.1.100.1

#

interface Vlanif1

#

interface Vlanif10

 ip address 10.1.10.254 255.255.255.0

 dhcp select relay

 dhcp relay server-ip 10.1.11.1

#

interface Vlanif11

 ip address 10.1.11.2 255.255.255.0

#

interface Vlanif100

 ip address 10.1.100.1 255.255.255.0

 dhcp select interface

#

interface Vlanif101

 ip address 10.1.101.1 255.255.255.0

 dhcp select interface

#

interface Vlanif200

 ip address 192.168.200.200 255.255.255.0

#

interface MEth0/0/1

#

interface GigabitEthernet0/0/1

 port link-type trunk

 port trunk allow-pass vlan 11

#

interface GigabitEthernet0/0/2

 port link-type trunk

 port trunk allow-pass vlan 10 to 11 100 to 101

#

interface GigabitEthernet0/0/3

 port link-type access

 port default vlan 200

#

interface LoopBack0

 ip address 2.2.2.2 255.255.255.255

#

ip route-static 0.0.0.0 0.0.0.0 192.168.200.201

#

Return

AC配置:

sys

#

 sysname AC1

#

vlan batch 11 100 to 101

#

vlan pool TB-OA

 vlan 100 to 101

#

dhcp enable

#

ip pool ap-ip

 gateway-list 10.1.10.254

 network 10.1.10.0 mask 255.255.255.0

 option 43 sub-option 3 ascii 10.1.11.1

#

interface Vlanif11

 ip address 10.1.11.1 255.255.255.0

 dhcp select global

#

interface GigabitEthernet0/0/1

 port link-type trunk

 port trunk allow-pass vlan 11

#

ip route-static 10.1.10.0 255.255.255.0 10.1.11.2

#

capwap source interface vlanif11

#

wlan

 security-profile name TB-OA

  security wpa-wpa2 psk pass-phrase a12345678 aes

 ssid-profile name TB-OA

  ssid TB-OA

 ssid-profile name default

 vap-profile name TB-OA

  service-vlan vlan-pool TB-OA

  ssid-profile TB-OA

  security-profile TB-OA

 ap-group name TB-OA

  radio 0

   vap-profile TB-OA wlan 1

  radio 1

   vap-profile TB-OA wlan 1

 ap-id 0 type-id 60 ap-mac ap的mac地址

  ap-name ap0

  ap-group TB-OA

 ap-id 1 type-id 60 ap-mac ap的mac地址

  ap-name ap1

  ap-group TB-OA

 ap-id 2 type-id 61 ap-mac ap的mac地址

  ap-name ap2

  ap-group TB-OA

 provision-ap

#

Return

接入交换机:

sys

#

 sysname SW2

vlan ba 10 11 100 101

int e0/0/1

p l t

p tr al vlan 10 11 100 101

int e0/0/2

p l t

p tr pvid vlan 10

po tr all vlan 10 11 100 101

int e0/0/3

p l t

p tr pvid vlan 10

po tr all vlan 10 11 100 101

int e0/0/4

p l t

p tr pvid vlan 10

po tr all vlan 10 11 100 101

R1配置:

#

interface GigabitEthernet0/0/0

 ip address 192.168.200.201 255.255.255.0

#

interface LoopBack0

 ip address 3.3.3.3 255.255.255.255

#

ip route-static 10.1.100.0 255.255.255.0 192.168.200.200

ip route-static 10.1.101.0 255.255.255.0 192.168.200.200

return

默认是直接转发,所以不需要特意设置。以上配置是做好实验之后复制的,可能有差错,实验原文件放在百度网盘了有需要可以去下载。源文件的接入交换机可能会忘记保存配置,要注意看下。有帮助到帮个赞吧

链接:https://pan.baidu.com/s/11byEZQXdD7UF2dvCO6bQaw 
提取码:xyke

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐