User Manual

Table Of Contents
no ip policy route-map [route-map-id]
[Parameter]
route-map-id : <1-4094>
Route map ID
[Initial value]
none
[Input mode]
interface mode
[Description]
This applies the route map for IPv4 to the interface.
If this is executed with the "no" syntax, the application of the route map is cleared from the interface.
[Note]
The types of interfaces to which this can be adapted are as follows.
VLAN interface
Route maps that can be applied to an interface include up to one for IPv4 and IPv6 each. If a route map has already been
applied, an error will occur.
An error will also occur if no valid entries exist.
The conditions for valid entries are shown below.
“match” must be set
An IPv4 or MAC access list must be specified
At least one “permit” entry must exist in the access list
In the case of “permit”, “set” must be set*
“ip next-hop” or “interface null” must be specified
*In the case of “deny”, “set” does not need to be set (it will be ignored if it has been configured)
[Example]
This applies “vlan10” to the route map used to forward communications from the segment of source 192.168.1.0/24 to the next
hop 10.0.0.1.
SWX3220(config)#access-list 1 permit any 192.168.1.0 0.0.0.255 any
SWX3220(config)#route-map 100 permit 10
SWX3220(config-route-map)#match access-list 1
SWX3220(config-route-map)#set ip next-hop 10.0.0.1
SWX3220(config-route-map)#exit
SWX3220(config)#interface vlan10
SWX3220(config-if)#ip policy route-map 100
7.15.8 Applying a route map to the interface (for IPv6)
[Syntax]
ipv6 policy route-map route-map-id
no ipv6 policy route-map [route-map-id]
[Parameter]
route-map-id : <1-4094>
Route map ID
[Initial value]
none
[Input mode]
interface mode
[Description]
This applies the route map for IPv6 to the interface.
Command Reference | Layer 3 functions | 341