Print Download PDF Send Feedback

Previous

Next

Show Routemap Commands

show routemap <rm_name> {all  |  <id VALUE>}

show routemaps

Routemap Protocol Commands

To assign routemaps to protocols:

The preference value specifies which order the protocol will use each routemap.

set {ospf  |  ipv6 ospfv3 | rip | ipv6 ripng}

export-routemap <rm_name> preference VALUE on

import-routemap <rm_name> preference VALUE on

To turn a routemap off:

set {ospf  | ospfv3 | rip  | ipv6 ripng}
export-routemap <rm_name> off

import-routemap <rm_name> off

To view routemaps assigned to protocols:

show {ospf | ospfv3 | rip | ipv6 ripng | bgp) routemap

To set BGP routemaps for export and import policies:

set bgp external remote-as <1-65535> export-routemap <rm_name> off

preference <1-65535> [family {inet | inet6 | inet-and-inet6}] on

set bgp external remote-as <1-65535> import-routemap <rm_name> off

preference <1-65535> [family {inet | inet6 | inet-and-inet6}] on

set bgp internal export-routemap <rm_name> off

preference <1-65535> [family {inet | inet6 | inet-and-inet6}] on

set bgp internal import-routemap <rm_name> off

preference <1-65535> [family {inet | inet6 | inet-and-inet6}] on

Note - You cannot use route maps in BGP confederations. To configure route filters and redistribution for BGP confederations, use the Inbound Route Filters and Route Redistribution pages in the Portal.

Routemap commands summary

SET commands:

Note - Enter set routemap [Esc][Esc].

set routemap VALUE id VALUE action aspath-prepend-count VALUE

set routemap VALUE id VALUE action community VALUE as VALUE off

set routemap VALUE id VALUE action community VALUE as VALUE on

set routemap VALUE id VALUE action community VALUE off

set routemap VALUE id VALUE action community VALUE on

set routemap VALUE id VALUE action localpref VALUE

set routemap VALUE id VALUE action metric add VALUE

set routemap VALUE id VALUE action metric igp add VALUE

set routemap VALUE id VALUE action metric igp subtract VALUE

set routemap VALUE id VALUE action metric subtract VALUE

set routemap VALUE id VALUE action metric value VALUE

set routemap VALUE id VALUE action nexthop ip VALUE

set routemap VALUE id VALUE action nexthop ipv6 VALUE

set routemap VALUE id VALUE action ospfautomatictag VALUE

set routemap VALUE id VALUE action ospfmanualtag VALUE

set routemap VALUE id VALUE action precedence VALUE

set routemap VALUE id VALUE action preference VALUE

set routemap VALUE id VALUE action remove aspath-prepend-count

set routemap VALUE id VALUE action remove community

set routemap VALUE id VALUE action remove localpref

set routemap VALUE id VALUE action remove metric

set routemap VALUE id VALUE action remove nexthop ip

set routemap VALUE id VALUE action remove nexthop ipv6

set routemap VALUE id VALUE action remove ospfautomatictag

set routemap VALUE id VALUE action remove ospfmanualtag

set routemap VALUE id VALUE action remove precedence

set routemap VALUE id VALUE action remove preference

set routemap VALUE id VALUE action remove riptag

set routemap VALUE id VALUE action remove route-type

set routemap VALUE id VALUE action riptag VALUE

set routemap VALUE id VALUE action route-type VALUE

 

set routemap VALUE id VALUE allow

 

set routemap VALUE id VALUE inactive

 

set routemap VALUE id VALUE match as VALUE off

set routemap VALUE id VALUE match as VALUE on

set routemap VALUE id VALUE match aspath-regex VALUE origin VALUE

set routemap VALUE id VALUE match community VALUE as VALUE off

set routemap VALUE id VALUE match community VALUE as VALUE on

set routemap VALUE id VALUE match community VALUE off

set routemap VALUE id VALUE match community VALUE on

set routemap VALUE id VALUE match community-regex VALUE

set routemap VALUE id VALUE match ifaddress VALUE off

set routemap VALUE id VALUE match ifaddress VALUE on

set routemap VALUE id VALUE match interface VALUE off

set routemap VALUE id VALUE match interface VALUE on

set routemap VALUE id VALUE match metric value VALUE

set routemap VALUE id VALUE match neighbor VALUE off

set routemap VALUE id VALUE match neighbor VALUE on

set routemap VALUE id VALUE match network VALUE all [ restrict VALUE ]

set routemap VALUE id VALUE match network VALUE between VALUE and VALUE [ restrict VALUE ]

set routemap VALUE id VALUE match network VALUE exact [ restrict VALUE ]

set routemap VALUE id VALUE match network VALUE off

set routemap VALUE id VALUE match network VALUE refines [ restrict VALUE ]

set routemap VALUE id VALUE match nexthop VALUE off

set routemap VALUE id VALUE match nexthop VALUE on

set routemap VALUE id VALUE match ospf-instance VALUE off

set routemap VALUE id VALUE match ospf-instance VALUE on

set routemap VALUE id VALUE match prefix-list VALUE off

set routemap VALUE id VALUE match prefix-list VALUE preference VALUE [ invert VALUE ]

set routemap VALUE id VALUE match prefix-list VALUE preference VALUE on

set routemap VALUE id VALUE match prefix-tree VALUE off

set routemap VALUE id VALUE match prefix-tree VALUE preference VALUE [ invert VALUE ]

set routemap VALUE id VALUE match prefix-tree VALUE preference VALUE on

set routemap VALUE id VALUE match protocol VALUE

set routemap VALUE id VALUE match remove as

set routemap VALUE id VALUE match remove aspath-regex

set routemap VALUE id VALUE match remove community

set routemap VALUE id VALUE match remove community-regex

set routemap VALUE id VALUE match remove ifaddress

set routemap VALUE id VALUE match remove interface

set routemap VALUE id VALUE match remove metric

set routemap VALUE id VALUE match remove neighbor

set routemap VALUE id VALUE match remove network

set routemap VALUE id VALUE match remove nexthop

set routemap VALUE id VALUE match remove ospf-instance

set routemap VALUE id VALUE match remove prefix-list

set routemap VALUE id VALUE match remove prefix-tree

set routemap VALUE id VALUE match remove protocol

set routemap VALUE id VALUE match remove route-type

set routemap VALUE id VALUE match remove tag

set routemap VALUE id VALUE match route-type VALUE off

set routemap VALUE id VALUE match route-type VALUE on

set routemap VALUE id VALUE match tag VALUE off

set routemap VALUE id VALUE match tag VALUE on

 

set routemap VALUE id VALUE off

 

set routemap VALUE id VALUE on

 

set routemap VALUE id VALUE restrict

 

set ospf export-routemap VALUE off

set ospf export-routemap VALUE preference VALUE on

 

set ipv6 ospf3 export-routemap VALUE off

set ipv6 ospf3 export-routemap VALUE preference VALUE on

 

set rip export-routemap VALUE off

set rip export-routemap VALUE preference VALUE on

 

set ipv6 ripng export-routemap VALUE off

set ipv6 ripng export-routemap VALUE preference VALUE on

SHOW commands:

show routemap VALUE

show routemaps