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

[书籍] BGP的一个问题,实验图片在附件

[复制链接]
发表于 2017-7-30 14:29:29 | 显示全部楼层 |阅读模式
image002.png 实验图片.png
实验要求R4和R5之间只能是静态路由,流量走R2,当R2掉线后走R3。用as-path选路原则。最后保证10.1网段的ping通10.80网段的。我做了好久怎么都ping不通。


R1的配置:
R1#show run | sec router
router bgp 1234
bgp log-neighbor-changes
network 10.1.0.0 mask 255.255.0.0
network 12.1.1.0 mask 255.255.255.252
network 13.1.1.0 mask 255.255.255.248
neighbor 12.1.1.2 remote-as 65000
neighbor 13.1.1.3 remote-as 65000

R1的summary:
Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
12.1.1.2        4        65000      85      86        8    0    0 01:07:39        5
13.1.1.3        4        65000      83      99        8    0    0 01:05:18        5

R1的bgp

      10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
C        10.1.0.0/16 is directly connected, Loopback0
L        10.1.0.1/32 is directly connected, Loopback0
B        10.80.0.0/16 [20/0] via 13.1.1.3, 00:07:08
      12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        12.1.1.0/30 is directly connected, Ethernet0/0
L        12.1.1.1/32 is directly connected, Ethernet0/0
      13.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        13.1.1.0/29 is directly connected, Ethernet0/1
L        13.1.1.1/32 is directly connected, Ethernet0/1
      24.0.0.0/29 is subnetted, 1 subnets
B        24.1.1.0 [20/0] via 12.1.1.2, 00:07:08
      34.0.0.0/29 is subnetted, 1 subnets
B        34.1.1.0 [20/0] via 13.1.1.3, 00:07:08
      45.0.0.0/29 is subnetted, 1 subnets
B        45.1.1.0 [20/0] via 12.1.1.2, 00:07:08

R3的配置:
R3#show run | sec router
router bgp 65000
bgp log-neighbor-changes
network 13.1.1.0 mask 255.255.255.248
network 34.1.1.0 mask 255.255.255.248
neighbor 13.1.1.1 remote-as 1234
neighbor 13.1.1.1 route-map backup in
neighbor 34.1.1.4 remote-as 65000

R3的控制列表:

route-map backup permit 1
match ip address 1
set as-path prepend 65001 65002
!
!
access-list 1 permit 10.1.0.0 0.0.255.255

R2的配置:

R2#show run | sec router
router bgp 65000
bgp log-neighbor-changes
network 12.1.1.0 mask 255.255.255.252
network 24.1.1.0 mask 255.255.255.248
neighbor 12.1.1.1 remote-as 1234
neighbor 24.1.1.4 remote-as 65000

R4的配置:
R4#show run | sec router
router bgp 65000
bgp log-neighbor-changes
network 24.1.1.0 mask 255.255.255.248
network 34.1.1.0 mask 255.255.255.248
redistribute connected
redistribute static
neighbor 24.1.1.2 remote-as 65000
neighbor 34.1.1.3 remote-as 65000

R5的配置:
R5#show run | sec router
router bgp 65000
bgp log-neighbor-changes
network 56.1.1.4 mask 255.255.255.252
redistribute connected
redistribute static
neighbor 56.1.1.6 remote-as 17493

R6的配置:

R6#show running-config | sec router
router bgp 17493
bgp log-neighbor-changes
network 10.80.0.0 mask 255.255.0.0
network 56.1.1.4 mask 255.255.255.252
neighbor 56.1.1.5 remote-as 65000


image002.png
实验图片.png
 楼主| 发表于 2017-7-30 18:59:26 | 显示全部楼层
地址能通了,但是我自己down掉12网段13网段却不能通,走13网段学不到重发布进来的45网段的地址
沙发 2017-7-30 18:59:26 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2017-7-31 07:49:04 | 显示全部楼层
楼主这是按照需求新建拓扑还是照着实验敲啊
板凳 2017-7-31 07:49:04 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2017-7-31 10:27:46 | 显示全部楼层
是哪里出问题了么?静态没问题么?
地板 2017-7-31 10:27:46 回复 收起回复
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-16 20:01 , Processed in 0.105897 second(s), 28 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

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