51-高级路由:BGP community属性:local-as

一、实验拓扑:
51-高级路由:BGP community属性:local-as
二、实验要求:
1、R4、R1、R3、R2分别在BGP进程下部署邻居发送团体属性命令;
2、R4上部署ACL抓取4.4.4.4流量、route-map命名as、调用ACL、set community local-as;并在BGP进程中调用route-map as out;
3、验证:R1、R3有4.4.4.4,但是R2没有4.4.4.0的路由条目?

三、命令部署:
R4(config)#route-map as permit 10
R4(config-route-map)#match ip address 10
R4(config-route-map)#set community local-as
R4(config-route-map)##route-map as permit 1000

R4(config)#router bgp 4
R4(config-router)#neighbor 14.1.1.1 route-map as out

四、验证:
R1#show ip bgp 4.4.4.4
BGP routing table entry for 4.4.4.0/24, version 4
Paths: (1 available, best #1, table Default-IP-Routing-Table, not advertised outside local AS)
Flag: 0x8A0
Advertised to update-groups:
2
4
14.1.1.4 from 14.1.1.4 (4.4.4.4)
Origin IGP, metric 0, localpref 100, valid, external, best
Community: local-AS

R3#show ip bgp 4.4.4.4
BGP routing table entry for 4.4.4.0/24, version 4
Paths: (1 available, best #1, table Default-IP-Routing-Table, not advertised outside local AS)
Flag: 0x8A0
Not advertised to any peer
4
1.1.1.1 (metric 156160) from 1.1.1.1 (1.1.1.1)
Origin IGP, metric 0, localpref 100, valid, confed-internal, best
Community: local-AS

R2#show ip bgp 4.4.4.4
% Network not in table

51-高级路由:BGP community属性:local-as

转载于:https://blog.51cto.com/13856092/2138194

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值