标签:-o access conf term roc match 并且 cto lis
一、实验拓扑:R3(config)#router bgp 65001
R3(config-router)#neighbor 2.2.2.2 send-community
R4(config)#router bgp 4
R4(config-router)#neighbor 14.1.1.1 send-community
R4(config)#access-list 10 permit 4.4.4.0 0.0.0.255
R4(config)#route-map pl permit 10
R4(config-route-map)#match ip address 10
R4(config-route-map)#set community no-advertise
R4(config)#route-map pl permit 1000
R4(config)#router bgp 4
R4(config-router)#neighbor 14.1.1.1 route-map pl out
四、验证:
R1#show ip bgp 4.4.4.4
14.1.1.4 from 14.1.1.4 (4.4.4.4)
Origin IGP, metric 0, localpref 100, valid, external, best
Community: no-advertise
R3#show ip bgp
R2#show ip bgp
结论:R1携带no-advertise属性,不会将4.4.4.4的路由条目传给R2、R3
49-高级路由:BGP community属性:no-advertise
标签:-o access conf term roc match 并且 cto lis
原文地址:http://blog.51cto.com/13856092/2138014