Case 94 E. f9 V- Y% g. q
只过滤来自AS 200的BGP路由:9 q, z/ H+ |- @3 Z! P
路由器C配置如下:6 z& P& P% a) }8 d) e
!
- a: v8 a: ~/ Dneighbor 3.3.3.3 remote-as 200* d) G5 q& F$ n- J4 ~+ E
neighbor 2.2.2.2 remote-as 100+ T% Q" ~' J2 k; F
neighbor 2.2.2.2 filter-list 1 out
) H) q, @) ?/ r. @8 G1 m5 w!4 i3 y! i' V; p% R3 F
ip as-path access-list 1 deny ^200$
2 G( F: k; ?$ `$ U3 o: O8 L3 e" c, oip as-path access-list 1 permit .*
3 F& r5 ]* D+ L& ]8 u!/ `6 P4 v. S2 O" r
Route Map Filtering1 n7 [; v6 M, B0 P+ [1 w0 @- l- @
使用route map过滤BGP路由:
4 |4 l4 {8 ~4 i" q: ?! x% J/ Z$ nAiko(config-router)#neighbor {ip-address} route-map {map-name} {in|out} |