◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。
BGP 团队属性--no-advertise属性
Post by mrchen, 2011-2-22, Views:本文链接地址:http://www.guanwei.org/post/Cisconetwork/02/no-advertise.html
当一台路由器,收到一个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
本文未看懂?联系冠威客服,享受手把手服务,远程、现场任您选。优惠期间,免费服务!
有更好的解决方案?联系冠威客服,加入冠威,成为冠威客。发表文章,赚取佣金!
冠威客服:E-mail:Service@GuanWei.Org QQ:1026092
或许你还对下面的文章感兴趣
- 详细讲解CISCO ACS AAA认证 (2010-11-25 9:29:54)
- Error in authentication (2010-11-24 17:34:38)
- cisco配置ssh登陆替代telnet (2010-11-24 16:19:37)
- 网关冗余和负载平衡实验 3:GLBP (2010-11-23 15:37:24)
- 网关冗余和负载平衡实验 2: VRRP (2010-11-23 15:34:15)
- 网关冗余和负载平衡技术简介 (2010-11-23 15:25:26)
- 网关冗余和负载平衡实验 1: HSRP (2010-11-23 15:23:57)
- 深入了解passive-interface (2010-11-23 9:20:51)
- cisco交换机清除查看当前总流量 (2010-11-15 10:51:19)
- BGP原理总结 (2010-11-1 10:56:58)
