码迷,mamicode.com
首页 > 其他好文 > 详细

BGPAs-path acl 路由过滤

时间:2018-04-16 20:44:58      阅读:392      评论:0      收藏:0      [点我收藏+]

标签:BGPAs-path acl 路由过滤

如图,R1在AS1中,R2,R3,R4在一个大AS100中(R2,R3在AS23中,R4在AS4中),5在AS5中。
技术分享图片
R5(config)#ip as-path access-list 100 deny ^.100.$
R5(config-router)#neighbor 45.1.1.4 filter-list 1 in 一定要进行调用
R5#show ip bgp
BGP table version is 20, local router ID is 5.5.5.5
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

 Network          Next Hop            Metric LocPrf Weight Path

> 1.1.1.1/32 45.1.1.4 0 100 1 i
> 5.5.5.5/32 0.0.0.0 0 32768 i
> 200.1.1.0 45.1.1.4 0 100 1 i
> 200.1.2.0 45.1.1.4 0 100 1 i
> 200.1.3.0 45.1.1.4 0 100 1 i
> 200.1.4.0 45.1.1.4 0 100 1 i
R5#show ip bgp
BGP table version is 25, local router ID is 5.5.5.5
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

 Network          Next Hop            Metric LocPrf Weight Path

*> 5.5.5.5/32 0.0.0.0 0 32768 i

BGPAs-path acl 路由过滤

标签:BGPAs-path acl 路由过滤

原文地址:http://blog.51cto.com/13625527/2104123

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!