3层vni vxlan_配置三段式VXLAN实现三层互通示例

Spine1的配置文件#sysname Spine1#interface GE0/1/0undo shutdownip address 192.168.10.1 255.255.255.0#interface GE0/2/0undo shutdownip address 192.168.20.1 255.255.255.0#interface LoopBack1ip address 3.3.3.3...
摘要由CSDN通过智能技术生成

Spine1的配置文件

#

sysname Spine1

#

interface GE0/1/0

undo shutdown

ip address 192.168.10.1 255.255.255.0

#

interface GE0/2/0

undo shutdown

ip address 192.168.20.1 255.255.255.0

#

interface LoopBack1

ip address 3.3.3.3 255.255.255.255

#

ospf 1

area 0.0.0.0

network 3.3.3.3 0.0.0.0

network 192.168.10.0 0.0.0.255

network 192.168.20.0 0.0.0.255

#

return

Leaf1的配置文件

#

sysname Leaf1

#

ip vpn-instance vpn1

ipv4-family

route-distinguisher 11:11

vpn-target 1:1 export-extcommunity

vpn-target 11:1 export-extcommunity evpn

vpn-target 1:1 import-extcommunity

vpn-target 11:1 import-extcommunity evpn

vxlan vni 5010

#

evpn vpn-instance evrf1 bd-mode

route-distinguisher 10:1

vpn-target 11:1 export-extcommunity

vpn-target 11:1 import-extcommunity

#

bridge-domain 10

vxlan vni 10 split-horizon-mode

evpn binding vpn-instance evrf1

#

interface Vbdif10

ip binding vpn-instance vpn1

ip address 10.1.1.1 255.255.255.0

arp distribute-gateway enable

arp collect host enable

#

interface GE0/1/0

undo shutdown

ip address 192.168.10.2 255.255.255.0

#

interface GE0/2/0

shutdown

#

interface GE0/2/0.1 mode l2

encapsulation dot1q vid 10

rewrite pop single

bridge-domain 10

#

interface LoopBack1

ip address 5.5.5.5 255.255.255.255

#

interface Nve1

source 5.5.5.5

vni 10 head-end peer-list protocol bgp

#

bgp 100

peer 6.6.6.6 as-number 100

peer 6.6.6.6 connect-interface LoopBack1

#

l2vpn-family evpn

undo policy vpn-target

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值