Chapter 31 Policy-Based Routing Configuration DGS-3610 Series Configuration Guide
DGS-3610(config-route-map)# match ip
address
access-list-number
Match the address in the access list
DGS-3610(config-route-map)# match length
min
max
Match the length of the packet
3. Define the operation performed if the match rule is met.
To define the operation after matching, execute the following commands in the route
map configuration mode:
DGS-3610(config-route-map)# set ip default
next-hop ip-address[weight][ip-address[weight]]
Set the next-hop IP address of the packets, if the
routing table does not contain any definite routes
DGS-3610(config-route-map)# set ip next-hop
ip-address [weight][ip-address[weight]]
Set the next-hop IP address of the packets
DGS-3610(config-route-map)# set interface
intf_name
DGS-3610(config-route-map)# set default
interface intf_name
4. Apply the route map at the specified interface.
To apply policy-based routing on the interface, execute the following commands in the
interface configuration mode:
DGS-3610(config-if)# ip policy route-map
[name]
Use the specified route-map for filtering on the
interface
DGS-3610(config-if)# no ip policy route-map
[name]
Cancel the route-map applied on the interface
For example:
Configure policy-based routing on the f 0/0 interface so that all incoming packets are
forwarded to the device of 192.168.5.5.
DGS-3610(config)# access-list 1 permit any
DGS-3610(config)# route-map name