这几天使用ENSP进行VXLAN集中式网关测试,废话少说,直接上拓扑图:
可以看出来,CE2是spine,CE1和CE3是leaf,LSW1和LSW2模拟OVS。spine作为用户的三层网关。
关键配置
OSPF 配置
ospf 1
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 192.168.1.1 0.0.0.0
#
BGP 配置
bgp 100
peer 3.3.3.3 as-number 100
peer 3.3.3.3 connect-interface LoopBack1
peer 4.4.4.4 as-number 100
peer 4.4.4.4 connect-interface LoopBack1
#
ipv4-family unicast
peer 3.3.3.3 enable
peer 4.4.4.4 enable
#
l2vpn-family evpn
undo policy vpn-target
peer 3.3.3.3 enable
peer 4.4.4.4 enable
#
VXLAN相关配置
evpn-overlay enable
#
bridge-domain 10
vxlan vni 10
evpn
route-distinguisher 10:11
vpn-target 100:5010 export-extcommunity
vpn-target 100:5010 import-extcommunity
#
bridge-domain 20
vxlan vni 20
evpn
route-distinguisher 10:12
<