</p>route-map Aiko permit 10
- I- i. a) Y7 b4 U/ U, ~% ^* n. [match community 1 exact-match: O& T2 G. b) c8 F# s+ Q' d
set metric 100
5 A; h4 `: q5 P- G!
* d2 s N: _" c" x# w! }route-map Aiko permit 20
6 [/ |% n G% t# C$ @. y, ~match community 2
. u3 h4 {/ [4 A0 M {' I!3 W0 f: H$ x- w
ip community-list 1 permit 100' s& l: i, f1 _: ?3 w" J
ip community-list 2 permit internet
_1 n, ~2 P1 p6 q!
/ X0 d# o% b# h5 |3 N( lConditional Advertising! F _* E3 a/ y; b2 j
一些有选择性的宣告BGP路由的方法:
" ^- u. O4 w i6 I9 Z) M: d1.当主路由(primary map)状态出故障之后,才宣告辅助路由(secondary map):& C$ y; |- f' v5 p' Z% n
Aiko(config-router)#neighbor {ip-address} advertise-map {secondary-map} non-exist-map{primary-map}' |2 |0 U! h9 m1 [- A
2.选择性的宣告之前通过汇总命令抑制的路由:
) z, Z* C g1 J# M8 y, ?3 tAiko(config-router)#neighbor {ip-address} unsuppress-map {map-name}
9 e+ F5 c; E0 wMonitoring and Maintaining BGP Filtering9 \' c5 s, H8 C
一些辅助性的调试命令:2 X* \2 ^6 b( x, f( n
1.显示BGP表信息:
" C% Q" U# d; s o% `% \' iAiko#show ip bgp
- L4 I+ m, N4 f1 o2.显示BGP邻居信息:+ B% l. @6 K/ ~, }
Aiko#show ip bgp neighbors [ip-address]
% H1 H l1 U: j3.显示被惩罚的BGP路由信息:( E O% l2 g# i
Aiko#show ip bgp dampened-paths
& T g2 c' {- k* S! ]4 g, i) E4.显示所有的BGP连接信息:6 u% I/ o0 B$ c2 a3 g
Aiko#show ip bgp summary! S1 E& `6 G9 Y9 ~2 r
5.清除BGP的路由惩罚:1 h' C/ ~. G/ n
Aiko#clear ip bgp dampening [ip-address mask]9 I3 G& O, y4 G" S/ q; }5 ?) H
6.显示属于特定BGP社团的路由:+ m7 w3 |+ m" b0 ]+ P" R0 U
Aiko#show ip bgp community {number} [exact] |