已发布 BGP 路由但无法 Ping

网络工程 思科 路由 BGP
2022-02-24 13:01:42

我有这个相当基本的设置,有 3 个运行 BGP 的路由器,每个都配置了 Loopback int。R2 是否需要额外的步骤来 ping R4 Loopback 接口,尽管它已被宣传?

在此处输入图像描述

R2#sh run | s bgp
router bgp 65001
 bgp log-neighbor-changes
 neighbor 11.0.0.1 remote-as 65001
 neighbor 22.0.0.2 remote-as 65002
 !
 address-family ipv4
  network 172.17.0.1 mask 255.255.255.255
  neighbor 11.0.0.1 activate
  neighbor 22.0.0.2 activate
 exit-address-family

R3#sh run | s bgp
router bgp 65002
 bgp log-neighbor-changes
 neighbor 22.0.0.1 remote-as 65001
 neighbor 33.0.0.2 remote-as 65002
 !
 address-family ipv4
  neighbor 22.0.0.1 activate
  neighbor 33.0.0.2 activate
 exit-address-family

R4#sh run | s bgp
router bgp 65002
 bgp log-neighbor-changes
 neighbor 33.0.0.1 remote-as 65002
 !
 address-family ipv4
  network 172.19.0.1 mask 255.255.255.255
  neighbor 33.0.0.1 activate
 exit-address-family



Gateway of last resort is not set

      11.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        11.0.0.0/30 is directly connected, Ethernet0/0
L        11.0.0.2/32 is directly connected, Ethernet0/0
      22.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        22.0.0.0/30 is directly connected, Ethernet0/1
L        22.0.0.1/32 is directly connected, Ethernet0/1
      172.16.0.0/32 is subnetted, 1 subnets
B        172.16.0.1 [200/0] via 11.0.0.1, 00:16:57
      172.17.0.0/32 is subnetted, 1 subnets
C        172.17.0.1 is directly connected, Loopback1
      172.19.0.0/32 is subnetted, 1 subnets
B        172.19.0.1 [20/0] via 22.0.0.2, 01:13:24

R2#sh bgp ipv4 unicast
BGP table version is 16, local router ID is 172.17.0.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
 *>i 172.16.0.1/32    11.0.0.1                 0    100      0 i
 *>  172.17.0.1/32    0.0.0.0                  0         32768 i
 *>  172.19.0.1/32    22.0.0.2                               0 65002 i
1个回答

感谢您为我指明正确的方向,我已network 22.0.0.0 mask 255.255.255.252 network 33.0.0.0 mask 255.255.255.252在 R3 上添加,我能够 ping 远程网络,谢谢