cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
381
Views
5
Helpful
3
Replies

Translation IOS to IOS XR Route Weights Policy

We are migration our Internetrouters from IOS based to IOS XR based Boxes.

I need a translation of the following Route Weigth Policy to IOS XR

My IOS Configuration looks like

router bgp 30

neighbor 10.100.83.1 remote-as 100

neighbor 10.100.83.1 ebgp-multihop 2

neighbor 10.100.83.1 update-source Loopback 0

neighbor 10.100.83.1 filter-list 1 out

neighbor 10.100.83.1 weight 50000

neighbor 10.200.60.1 remote-as 200

neighbor 10.200.60.1 ebgp-multihop 2

neighbor 10.200.60.1 update-source Loopback 0

neighbor 10.200.60.1 filter-list 1 out

neighbor 10.200.60.1 weight 20000

no auto-summary

 

Thanks in advance

Manfre

1 Accepted Solution

Accepted Solutions

Hello

Try the following example:

 

route-policy filter
if as-path is-local then
pass
endif
end-policy

router bgp 30
address-family ipv4 unicast
neighbor 10.100.83.1
remote-as 100
ebgp-multihop 2
update-source Loopback0
address-family ipv4 unicast
weight 55000
route-policy filter out

neighbor 10.200.60.1
remote-as 200
ebgp-multihop 2
update-source Loopback0
address-family ipv4 unicast
weight 22000
route-policy filter out

Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

View solution in original post

3 Replies 3

Hello,

 

I think in XR, the weight has to be configured under the address family:

 

router bgp 30
neighbor 10.100.83.1
remote-as 100
address-family ipv4 unicast
weight 50000

Hello

Try the following example:

 

route-policy filter
if as-path is-local then
pass
endif
end-policy

router bgp 30
address-family ipv4 unicast
neighbor 10.100.83.1
remote-as 100
ebgp-multihop 2
update-source Loopback0
address-family ipv4 unicast
weight 55000
route-policy filter out

neighbor 10.200.60.1
remote-as 200
ebgp-multihop 2
update-source Loopback0
address-family ipv4 unicast
weight 22000
route-policy filter out

Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Thanks very much Paul; your configuration was helpfull.

Greetings Manfred

Review Cisco Networking products for a $25 gift card