配置Vxlan 集中网关
在GW CE上和Vxlan 建立隧道 启用 Vbdif 接口 通过BD域中VNI 区分不同数据流
### CE1
bridge-domain 10
vxlan vni 10
bridge-domain 30
vxlan vni 30
interface Nve1
source 1.1.1.1
vni 10 head-end peer-list 2.2.2.2
vni 30 head-end peer-list 2.2.2.2
interface Vbdif10
ip binding vpn-instance A
ip address 10.0.0.254 255.255.255.0
ip vpn-instance A
ipv4-family
route-distinguisher 1:1
### CE2
bridge-domain 10
vxlan vni 10
bridge-domain 30
vxlan vni 30
interface GE1/0/1
undo shutdown
interface GE1/0/1.1 mode l2
encapsulation dot1q vid 10
bridge-domain 10
interface GE1/0/1.2 mode l2
encapsulation dot1q vid 30
bridge-domain 30
interface Nve1
source 2.2.2.2
vni 10 head-end peer-list 1.1.1.1
vni 30 head-end peer-list 1.1.1.1
配置默认路由
### CE1
ip route-static 0.0.0.0 0.0.0.0 14.0.0.4
ip route-static vpn-instance A 0.0.0.0 0.0.0.0 14.0.0.4 public # 在VPN实例中引入全局路由表
ip route-static 10.0.0.1 255.255.255.255 Vbdif10
ip route-static 10.0.0.0 255.255.255.0 vpn-instance A 10.0.0.254 #在全局路由表中引入VPN实例路由