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?