07-05-2020 09:02 PM
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 ?
07-05-2020 11:26 PM
Hello @jvoorend ,
according to the following document in IOS XR you can use
set med <value>
the link is for IOS XR 7.0, but it is likely not a new command.
Hope to help
Giuseppe
07-06-2020 01:36 AM - edited 07-06-2020 01:37 AM
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
07-06-2020 01:49 PM
Many thanks for the replies. Confirms my thinking with regard to config setup.
Cheers
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