BGP站点双归的问题:
前提条件:
1、站点多PE使用的AS号相同
2、AR2通告BGP路由100.2.2.2 32
3、AR2向AR4通告的路由将MED值设置为100(为了让AR4优选AR3传递的路由)
4、AR4设备对站点CE设备执行[AR4-BGP-A]peer 10.1.24.2 substitute-as命令
将和自身重复的AS编号进行替换(将传递给邻居的路由携带的AS-PATH值转变为自身所在的AS-PATH值)
关键配置
AR1:
sys
sys AR1
int g0/0/0
ip add 10.1.13.1 24
int g0/0/1
ip add 10.1.12.1.24
bgp 6500
peer 10.1.12.2 as 65000
peer 10.1.13.3 as 100
AR2:配置与AR1类似
AR3:
sys
sys AR3
ip vpn-instance A
route-distingusiher 100:1
vpn-target 1:1(默认出入相同)
isis 1
is-level level 2
cost-style wide
bgp 100
ipv4-family vpn-instance A
peer 10.1.13.1 as-number 65000
peer 10.1.13.1 soo 123:123
peer 4.4.4.4 as-number 100
undo peer 4.4.4.4 enable
ipv4-family vpnv4
peer 4.4.4.4 enable
int loopback 0
ip add 3.3.3.3 32
is-is enable
mpls lsr-id 3.3.3.3
mpls
mpls ldp
int g0/0/1
ip add 10.1.34.3 24
mpls
mpls ldp
isis enable
AR4:
sys
sys AR4
isis 1
is-level level 2
cost-style wide
mpls lsr-id 4.4.4.4
mpls
mpls ldp
int loopback 0
ip add 4.4.4.4 32
is enable
int g0/0/1
ip add 10.1.34.4 32
mpls
mpls ldp
isis enable
ip vpn-instance A
route-ditinguisher 100:100
vpn-target 1:1
int g0/0/0
ip binding vpn-instance A
ip add 10.1.24.4 24
bgp 100
peer 3.3.3.3 as-number 100
undo peer 3.3.3.3 enable
ipv4-family vpnv4
peer 3.3.3.3 enable
ipv4-family vpn-instance A
peer 10.1.24.2 substitute-as
peer 10.1.24.2 soo 123:123
dis bgp vpnv4 all routing-table
dis bgp vpnv4 all peer