Routing
Routing

BGP next-hop issue

‎08-20-2013 07:55 AM

Hi,I want to change the bgp next-hop in import policy. But when I config the policy I found the route is hidden(the next-hop is reachable).

 

TOPO:

r2----r3----r5

 

I want to change the route's next-hop from r2' bpg to r5.

R2:

bgp {
group ebgp {
type external;
export bgp_out;
peer-as 65501;
neighbor 23.23.23.3;
}
}

 

R3:

protocols {
group ebgp_2 {
type external;
peer-as 65500;
neighbor 23.23.23.2 {
import bgp2_in;
}
}

}

policy-statement bgp2_in {
term 1 {
from {
protocol bgp;
}
then {
next-hop 5.5.5.5;
accept;
}
}
term 2 {
then reject;
}
}

routing-options {
static {
route 5.5.5.5/32 next-hop 35.35.35.5;
}
}

 

state in r3:

lab@M10i# run show route hidden extensive

inet.0: 21 destinations, 21 routes (16 active, 0 holddown, 5 hidden)
2.2.2.2/32 (1 entry, 0 announced)
BGP Preference: 170/-101
Next hop type: Unusable
Address: 0x8e61e84
Next-hop reference count: 4
State: <Hidden Ext>
Local AS: 65501 Peer AS: 65500
Age: 38:08
Task: BGP_65500.23.23.23.2+179
AS path: 65500 I
Accepted
Localpref: 100
Router ID: 2.2.2.2

 

I can not found the next-hop. can you tell me why?

2 REPLIES 2
Routing

Re: BGP next-hop issue

‎08-20-2013 11:02 AM

Can you please send the output of 

 

"show route resolution unresolved"  CLI?

 

Regards

Satinder Singh

JNCIE# 2151 SP, JNCIP ENT, CCIE# 26831 SP
www.linkedin.com/in/satinder7singh

If this post solves your problem, please mark this post as "Accepted Solution".
Kudos are appreciated.
Routing

Re: BGP next-hop issue

‎08-21-2013 03:20 AM

Have you tried resolve option in next-hop?

 

routing-options {
static {
route 5.5.5.5/32 next-hop 35.35.35.5 resolve;
}

 

Can you provied us a network diagram? (networks between routers)