BGP 团队属性--no-advertise属性

Post by mrchen, 2011-2-22, Views:
原创文章如转载,请注明:转载自冠威博客 [ http://www.guanwei.org/ ]
本文链接地址:http://www.guanwei.org/post/Cisconetwork/02/no-advertise.html

 

no-advertise属性

当一台路由器,收到一个bgp的路由带有no-export属性是这台路由器就不会再向EBGP对等体及IBGP对等体发送该路由了
拓扑:

 

R3#sh ip bgp
BGP table version is 1, local router ID is 10.2.2.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
* i172.16.1.0/24 10.1.1.1 0 100 0 1 i
* i172.16.2.0/24 10.1.1.1 0 100 0 1 i
* i172.16.3.0/24 10.1.1.1 0 100 0 1 i

不是最优的,在R2做NEXT-HOP-SELF
R2(config)#router bgp 2
R2(config-router)#nei 10.2.2.2 next-hop-self

再查看R3的路由表
R3#sh ip bgp
BGP table version is 4, local router ID is 10.2.2.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*>i172.16.1.0/24 10.2.2.1 0 100 0 1 i
*>i172.16.2.0/24 10.2.2.1 0 100 0 1 i
*>i172.16.3.0/24 10.2.2.1 0 100 0 1 i

做no-advertise
R1(config)#access-list 1 per 172.16.3.0 0.0.0.255
R1(config)#route-map ccxx per 10
R1(config-route-map)#ma ip add 1
R1(config-route-map)#set community no-advertise
R1(config-route-map)#exi
R1(config)#route-map ccxx per 20
R1(config-route-map)#exi
R1(config)#router bgp 1
R1(config-router)#nei 10.1.1.2 route-map ccxx out
R1(config-router)#nei 10.1.1.2 send-community

查看R3的路由表:
R3#sh ip bgp
BGP table version is 5, local router ID is 10.2.2.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*>i172.16.1.0/24 10.2.2.1 0 100 0 1 i
*>i172.16.2.0/24 10.2.2.1 0 100 0 1 i

没学到172.16.3.0网段。再验证下是不是用了NO-ADVERTISE
R2#sh ip bgp 172.16.3.1
BGP routing table entry for 172.16.3.0/24, version 5
Paths: (1 available, best #1, table Default-IP-Routing-Table, not advertised to any peer)
Not advertised to any peer
1
10.1.1.1 from 10.1.1.1 (172.16.1.1)
Origin IGP, metric 0, localpref 100, valid, external, best
Community: no-advertise

Tags: BGP  cisco  no-advertise  属性 
本文未看懂?联系冠威客服,享受手把手服务,远程、现场任您选。优惠期间,免费服务!
有更好的解决方案?联系冠威客服,加入冠威,成为冠威客。发表文章,赚取佣金!
冠威客服:E-mail:Service@GuanWei.Org QQ:1026092 合作伙伴:淘男网
分类:Cisco笔记 | 评论:0 | 引用:0
分享到:

上一篇:BT5即将发布(未包含下载地址)
下一篇:NAT的几种方式与配置方法

或许你还对下面的文章感兴趣

Comments

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

Hot Articles

New Articles

Last Comments

Guest