cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1151
Views
0
Helpful
3
Replies

IOS XR route-policy

jvoorend
Level 1
Level 1

Under Cisco IOS I have the following:

 

route-map RPA-SET-MED permit 10
match ip address prefix-list RPA-HTC-DMZ-NETWORKS
set metric 50
set community 4771:120
!
route-map RPA-SET-MED permit 20
set metric 300

 

Under IOS XR for an equivalent route-policy as per above what is the equivalent command for "set metric" as set metric is not available under XR ?

3 Replies 3

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello @jvoorend ,

according to the following document in IOS XR you can use

set med <value>

 

https://www.cisco.com/c/en/us/td/docs/iosxr/cisco8000/routing/70x/b-routing-cg-cisco8000-70x/implementi-routing-policy.html?dtid=osscdc000283

 

the link is for IOS XR 7.0, but it is likely not a new command.

 

Hope to help

Giuseppe

Hello

Ive never used software this however I interpret your IOS route-map as the following in IOS-XR RPL : Here

 

ipv4 prefix-list RPA-HTC_DMZ-NETWORKS
permit x.x.x.y/24

route-policy RPA-SET-MED
if destination in RPA-HTC_DMZ-NETWORKS then
set med 50
set community 4771:120
endif
if not destination in RPA-HTC_DMZ-NETWORKS then
set med 300
endif
end-policy


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

jvoorend
Level 1
Level 1

Many thanks for the replies. Confirms my thinking with regard to config setup.

 

Cheers

Review Cisco Networking for a $25 gift card