一、拓扑
二、配置思路
①核心网络配置ospf打通(互联网段、环回口)
②VTEP和border设备开启l2vpn,并配置tunnel
③创建VSI,并且绑定vxlan和tunnel
④VTEP对应接口绑定AC链路
⑤在网关设备(border)上创建VSI三层虚拟接口
⑥在VSI中绑定VSI三层虚拟接口
三、配置命令
一、核心网络配置互联网段、环回口,并且配置ospf打通网络
略
二、VTEP和border设备开启l2vpn,并配置tunnel
VTEP1:
l2vpn enable
interface Tunnel0 mode vxlan
source LoopBack0
destination 2.2.2.2
interface Tunnel1 mode vxlan
source LoopBack0
destination 3.3.3.3
VTEP2:
l2vpn enable
interface Tunnel0 mode vxlan
source LoopBack0
destination 1.1.1.1
interface Tunnel1 mode vxlan
source LoopBack0
destination 3.3.3.3
Border:
l2vpn enable
interface Tunnel0 mode vxlan
source LoopBack0
destination 1.1.1.1
interface Tunnel1 mode vxlan
source LoopBack0
destination 2.2.2.2
三、VTEP对应接口绑定AC链路
VTEP1、VTEP2、border:
vsi vxlan10
vxlan 10
tunnel 0
tunnel 1
vsi vxlan20
vxlan 20
tunnel 0
tunnel 1
四、VTEP对应接口绑定AC链路
VTEP1、VTEP2:
interface GigabitEthernet0/1
xconnect vsi vxlan10
interface GigabitEthernet0/2
xconnect vsi vxlan20
此时vxlan二层可以通信
五、在网关设备(border)上创建VSI三层虚拟接口
Border:
interface Vsi-interface10
ip address 10.1.1.254 255.255.255.0
interface Vsi-interface 20
ip address 10.1.2.254 255.255.255.0
六、在VSI中绑定VSI三层虚拟接口
Border:
vsi vxlan10
gateway vsi-interface 10
vsi vxlan20
gateway vsi-interface 20