09-04-2020 12:17 AM
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$',
!
09-04-2020 09:57 AM
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
09-10-2020 12:43 AM
Hi upgrade to 5.3.4 but still not working.
Are you sure the software release bug?
09-16-2020 05:32 PM
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?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide