ENSP实现AC间三层漫游

实验拓扑如下图:

AC1和AC2属于不同的IP地址段,实现终端在不同AC间的三层漫游

效果:终端从AC1/AP1漫游到AC2/AP2后IP地址不变,业务不中断

配置如下表:

AC1AC2R1R2

vlan batch 10 20 40 88
dhcp enable

#
interface Vlanif10
 ip address 10.1.10.1 255.255.255.0
 dhcp select interface
#
interface Vlanif20
 ip address 10.1.20.1 255.255.255.0
 dhcp select interface
#
interface Vlanif88
 ip address 192.168.88.1 255.255.255.0
#
interface GigabitEthernet0/0/1
 port link-type access
 port default vlan 10
#
interface GigabitEthernet0/0/2
 port link-type trunk
 port trunk pvid vlan 10
 port trunk allow-pass vlan 10 20
#

interface GigabitEthernet0/0/8
 port link-type access
 port default vlan 88
 undo negotiation auto
 duplex half
#

ip route-static 0.0.0.0 0.0.0.0 10.1.10.2
ip route-static 2.2.2.2 255.255.255.255 192.168.88.2
#
capwap source interface vlanif10
#

wlan
 security-profile name office
 ssid-profile name office
  ssid office
 vap-profile name office
  service-vlan vlan-id 20
  ssid-profile office
  security-profile office
  home-agent ac   //默认家乡为AP
 regulatory-domain-profile name china
 ap auth-mode no-auth
 mobility-group name mo  //漫游组配置
  member ip-address 10.1.30.1
  member ip-address 10.1.10.1

 ap-group name home
  regulatory-domain-profile china
  radio 0
   vap-profile office wlan 1
  radio 1
   vap-profile office wlan 1
  radio 2
   vap-profile office wlan 1
 ap-group name default
 ap-id 0 type-id 56 ap-mac 00e0-fc50-1c60 ap-sn 210235448310941BA75E
  ap-name AP1
  ap-group home
#

vlan batch 20 30 40
#
dhcp enable
#
interface Vlanif30
 ip address 10.1.30.1 255.255.255.0
 dhcp select interface
#
interface Vlanif40
 ip address 10.1.40.1 255.255.255.0
 dhcp select interface
#
interface GigabitEthernet0/0/1
 port link-type access
 port default vlan 30
#
interface GigabitEthernet0/0/2
 port link-type trunk
 port trunk pvid vlan 30
 port trunk allow-pass vlan 30 40
#
ip route-static 0.0.0.0 0.0.0.0 10.1.30.2
#
capwap source interface vlanif30
#
wlan
 security-profile name office
 ssid-profile name office
  ssid office
  vap-profile name office
  service-vlan vlan-id 40
  ssid-profile office
  security-profile office
  home-agent ac
 regulatory-domain-profile name china
 ap auth-mode no-auth
 mobility-group name mo
  member ip-address 10.1.10.1
  member ip-address 10.1.30.1

 ap-group name home
  regulatory-domain-profile china
  radio 0
   vap-profile office wlan 1
  radio 1
   vap-profile office wlan 1
  radio 2
   vap-profile office wlan 1
 ap-id 0 type-id 56 ap-mac 00e0-fca3-20c0 ap-sn 210235448310E32A704C
  ap-name AP2
  ap-group home
 #
#
interface GigabitEthernet0/0/0
 ip address 10.1.10.2 255.255.255.0 
#
interface GigabitEthernet0/0/1
 ip address 10.1.30.2 255.255.255.0 
#
ip route-static 10.1.20.0 255.255.255.0 10.1.10.1
ip route-static 10.1.40.0 255.255.255.0 10.1.30.1
#
#
interface GigabitEthernet0/0/0
 ip address 192.168.88.2 255.255.255.0 
#
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.88.1
#

过程关注:

        1. 配置完漫游组后,终端获取的IP地址不是业务vlan20段的地址,重启AP后正常。另外需要注意,在AC2上要增加vlan20;AC1上要增加vlan40,否则获取不到正确的IP地址。

        2. 默认家乡代理为AP,即终端从AC1漫游到AC2后,流量经AP转发,如下图:

在AP1接口G0/0/0上抓包如下:

        3. 修改家乡代理为AC后,流量不经过AP,直接通过AC转发。前提是AC和AP在同一二层网络中。如下图:

注:修改家乡代理后,终端会断线,需重连。

        4. 通过dis station roam-track sta-mac 5489-9881-2469命令查看终端漫游记录,如下图:

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值