1.CE1开启EVPN,配置BGP协议
[~CE1]evpn-overlay enable
[*CE1]bgp 100
[*CE1-bgp]peer 2.2.2.2 as-number 100
[*CE1-bgp]peer 2.2.2.2 connect-interface LoopBack 0
[*CE1-bgp]l2vpn-family evpn
[*CE1-bgp-af-evpn]peer 2.2.2.2 enable
2.CE2开启EVPN,配置BGP协议
[~CE2]evpn-overlay enable
[*CE2]bgp 100
[*CE2-bgp]peer 1.1.1.1 as-number 100
[*CE2-bgp]peer 1.1.1.1 connect-interface LoopBack 0
[*CE2-bgp]l2vpn-family evpn
[*CE2-bgp-af-evpn]peer 1.1.1.1 enable
3.CE1配置BD域,创建业务接入点,放入不同域中
[*CE1]bridge-domain 10
[*CE1-bd10]vxlan vni 10
[*CE1-bd10]evpn
[*CE1-bd10-evpn]route-distinguisher 100:10
[*CE1-bd10-evpn]vpn-target 100:10
[*CE1]bridge-domain 20
[*CE1-bd20]vxlan vni 20
[*CE1-bd20]evpn
[*CE1-bd20-evpn]route-distinguisher 100:20
[*CE1-bd20-evpn]vpn-target 100:20
[*CE1]interface GE 1/0/0
[*CE1-GE1/0/0]undo shutdown
[*CE1]interface GE 1/0/0.10 mode l2
[*CE1-GE1/0/0.10]encapsulation dot1q vid 10
[*CE1-GE1/0/0.10]bridge-domain 10
[*CE1]interface GE 1/0/0.20 mode l2
[*CE1-GE1/0/0.20]encapsulation dot1q vid 20
[*CE1-GE1/0/0.20]bridge-domain 20
4.CE2配置BD域,创建业务接入点,放入不同域中
[*CE2]bridge-domain 10
[*CE2-bd10]vxlan vni 10
[*CE2-bd10]evpn
[*CE2-bd10-evpn]route-distinguisher 100:10
[*CE2-bd10-evpn]vpn-target 100:10
[*CE2]bridge-domain 20
[*CE2-bd20]vxlan vni 20
[*CE2-bd20]evpn
[*CE2-bd20-evpn]route-distinguisher 100:20
[*CE2-bd20-evpn]vpn-target 100:20
[*CE2]interface GE 1/0/0
[*CE2-GE1/0/0]undo shutdown
[*CE2-GE1/0/0]q
[*CE2]interface GE 1/0/0.10 mode l2
[*CE2-GE1/0/0.10]encapsulation dot1q vid 10
[*CE2-GE1/0/0.10]bridge-domain 10
[*CE2]interface GE 1/0/0.20 mode l2
[*CE2-GE1/0/0.20]encapsulation dot1q vid 20
[*CE2-GE1/0/0.20]bridge-domain 20
5.CE1配置VXLAN隧道
[*CE1]interface Nve 1
[*CE1-Nve1]source 1.1.1.1
[*CE1-Nve1]vni 10 head-end peer-list protocol bgp
[*CE1-Nve1]vni 20 head-end peer-list protocol bgp
[*CE1]commit
6.CE2配置VXLAN隧道
[*CE2]interface Nve 1
[*CE2-Nve1]source 2.2.2.2
[*CE2-Nve1]vni 10 head-end peer-list protocol bgp
[*CE2-Nve1]vni 20 head-end peer-list protocol bgp
[*CE2]commit
7.CE1、CE2、CE3的OSPF配置,SW1、SW2配置同上
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
请登录后查看评论内容