CE2 and CE3
针对 CE2 CE3 设备,其与同子网访问的配置相仿,这里不再赘述;
不同点在于,CE2 CE3 要与 CE1 建立 IBGP 邻居,而非直接建立 IBPG 邻居;
CE1
添加 BD 配置:
bridge-domain 365 vxlan vni 4389 evpn route-distinguisher 365:1 vpn-target 365:1 export-extcommunity vpn-target 365:1 import-extcommunity # bridge-domain 742 vxlan vni 6731 evpn route-distinguisher 742:1 vpn-target 742:1 export-extcommunity vpn-target 742:1 import-extcommunity
添加 BGP 配置:
bgp 300 undo default ipv4-unicast peer 10.0.0.2 as-number 300 peer 10.0.0.2 connect-interface LoopBack0 peer 10.0.0.3 as-number 300 peer 10.0.0.3 connect-interface LoopBack0 # ipv4-family unicast undo peer 10.0.0.2 enable undo peer 10.0.0.3 enable # l2vpn-family evpn policy vpn-target peer 10.0.0.2 enable peer 10.0.0.2 reflect-client peer 10.0.0.3 enable peer 10.0.0.3 reflect-client
添加 NVE 配置:
interface Nve1 source 10.0.0.1 vni 4389 head-end peer-list protocol bgp vni 6731 head-end peer-list protocol bgp
添加 Vbdif 配置:
interface Vbdif365 ip address 192.168.10.254 255.255.255.0 # interface Vbdif742 ip address 192.168.20.254 255.255.255.0
访问测试
[PC1] ping PC2