D-Link DES-7200 Refrigerator User Manual


  Open as PDF
of 1968
 
DES-7200 Configuration Guide Chapter 7 Policy-based Routing
Configuration
7-8
Caution
1 The set vrf and set ip [ default ] nexthop commands cannot be
configured simultaneously for a policy. But the set vrf command can be
configured with other set statements. The VRF must exist when you
configure the VRF of policy-based routing or otherwise the system prompts
configuration failure.
2 The set ip dscp, set ip tos and set ip precedence commands cannot be
configured simultaneously for a policy or otherwise the corresponding
domains of IP packet may be different than the expectation.
3 The set vrf and set ip nexthop commands take precedence over common
route. IP packets matching policy-based routing are forwarded by
policy-based routing, but the IP packets not matching the policy-based
routing are forwarded by common routes.
4 The set default ip nexthop commands are lower than common route in
terms of priority. IP packets are forwarding by policy-based routing only
after common route failed.
7.3.2 Apply the route map
To apply the policy-based routing on the interface, run the following command in
the interface configuration mode.
Command Function
DES-7200(config-if)# ip policy
route-map name
Apply policy-based routing on the
interface.
To apply the policy-based routing on local device, run the following command in
the global configuration mode.
Command Function
DES-7200(config)# ip local policy
route-map [name]
Apply the policy-based routing to the
packets from local device.
For example:
Configure policy-based routing on Fastethernet 0/0 so that all incoming packets
are forwarded to the device whose next hop is 192.168.5.5.
DES-7200(config)# access-list 1 permit any
DES-7200(config)# route-map name
DES-7200(config-route-map)# match ip address 1
DES-7200(config-route-map)# set ip next-hop 192.168.5.5
DES-7200(config-route-map)# int fastethernet 0/0
DES-7200(config-if)# ip policy route-map name