06-20-2021 11:12 PM
Please check the network diagram. I have configured BGP on all the routers are R1 and R3 & R3 and R4 are the neighbor of each other.
Configured Loopback in all the routers and advertise in BGP. When I am executing command sh ip bgp , getting Routes to R1 loopback, but I am unable to ping the loopback ip. Please help me.
Below is the output
Solved! Go to Solution.
06-21-2021 12:09 AM - edited 06-21-2021 01:14 AM
Hello,
post the full running configs of all three routers. Are you peering with the loopbacks or with the physical interface addresses ?
The below configs would be an option to have full reachability:
R1
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface GigabitEthernet0/0
description Link to R3
ip address 20.0.0.1 255.255.255.252
duplex auto
speed auto
media-type rj45
!
router bgp 1
bgp router-id 1.1.1.1
bgp log-neighbor-changes
network 1.1.1.1 mask 255.255.255.255
network 20.0.0.0 mask 255.255.255.252
neighbor 2.2.2.2 remote-as 2
neighbor 2.2.2.2 ebgp-multihop 2
neighbor 2.2.2.2 update-source Loopback0
!
ip route 2.2.2.2 255.255.255.255 20.0.0.2
R3
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface GigabitEthernet0/0
description Link to R1
ip address 20.0.0.2 255.255.255.252
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/1
description Link to R4
ip address 30.0.0.2 255.255.255.252
duplex auto
speed auto
media-type rj45
!
router bgp 2
bgp router-id 2.2.2.2
bgp log-neighbor-changes
network 2.2.2.2 mask 255.255.255.255
network 20.0.0.0 mask 255.255.255.252
network 30.0.0.0 mask 255.255.255.252
neighbor 1.1.1.1 remote-as 1
neighbor 1.1.1.1 ebgp-multihop 2
neighbor 1.1.1.1 update-source Loopback0
neighbor 3.3.3.3 remote-as 3
neighbor 3.3.3.3 ebgp-multihop 2
neighbor 3.3.3.3 update-source Loopback0
!
ip route 1.1.1.1 255.255.255.255 20.0.0.1
ip route 3.3.3.3 255.255.255.255 30.0.0.1
R4
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface GigabitEthernet0/1
description Link to R3
ip address 30.0.0.1 255.255.255.252
duplex auto
speed auto
media-type rj45
!
router bgp 3
bgp router-id 3.3.3.3
bgp log-neighbor-changes
network 3.3.3.3 mask 255.255.255.255
network 30.0.0.0 mask 255.255.255.252
neighbor 2.2.2.2 remote-as 2
neighbor 2.2.2.2 ebgp-multihop 2
neighbor 2.2.2.2 update-source Loopback0
!
ip route 2.2.2.2 255.255.255.255 30.0.0.2
06-21-2021 01:01 AM - edited 06-21-2021 01:04 AM
Hello
Apply the following and test again.
R1
router bgp 1
no network 1.1.1.1
R3
router bgp 2
network 20.0.0.0 mask 255.255.255.252
network 30.0.0.0 mask 255.255.255.252
06-21-2021 12:09 AM - edited 06-21-2021 01:14 AM
Hello,
post the full running configs of all three routers. Are you peering with the loopbacks or with the physical interface addresses ?
The below configs would be an option to have full reachability:
R1
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface GigabitEthernet0/0
description Link to R3
ip address 20.0.0.1 255.255.255.252
duplex auto
speed auto
media-type rj45
!
router bgp 1
bgp router-id 1.1.1.1
bgp log-neighbor-changes
network 1.1.1.1 mask 255.255.255.255
network 20.0.0.0 mask 255.255.255.252
neighbor 2.2.2.2 remote-as 2
neighbor 2.2.2.2 ebgp-multihop 2
neighbor 2.2.2.2 update-source Loopback0
!
ip route 2.2.2.2 255.255.255.255 20.0.0.2
R3
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface GigabitEthernet0/0
description Link to R1
ip address 20.0.0.2 255.255.255.252
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/1
description Link to R4
ip address 30.0.0.2 255.255.255.252
duplex auto
speed auto
media-type rj45
!
router bgp 2
bgp router-id 2.2.2.2
bgp log-neighbor-changes
network 2.2.2.2 mask 255.255.255.255
network 20.0.0.0 mask 255.255.255.252
network 30.0.0.0 mask 255.255.255.252
neighbor 1.1.1.1 remote-as 1
neighbor 1.1.1.1 ebgp-multihop 2
neighbor 1.1.1.1 update-source Loopback0
neighbor 3.3.3.3 remote-as 3
neighbor 3.3.3.3 ebgp-multihop 2
neighbor 3.3.3.3 update-source Loopback0
!
ip route 1.1.1.1 255.255.255.255 20.0.0.1
ip route 3.3.3.3 255.255.255.255 30.0.0.1
R4
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface GigabitEthernet0/1
description Link to R3
ip address 30.0.0.1 255.255.255.252
duplex auto
speed auto
media-type rj45
!
router bgp 3
bgp router-id 3.3.3.3
bgp log-neighbor-changes
network 3.3.3.3 mask 255.255.255.255
network 30.0.0.0 mask 255.255.255.252
neighbor 2.2.2.2 remote-as 2
neighbor 2.2.2.2 ebgp-multihop 2
neighbor 2.2.2.2 update-source Loopback0
!
ip route 2.2.2.2 255.255.255.255 30.0.0.2
06-21-2021 12:33 AM
06-21-2021 01:22 AM
It worked , I thank you for your support
06-21-2021 01:01 AM - edited 06-21-2021 01:04 AM
Hello
Apply the following and test again.
R1
router bgp 1
no network 1.1.1.1
R3
router bgp 2
network 20.0.0.0 mask 255.255.255.252
network 30.0.0.0 mask 255.255.255.252
06-21-2021 01:20 AM
Yes, it worked for me.. Thank You sir for your support..
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide