设为首页收藏本站language 语言切换
查看: 1446|回复: 1
收起左侧

[RS] BGP中suppress-map没有生效

[复制链接]
发表于 2016-1-22 19:41:13 | 显示全部楼层 |阅读模式
一共就两台设备,串口相连,用直连物理接口指邻居(是BGP命令配置手册中 1-7的实验)

基本配置如下:
rtrA#sh run | s bgp
router bgp 1
bgp log-neighbor-changes
neighbor 10.1.1.2 remote-as 2

rtrB#sh run | s bgp
router bgp 2
bgp log-neighbor-changes
network 172.16.0.0 mask 255.255.255.0
network 172.16.1.0 mask 255.255.255.0
network 172.16.2.0 mask 255.255.255.0
network 172.16.3.0 mask 255.255.255.0
aggregate-address 172.16.0.0 255.255.252.0 suppress-map suppress
neighbor 10.1.1.1 remote-as 1

rtrB#sh run | s route-map
route-map suppress permit 10
match ip address 1

rtrB#sh ip access
Standard IP access list 1
    10 permit 172.16.2.0, wildcard bits 0.0.0.255

现象:
rtrB#sh ip access
Standard IP access list 1
    10 permit 172.16.2.0, wildcard bits 0.0.0.255
rtrB#sh ip bgp
BGP table version is 6, local router ID is 10.1.1.2
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
*>  172.16.0.0/24    0.0.0.0                  0         32768 i
*>  172.16.0.0/22    0.0.0.0                            32768 i
*>  172.16.1.0/24    0.0.0.0                  0         32768 i
*>  172.16.2.0/24    0.0.0.0                  0         32768 i
*>  172.16.3.0/24    0.0.0.0                  0         32768 i

rtrA#sh ip bgp
BGP table version is 6, local router ID is 10.1.1.1
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
*>  172.16.0.0/24    10.1.1.2                 0             0 2 i
*>  172.16.0.0/22    10.1.1.2                 0             0 2 i
*>  172.16.1.0/24    10.1.1.2                 0             0 2 i
*>  172.16.2.0/24    10.1.1.2                 0             0 2 i
*>  172.16.3.0/24    10.1.1.2                 0             0 2 i

按理说,Router B的 172.16.2.0/24 路由,应该打s标记
而Router A的BGP表里面就应该没有该条路由
---------------------------------------------------------------
这个是什么原因?是我配置错了吗?(IP地址没有配错,这里就不粘贴了)
还是IOU-WEB自身的BUG问题?只支持命令能敲上去,却不支持此命令生效??
发表于 2016-1-22 20:19:37 | 显示全部楼层
本帖最后由 abluesky 于 2016-1-22 20:23 编辑

你换用 prefix-list试试
ip prefix-list SUPPRESS_PREFIX 172.16.2.0/24

route-map suppress permit 10
match ip address prefix-list SUPPRESS_PREFIX

应该是没问题的 我好像有印象access-list不能用。
沙发 2016-1-22 20:19:37 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-5-8 14:07 , Processed in 0.057785 second(s), 24 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表