jskfan
asked on
Usage of BGP Next-Hop_self
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
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
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
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
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
and now I can ping from R1 to R3 , but still cannot ping from R3 to R1
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...
as such, if pinging from R3 to R1 does not reply..it is normal...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you
You're welcome.
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).