</p>router bgp 300+ R# u$ B6 l% e/ t
neighbor 3.3.3.2 remote-as 100
) ]$ o+ w% U' f7 Lneighbor 3.3.3.2 route map Aiko out
& b5 D9 ] K( t, `, ?, J! eneighbor 1.1.1.1 remote-as 300
, O3 x1 Y9 Z' n8 Y+ ^2 U; S!
' m+ s2 v/ w, t3 ^7 eroute-map Aiko permit 10
6 q; V- A% w% R7 Y+ Vset metric 200
* R! y4 C" F6 _3 a!
" s% C3 [# G2 R' d. LMonitoring and Maintaining BGP Attributes; c, S, q, A: x8 Z
(CCIE复习指导)一些辅助性的调试命令:6 k) A( p$ D* B" \+ Y
1.显示BGP表信息:
1 z! |) ]7 R1 Y q5 D* e0 u' GAiko#show ip bgp9 d$ [% |7 R( p" f# ?$ H7 t
2.显示BGP邻居信息:
" s4 m, W; ]- f- ~- }Aiko#show ip bgp neighbors [ip-address]! n* e8 k: \( P" c9 ]
3.显示被惩罚的BGP路由信息:, R6 M5 B% {' [: t& k1 R
Aiko#show ip bgp dampened-paths
5 a& L/ i: t/ I4.显示所有的BGP连接信息:
; E: k% d5 X% e ~6 c7 b* uAiko#show ip bgp summary6 z Z7 f' w- R5 }$ T0 U
5.清除BGP的路由惩罚:
1 Q5 _# ?% A( b, P; H3 `2 H1 XAiko#clear ip bgp dampening [ip-address mask]
! [5 A ^9 ]8 z* bPt.4 Border Gateway Protocol Filtering
# H+ C9 t4 W' C% s$ \0 XPrefix Filtering
& v* }. v' Q) C2 K/ V- Z! V/ x一些使用ACL或前缀列表过滤BGP路由的方法:
7 I0 H3 n" C: h$ x1.基于邻居的使用分发列表过滤BGP路由: Z0 w% i5 v) G9 L- ?; h! c% d- U! ]
Aiko(config-router)#neighbor {ip-address} distribute-list {ACL| prefix-list} {in|out}2.全局使用分布列表过滤进站的BGP路由:# ~. N4 q5 C5 P- A
Aiko(config-router). w7 L$ \( F9 B* A" y
#distribute-list {ACL|prefix prefix-list} in [interface]
& E7 |7 C% q0 w6 Q. ]3.调用前缀列表过滤BGP路由:7 A9 G c) q. {' s3 |" s( L
Aiko(config-router)#neighbor {ip-address} prefix-list {prefix-list} {in|out} |