cancel
Showing results for 
Search instead for 
Did you mean: 

next-hop-self for update received from iBGP neighbor

next-hop-self for update received from iBGP neighbor

Tatiana
New Contributor
Hi,

will next-hop-self still work for bgp update received from iBGP neighbor in ExtremeXOS?

for example for cisco additional routemap is required:

route-map RM-NHSset ip next-hop peer-address neighbor X.X.X.X route-map out RM-NHS While for juniper it works by default for iBGP neighbors within different clusters
18 REPLIES 18

I can't verify now, but I think nlri matches by default with an exact. So, unless you are testing with an actual default route, your routing policy doesn't match. Check the routing policy chapter and look for nlri and next-hop keywords in the table to be sure.

Hi Tatiana,

Please see below the commands applied for router "B":

regrabgp.pol

entry R1 {
if match any {
nlri 0.0.0.0/0;
} then {
next-hop 192.168.1.6;
}
}

Command 1: configure bgp neighbor 192.168.1.8 next-hop-self
Command 2: configure bgp neighbor 192.168.1.8 route-policy out regrabgp

I have tried using only command 1, then only command 2 and then both. Got same results on all 3 tests.

We will test this during maintenance. Can you send me configurations applied please?

One reason it not works is that this PBR doesn't change BGP next-hop attribute.

Just made a quick test and got same results with or without the policy. The Nex-Hop remains unchanged pointing to router "C".

Since that's applied in a BGP reflector, I'm not sure if that would work.

Please let me know if you got a different result.

Thanks.

Grosjean, Stephane, I have a reason to do this ) Thanks

Kevin Kim, Thank you for commands, will try them.

GTM-P2G8KFN