使用ibgp配置的evpn vxlan可以正常建连。
替换成ebgp配置后,leaf节点可以收到rt-3路由,但是没有自动创建vxlan tunnel。
(0)
最佳答案
因为auto生成的RT值为BGP AS:VXLAN ID,此时两端的AS号不一样了,RT值也不一样,需要手动配置相同的RT值:
(0)
leaf节点1配置:
l2vpn enable
vxlan tunnel mac-learning disable
vxlan tunnel arp-learning disable
vsi vpc-1010
vxlan 1010
quit
evpn encapsulation vxlan
route-distinguisher 101:1010
vpn-target 10:10
quit
quit
vsi vpc-1020
vxlan 1020
quit
evpn encapsulation vxlan
route-distinguisher 101:1020
vpn-target 10:20
quit
quit
leaf节点2配置:
l2vpn enable
vxlan tunnel mac-learning disable
vxlan tunnel arp-learning disable
vsi vpc-1010
vxlan 1010
quit
evpn encapsulation vxlan
route-distinguisher 102:1010
vpn-target 10:10
quit
quit
vsi vpc-1020
vxlan 1020
quit
evpn encapsulation vxlan
route-distinguisher 102:1020
vpn-target 10:20
quit
quit
spine节点配置:
bgp 1201 instance evpn-bgp
router-id 10.232.4.14
group IPV4_IB external
peer 10.232.4.35 as-number 1101
peer 10.232.4.36 as-number 1102
peer 10.232.4.35 group IPV4_IB
peer 10.232.4.36 group IPV4_IB
peer IPV4_IB connect-interface loopback 1
peer IPV4_IB ebgp-max-hop 32
address-family l2vpn evpn
peer IPV4_IB enable
y
undo policy vpn-target
quit
quit
(0)
leaf节点2配置: leaf节点2 配置 l2vpn enable vxlan tunnel mac-learning disable vxlan tunnel arp-learning disable vsi vpc-1010 vxlan 1010 quit evpn encapsulation vxlan route-distinguisher 102:1010 vpn-target 10:10 quit quit vsi vpc-1020 vxlan 1020 quit evpn encapsulation vxlan route-distinguisher 102:1020 vpn-target 10:20 quit quit bgp 1102 instance evpn-bgp router-id 10.232.4.36 group IPV4_IC external peer 10.232.4.14 as-number 1201 peer 10.232.4.14 group IPV4_IC peer IPV4_IC connect-interface loopback 1 peer IPV4_IC ebgp-max-hop 32 address-family l2vpn evpn peer IPV4_IC enable Y quit quit
leaf节点2配置: leaf节点2 配置 l2vpn enable vxlan tunnel mac-learning disable vxlan tunnel arp-learning disable vsi vpc-1010 vxlan 1010 quit evpn encapsulation vxlan route-distinguisher 102:1010 vpn-target 10:10 quit quit vsi vpc-1020 vxlan 1020 quit evpn encapsulation vxlan route-distinguisher 102:1020 vpn-target 10:20 quit quit bgp 1102 instance evpn-bgp router-id 10.232.4.36 group IPV4_IC external peer 10.232.4.14 as-number 1201 peer 10.232.4.14 group IPV4_IC peer IPV4_IC connect-interface loopback 1 peer IPV4_IC ebgp-max-hop 32 address-family l2vpn evpn peer IPV4_IC enable Y quit quit
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
添加了 peer next-hop-invariable 后解决了,您太神了!