|
发表于 2015-2-26 01:07:42
|
显示全部楼层
如果没理解错的话,一个是PE和RR是用MP-IBGP建立邻居,而ASBR和ASBR之间是用EBGP建立邻居,然后重分布进自己AS内的IGP,哪里会存在路由翻转问题?
我的环境如下:
R1 - R2 - R3 ---- R4 - R5 - R6
PE - RR - ASBR -- ASBR- RR- PE
然后我贴2个路由表给你看一下
R4#sh ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, + - replicated route
Gateway of last resort is not set
11.0.0.0/32 is subnetted, 1 subnets
B 11.1.1.1 [20/3] via 34.1.1.3, 00:01:42
22.0.0.0/32 is subnetted, 1 subnets
B 22.1.1.1 [20/2] via 34.1.1.3, 00:01:42
34.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
C 34.1.1.0/24 is directly connected, FastEthernet0/0
C 34.1.1.3/32 is directly connected, FastEthernet0/0
L 34.1.1.4/32 is directly connected, FastEthernet0/0
44.0.0.0/32 is subnetted, 1 subnets
C 44.1.1.1 is directly connected, Loopback0
45.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 45.1.1.0/24 is directly connected, FastEthernet1/0
L 45.1.1.4/32 is directly connected, FastEthernet1/0
55.0.0.0/32 is subnetted, 1 subnets
O 55.1.1.1 [110/2] via 45.1.1.5, 00:02:14, FastEthernet1/0
56.0.0.0/24 is subnetted, 1 subnets
O 56.1.1.0 [110/2] via 45.1.1.5, 00:02:14, FastEthernet1/0
66.0.0.0/32 is subnetted, 1 subnets
O 66.1.1.1 [110/3] via 45.1.1.5, 00:02:14, FastEthernet1/0
R4#
R6#sh ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, + - replicated route
Gateway of last resort is not set
11.0.0.0/32 is subnetted, 1 subnets
O E2 11.1.1.1 [110/1] via 56.1.1.5, 00:01:42, FastEthernet0/0
22.0.0.0/32 is subnetted, 1 subnets
O E2 22.1.1.1 [110/1] via 56.1.1.5, 00:01:42, FastEthernet0/0
44.0.0.0/32 is subnetted, 1 subnets
O 44.1.1.1 [110/3] via 56.1.1.5, 00:02:13, FastEthernet0/0
45.0.0.0/24 is subnetted, 1 subnets
O 45.1.1.0 [110/2] via 56.1.1.5, 00:02:23, FastEthernet0/0
55.0.0.0/32 is subnetted, 1 subnets
O 55.1.1.1 [110/2] via 56.1.1.5, 00:02:23, FastEthernet0/0
56.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 56.1.1.0/24 is directly connected, FastEthernet0/0
L 56.1.1.6/32 is directly connected, FastEthernet0/0
66.0.0.0/32 is subnetted, 1 subnets
C 66.1.1.1 is directly connected, Loopback0
R6#
R6#sh ip bgp vpnv4 all
BGP table version is 8, local router ID is 66.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
Route Distinguisher: 100:1
*>i1.1.1.1/32 11.1.1.1 0 100 0 100 i
Route Distinguisher: 200:1 (default for vrf B)
*>i1.1.1.1/32 11.1.1.1 0 100 0 100 i
*> 6.6.6.6/32 0.0.0.0 0 32768 i
R6#
R6#trace vrf B 1.1.1.1
Type escape sequence to abort.
Tracing the route to 1.1.1.1
1 56.1.1.5 [MPLS: Labels 18/21 Exp 0] 116 msec 80 msec 76 msec
2 45.1.1.4 [MPLS: Labels 20/21 Exp 0] 72 msec 72 msec 96 msec
3 34.1.1.3 [MPLS: Labels 20/21 Exp 0] 92 msec 76 msec 72 msec
4 23.1.1.2 [MPLS: Labels 16/21 Exp 0] 96 msec 76 msec 56 msec
5 1.1.1.1 100 msec 72 msec 96 msec
R6#
我想这就是典型的,你要的option C的模型吧。保持内层标签不变。
|
6#
2015-2-26 01:07:42
回复(0)
收起回复
|