DGS-6604
ip policy route-map
CLI Reference Guide
311
ip policy route-map
Use the command to specify a route map as the routing policy on an interface,.
To disable policy routing on the interface, use the no form of this command.
ip policy route-map
MAP-NAME
no ip policy route-map
[
MAP-NAME
]
Default
Policy routing is disabled.
Command Mode
Interface configuration mode.
Usage Guideline
The command is only available for VLAN interface configuration.
The user can specify one route map as the routing policy on an interface. The
policy will be applied to packets received by the interface.
Use the
match ip-address
command in route map to define the matching criteria
for packets with specific characteristics. If IP access list is used with the
match
ip-address
command, all of the matching criteria in the access list will be
checked. The packet that matches that permit statement will be acted based on
the route map. The packet that is denied by the access list will be routed based
on routing table.
Use the following set command to define the action to take for policy based
routing:
set ip precedence
set interface
set ip next-hop
set ipv6 next-hop
set default interface
set ip default next-hop
set ipv6 default next-hop
When enabling the ipv6 long prefix function,
Set default interface
and
set ipv6
default next-hop
will not work at the same time.
Example: user can find ipv6 long prefix route information, but the packet will still
be routed to the default interface via PBR.
Syntax Description
MAP-NAME
Specify the name of the route map to be used for the routing policy.