Case 134 ~7 H$ i& b! Y9 \% ]8 C
冗余RR配置实例:
8 K. m0 J1 }) {' O! Y& c路由器B配置如下:
% n$ K. j4 ], x! C% n!/ {$ @. P) f/ R3 v# k2 E
router bgp 100( l" r- x' z ~0 V# U$ ?: \0 d! j
neighbor 5.5.5.5 remote-as 100. U0 t5 D, S+ y9 h4 R
neighbor 5.5.5.5 route-reflector-client8 [. B% ~4 n. `' C3 ^: v
neighbor 6.6.6.6 remote-as 1000 f* `6 `2 d8 F% V, F9 l: G, L
neighbor 6.6.6.6 route-reflector-client
$ v8 H( m6 w3 [) Aneighbor 3.3.3.3 remote-as 1000 d! B2 H2 w& p
neighbor 9.9.9.9 remote-as 100
- e% {1 X5 o9 `2 cbgp cluster-id 10
2 g2 x* b$ G! W, I3 G' ?" |!3 `# U5 Z" V A4 s; X
路由器C配置如下:
" _9 c0 Y$ O: m! V!% Z: C! \ C2 }: |
router bgp 100
. J; `: o* {' M! B: j8 a& e% cneighbor 1.1.1.1 remote-as 100
7 `/ W ~" }7 q+ v) jneighbor 1.1.1.1 route-reflector-client; `+ w1 \$ B) R1 }2 R- m s6 ]: K
neighbor 2.2.2.2 remote-as 100% A% Q2 {& o8 P. {6 E. X
neighbor 2.2.2.2 route-reflector-client5 s. l* S9 r. F6 d/ Y, o1 q" x
neighbor 7.7.7.7 remote-as 100* F8 X1 N3 n$ ^# A2 l% K6 t1 N
neighbor 4.4.4.4 remote-as 100
5 b$ K2 s5 K- W4 g; G) m; Jneighbor 8.8.8.8 remote-as 200. [4 N2 [' m1 \3 g" D% z% r" Y
bgp cluster-id 10( {0 k1 R6 Y+ }4 v& n
!
! i, m* o; Z8 Y0 I% K$ C路由器G配置如下:
l5 U- y8 u1 }, t: U!7 U6 v( _# D1 n% ~: e: k
router bgp 100
9 k1 |; Y5 @7 y, r3 F; p* Oneighbor 10.10.10.10 remote-as 100
1 ?& ^6 K5 d. [( Q, t' S8 L- Mneighbor 12.12.12.12 remote-as 3008 q9 s. p( }1 D, z/ N8 b
!+ W, `( p& S O& j4 N: ^8 u& h
可以使用本地AS(local-AS)特性来对网络AS号进行迁移:
! t9 f" J9 z) o& K) r. p% \; l" z& NISP A通过AS 100和ISP C建立EBGP邻居关系;ISP B通过AS 200和ISP C建立EBGP邻居关系;ISPC通过AS 300分别和ISP A和ISP B建立EBGP邻居关系.当ISP A收购ISP B,ISP B将使用新的AS100.但是由于某种原因,ISP C不能更改对ISP B的设置,此时就需要用到本地AS特性:5 b8 E) W! I0 {3 {9 z7 {4 ~2 G+ A
在ISP B上使用本地AS特性之后,ISP B通过欺骗的方式,仍然以AS 200和ISP C建立邻居关系,而在查看BGP表的时候,AS-PATH属性(Path项)为200 100.
( \: d6 ~0 w0 Y" L( A( ]. j配置本地AS特性的步骤如下:
4 l$ K3 U4 [7 u. \1.指定BGP邻居:8 m( i& s# V, A8 b4 M7 d
Aiko(config-router)#neighbor {ip-address} remote-as {AS-number}
! C% {( @5 m: w' V+ F/ r2 r2.启用本地AS特性:
4 |( W0 Z# J) N% X Y4 J3 iAiko(config-router)#neighbor {ip-address} local-as {AS-number} [no-prepend [replace-as[dual-as]]] |