文档详情

3-5 BGP路由策略.ppt

发布:2017-07-24约9.78千字共39页下载文档
文本预览下载声明
* Page* 路由器RTC的配置 # bgp 400 peer as-number 100 peer as-number 300 # ipv4-family unicast undo synchronization peer enable peer as-path-filter 1 import peer enable peer as-path-filter 1 import # ip as-path-filter 1 permit ^300_ # Page* AS 100 AS 200 AS 300 BGP Community /24 RTB RTC RTA RTD 10M 1000M 1000M 默认流量方向 希望流量方向 Page* 路由器RTA的配置 bgp 100 peer as-number 100 peer as-number 200 # ipv4-family unicast undo synchronization peer enable peer enable peer route-policy set_community export peer advertise-community # route-policy set_community permit node 10 apply community 100:1 Page* 路由器RTD的配置 bgp 100 peer as-number 100 peer as-number 300 # ipv4-family unicast undo synchronization peer enable peer enable peer route-policy set_community export peer advertise-community # route-policy set_community permit node 10 apply community 100:2 Page* 路由器RTC的配置 bgp 300 peer as-number 200 peer as-number 300 # ipv4-family unicast undo synchronization peer enable peer route-policy set_local_pref import peer advertise-community peer enable peer route-policy set_local_pref import peer advertise-community # route-policy set_local_pref permit node 10 if-match community-filer 1 apply local-preference 200 Route-policy set_local_pref permit node 20 if-match community-filter 2 apply local-preference 50 # ip community-filter 1 permit 100:1 ip community-filter 2 permit 100:2 Page* 查看团体属性 [RTC]display bgp routing-table community Total Number of Routes: 2 BGP Local router ID is Status codes: * - valid, - best, d - damped, h - history, i - internal, s - suppressed, S - Stale Origin : i - IGP, e - EGP, ? - incomplete Network NextHop MED LocPrf PrefVal Community * /24 0
显示全部
相似文档