Policy-Based Routing (Pbr) Commands - D-Link DXS-3600 Series Reference Manual

Dxs-3600 series layer 2/3 managed 10gigabit ethernet switch
Hide thumbs Also See for DXS-3600 Series:
Table of Contents

Advertisement

DXS-3600 Series Layer 3 Managed 10Gigabit Ethernet Switch CLI Reference Guide

73. Policy-based Routing (PBR) Commands

73-1 ip policy route-map
This command is used 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
Parameters
MAP-NAME
Default
By default, this option is disabled.
Command Mode
Interface Configuration Mode.
Command Default Level
Level: 12.
Usage Guideline
The command is only available for VLAN interface configuration.
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 the route map to define the matching criteria for packets with
specific characteristics. If the 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 on based on the route map. The packet that is denied by the access list will be routed based on the
routing table.
Use the following set of commands to define the action to take for policy based routing:
set ip precedence
set ip next-hop
set ip default next-hop
If the no match ip-address command is used in the specified route-map or if the IP access list
configured for the match ip-address command of the route-map doesn't exist or exists but contains no
rule, the set commands above won't be executed, so the policy on the interface won't take effect.
Example
This example shows how to set up the routing policy to route the packets that match the IP access list
name "pbr-acl" to the next-hop 20.1.1.254.
Switch# configure terminal
Switch(config)# route-map pbr-map permit 1
Switch(config-route-map)# match ip address pbr-acl
Switch(config-route-map)# set ip next-hop 20.1.1.254
Switch(config-route-map)# exit
Switch(config)# interface vlan100
Switch(config-if)# ip policy route-map pbr-map
Switch(config-if)#
Specifies the name of the route map to be used for the routing policy.
885

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dxs-3600-32s

Table of Contents