有了Option 4的基礎理解Option 5會簡單一些:
它的意思如果AS10和AS20之間隔着一個AS30,而且這個AS上不啓用MPBGP。
那麼建議在R3和R8之間啓用MPBGP。
一些底層的配置,例如各個域的LDP,AS10內的MBGP,AS20內的MBGP,R2,R9上的VRF導入導出和R1,R10之間的鄰居關係,不說了。
首先R3和R8之間要形成鄰居關係,必須知道對方環回口的路由。
像Option4一樣要使用BGP傳遞路由,從R2到R9之間都建立BGP。
建立完之後要解決各種BGP下一跳不可達的問題。
R4對R3,R5對R6,R6對R5,R7對R8都需要使用
現在R3上學習到了R9LO0路由:
R3#show ip route bgp
5.0.0.0/32 is subnetted, 1 subnets
B 5.5.5.5 [200/0] via 4.4.4.4, 00:00:50
6.0.0.0/32 is subnetted, 1 subnets
B 6.6.6.6 [200/0] via 4.4.4.4, 00:00:50
7.0.0.0/32 is subnetted, 1 subnets
B 7.7.7.7 [200/0] via 4.4.4.4, 00:00:34
8.0.0.0/32 is subnetted, 1 subnets
B 8.8.8.8 [200/0] via 4.4.4.4, 00:00:34
9.0.0.0/32 is subnetted, 1 subnets
B 9.9.9.9 [200/0] via 4.4.4.4, 00:00:34
可以建立MPEBGP鄰居關係。
R3(config)#router bgp 10
R3(config-router)#nei 8.8.8.8 remote 20
R3(config-router)#nei 8.8.8.8 up lo 0
R3(config-router)#nei 8.8.8.8e
R3(config-router)#add v
R3(config-router-af)#nei 8.8.8.8 ac
之後R1學習到了路由,但是肯定Ping不通。
R1#show ip route ospf
10.0.0.0/32 is subnetted, 1 subnets
O IA 10.10.10.10 [110/11] via 12.12.12.2, 00:00:26, FastEthernet0/0
90.0.0.0/24 is subnetted, 1 subnets
O IA 90.90.90.0 [110/11] via 12.12.12.2, 00:00:26, FastEthernet0/0
和Option4一樣,不爲BGP路由發佈標籤。
不用重分佈,我在每個BGP鄰居關係都使用nei send-label
之後就會看見現象了啊!
R1#traceroute 10.10.10.10
1 12.12.12.2 104 msec 96 msec 40 msec
2 23.23.23.3 [MPLS: Labels 301/423/805 Exp 0] 184 msec 104 msec 224 msec
3 34.34.34.4 [MPLS: Labels 423/805 Exp 0] 204 msec 156 msec 200 msec
4 45.45.45.5 [MPLS: Labels 516/805 Exp 0] 132 msec 112 msec 172 msec
5 56.56.56.6 [MPLS: Labels 609/805 Exp 0] 128 msec 152 msec 176 msec
6 67.67.67.7 [MPLS: Labels 700/805 Exp 0] 88 msec 120 msec 160 msec
7 78.78.78.8 [MPLS: Label 805 Exp 0] 188 msec 216 msec 244 msec
8 90.90.90.9 [MPLS: Label 905 Exp 0] 184 msec 152 msec 168 msec
9 90.90.90.10 228 msec * 244 msec
有三層標籤:
這裏我沒有在MPEBGP上使用 next-hop-unchanged所以最底層標籤會在R8上改變,如果有的話最底層標籤是有R9發出的不會變。
對於這三層標籤的簡單解釋,最底層標籤是R8發送的,是下一跳。
倒數第二層標籤是到達8.8.8.8這個下一跳的路由的標籤,這條路由的下一跳是R4所以標籤是由R4發送的。
然後最上層標籤是LDP的標籤目的是到達R4。
如果使用next-hop-unchanged這條命令會看見兩個三層標籤哦!