![]() | Command: route-map |
Defines a route map that is used in the configuration of IP route policies.
route-map <WORD> {deny | permit} <1-65535> enable
route-map <WORD> {deny | permit} <1-65535> match {interface <WORD> | metric <0-65535> | network <WORD> | next-hop <WORD> | protocol <name> | route-source <WORD> | route-type <any | external | external-1 | external-2 | internal |local>}
route-map <WORD> {deny | permit} <1-65535> name <WORD>
route-map <WORD> {deny | permit} <1-65535> set {injectlist <WORD> | ip-preference <0-255> | mask <A.B.C.D> | metric <0-65535> | metric-type <type1 | type2> | nssa-pbit enable}
default route-map <WORD> <1-65535> [match {interface | metric | network | next-hop | protocol | route-source | route-type}] [set {injectlist | ip-preference | mask | metric | metric-type | nssa-pbit enable}
no route-map <WORD> <1-65535> [match {interface | metric | network | next-hop | protocol | route-source | route-type}] [set {injectlist | ip-preference | mask | metric | metric-type | nssa-pbit enable}
None
Global Configuration
| Parameter | Description |
|---|---|
|
{deny | permit} | Specifies the action to be taken when this policy is selected for a specific route. |
|
<1-65535> | Specifies the secondary policy index sequence number to assign to individual policies inside a larger policy group. |
|
<WORD> | Specifies an alphanumeric name for the IP route map. |
|
enable | Enables the IP route map policy index sequence number. If you do not enable the map policy index sequence number, the switch ignores the selected value. The default is disabled. |
|
injectlist <WORD> | Replaces the destination network of the route that matches this policy with the contents of the specified prefix list. |
|
interface <WORD> | Matches the IP address of the received interface against the contents of the specified prefix list. |
|
ip-preference <0-255> | Specifies the route preference value to be assigned to the route that matches this policy. If you select a value of 0, the switch uses the global preference value. This parameter is used for accept policies only. The default is 0. |
|
mask <A.B.C.D> | Sets the mask of the route that matches this policy. This parameter is used for RIP accept policies only. The default is 0.0.0.0. |
|
match | Specifies the match criteria for the IP route map. |
|
metric <0-65535> | Matches the metric of the incoming advertisement or existing route against the specified value or sets the value of the metric to be assigned to matching routes. If you set the match value to 0, the switch ignores this field. The default is 0. |
|
metric-type <type1 | type2> | Sets the metric type for routes to be imported into the OSPF routing protocol. The default is type2. |
|
name <WORD> | Assigns a new alphanumeric name to a previously configured IP route map. |
|
network <WORD> | Matches the destination network against the contents of the specified prefix list. |
|
next-hop <WORD> | Matches the next hop IP address of the route against the contents of the specified prefix list. |
|
nssa-pbit enable | Enables the NSSA P-bit, which notifies the ABR to export the matching external route. This parameter is used for OSPF policies only. The default is enable. |
|
protocol <name> | Matches the protocol through which the switch learns a route. Values include direct, static, rip, ospf, or any. You can select a list of multiple protocols by separating the selections with commas. |
|
route-source <WORD> | Matches the source IP address for RIP routes against the contents of the specified prefix list. |
|
route-type <any | external | external-1 | external-2 | internal |local> | Matches a specific route. The default is any. |
|
set | Specifies an IP route map policy. |