Link to home
Start Free TrialLog in
Avatar of jskfan
jskfanFlag for Cyprus

asked on

Usage of BGP Next-Hop_self

User generated image
on the topology above  I have R1 and R2 on AS12 and R3 on AS3

I am using Next-Hop-Self on R2 to tell R1 "in order to reach R3 come to me", but does not seem to work.

Here is the configuration  of BGP on each router.
R1#sh run | beg router bgp
router bgp 12
 no synchronization
 bgp log-neighbor-changes
 network 1.1.1.0 mask 255.255.255.0
 neighbor 192.168.12.2 remote-as 12

Open in new window


R2#sh run | beg router bgp
router bgp 12
 no synchronization
 bgp log-neighbor-changes
 neighbor 192.168.12.1 remote-as 12
 neighbor 192.168.12.1 next-hop-self
 neighbor 192.168.23.3 remote-as 3
 neighbor 192.168.23.3 next-hop-self

Open in new window


R3#sh run | beg router bgp
router bgp 3
 no synchronization
 bgp log-neighbor-changes
 network 3.3.3.0 mask 255.255.255.0
 neighbor 192.168.23.2 remote-as 12

Open in new window


I cannot ping from R1 to R3 and vice-versa

If I advertize networks 192.168.12.0 and 192.168.23.0 From R2 then I will be able to ping from R1 to R3 and back

Any idea ?

Thanks
Avatar of Predrag Jovic
Predrag Jovic
Flag of Poland image

You don't need to advertise transit networks. But, if you are not advertising transit networks you need to ping with address from "known IP address" (IP address that is currently placed in routing table. I guess you are pinging from/to address that is not currently in routing table of one or more devices.
Ping from R1 to R3
ping 3.3.3.1
If source address is not specified ping is using as source interface that is closest to destination (interfaces with IP addresses 192.168.12.1) and if you did not advertised transit routes destination for ICMP echo will be unknown.
So
ping 3.3.3.1 source 1.1.1.1
should solve pinging problem (of course if network for addresses 1.1.1.1 and 3.3.3.3 are advertised in the networks).
Avatar of jskfan

ASKER

I advertized just 192.168.12.0 From R2
and now I can ping from R1 to R3 , but still cannot ping from R3 to R1
Avatar of jskfan

ASKER

Probably that's how it supposed to be in real word, you do not advertise transit networks. in this scenario I am not supposed to advertize 192.168.23.0/24 network from R2..
as such,  if pinging from R3 to R1 does not reply..it is normal...
ASKER CERTIFIED SOLUTION
Avatar of Predrag Jovic
Predrag Jovic
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jskfan

ASKER

Thank you
You're welcome.