场景:
AC旁挂在三层接入交换机上,交换机连接瘦AP1和瘦AP2;
接入交换机做为DHCP地址池下发AP管理地址和用户的业务地址;
AP管理VLAN和设备互联VLAN使用VLAN10,用户业务VLAN使用VLAN20;
AP1关联SSID test1,使用本地转发模式转发用户数据流量;
AP2关联SSID test2,使用集中转发模式转发用户数据流量。
配置前准备:接入交换机和AC的VLAN和SVI接口配置
(1)接入交换机配置:
vlan range 10,20
interface vlan 10
ip address 192.168.10.254 255.255.255.0
interface vlan 20
ip address 192.168.20.254 255.255.255.0
interface range GigabitEthernet 0/1-2
switchport mode trunk
switchport trunk allowed vlan only 10,20
switchport trunk native vlan 10
interface GigabitEthernet 0/3
switchport mode trunk
switchport trunk allowed vlan only 10,20
ip route 11.11.11.11 255.255.255.255 192.168.10.100
(2)AC配置:
vlan range 10,20
interface GigabitEthernet 0/1
switchport mode trunk
switchport trunk allowed vlan only 10,20
interface vlan 10
ip address 192.168.10.100 255.255.255.0
interface Loopback0
ip address 11.11.11.11 255.255.255.255
ip route 0.0.0.0 0.0.0.0 192.168.10.254
第一步:在接入交换机上配置DHCP地址池
service dhcp
ip dhcp pool AP
option 138 11.11.11.11
network 192.168.10.0 255.255.255.0
default-router 192.1.10.254
ip dhcp pool USER
network 192.168.20.0 255.255.255.0
default-router 192.1.20.254
第二步:创建WLAN
wlan-config 1 test1 //创建wlan视图1
tunnel local //配置流量转发模式为本地转发
wlan-config 2 test2 //创建wlan视图2
tunnel 8023 //配置流量转发模式为集中转发
第三步:创建AP组并关联WLAN
ap-group test1 //创建AP组test1
interface-mapping 1 20 ap-wlan-id 1 //绑定AP组和WLAN
ap-group test2 //创建AP组test2
interface-mapping 1 20 ap-wlan-id 2
第四步:AP上线后绑定AP组
ap-config AP1 //创建AP命名为AP1的设备
ap-mac 7042.d349.5a3e //绑定AP名和AP的MAC地址(AP上线之后执行show ap-config summary可查看)
ap-group test1 //绑定AP组test1
ap-config AP2 //创建AP命名为AP2的设备
ap-mac 7042.d349.46ab //绑定AP名和AP的MAC地址(AP上线之后执行show ap-config summary可查看)
ap-group test2 //绑定AP组test2
到此完成。
标签:255.255,锐捷,ruijie,AP,vlan,ap,interface,20,CLI From: https://blog.csdn.net/weixin_61093070/article/details/139219822