cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
433
Views
0
Helpful
3
Replies
Umit AYDINLI
Beginner

bgp route-policy nexthop problem

Hi,

I'm using asr9k v.4.1.2 

I'm trying to bgp set nexthope. but configuration not working. I tryed to same config to ios devices. thats working correctly. Its confuse. 

I have 2 upstream. I need to "if source match goto nexthop" means need a selective upstreams. 
how can possible?

 

route-policy Accept-All-preferance

if source in local-pref-test then
set next-hop 10.11.10.2
set local-preference 200
else
set local-preference 50
endif
end-policy

 

prefix-set local-pref-test
10.10.97.0/24
end-set
!

router bgp 65000

neighbor 10.10.10.2
remote-as 65501
update-source TenGigE0/0/0/0.387
address-family ipv4 unicast
send-community-ebgp
route-policy Accept-All-preferance in
maximum-prefix 950000 95
route-policy DIST out
soft-reconfiguration inbound
!

neighbor 10.11.10.2
remote-as 65502
update-source TenGigE0/0/0/1.387
address-family ipv4 unicast
send-community-ebgp
route-policy Accept-All-preferance-1 in
maximum-prefix 950000 95
route-policy DIST out
soft-reconfiguration inbound
!

route-policy Accept-All-preferance-1

if as-path in as-path-set then
set local-preference 120

endif
end-policy

!

as-path-set as-path-set
ios-regex '^65502$',

!

3 REPLIES 3
smilstea
Cisco Employee

This should work. There are some issues with RPL fixed in later code releases, can you possibly upgrade? 4.1.2 is past end of life by several years now.

 

Sam

Hi upgrade to 5.3.4 but still not working.

 

Are you sure the software release bug? 

AARON WEINTRAUB
Beginner

I think you may be doing this in a confusing manner.

 

Are you trying to set the next hop of what the routes coming from the ebgp neighbor will be in your network or are you trying to route specific traffic certain ways by changing the next hop?  

Are 65001 and 65002 stand ins for your transit here or are you doing some other internal bgp like confederations?