API Guide

Table Of Contents
Configuration Task List for Policy-based Routing
To enable the PBR:
Create a Redirect List
Create a Rule for a Redirect-list
Create a Track-id list. For complete tracking information, refer to Object Tracking chapter.
Apply a Redirect-list to an Interface using a Redirect-group
Create a Redirect List
Use the following command in CONFIGURATION mode:
Table 68. Create a Redirect List
Command Syntax Command Mode Purpose
ip redirect-list redirect-list-name CONFIGURATION Create a redirect list by entering the list
name.
Format: 16 characters
Delete the redirect list with the no ip redirect-list command.
Create a Rule for a Redirect-list
The following example creates a redirect list by the name of “xyz.”
Dell(conf)#ip redirect-list ?
WORD Redirect-list name (max 16 chars)
Dell(conf)#ip redirect-list xyz
Use the following command in CONFIGURATION REDIRECT-LIST mode to set the rules for the redirect list. You can enter the
command multiple times and create a sequence of redirect rules. Use the seq nn redirect version of the command to organize your rules.
Table 69. Create a Rule for a Redirect-list
Command Syntax Command Mode Purpose
{seq sequence-number} redirect
{ip-address| tunnel tunnel-id}
[track obj-id] {protocol-type}
{source mask | any | host ip-
address} {destination mask |
any | host ip-address} [bit]
[operators]}
REDIRECT-LIST Configure a rule for the redirect list.
ip-address is the forwarding router’s
address
tunnel — keyword to configure the tunnel
settings.
tunnel-id is used to redirect the traffic.
Protocol-type — Enter one of the following
keywords as the protocol type
icmp for Internet Control Message
Protocol
ip for Any Internet Protocol
tcp for Transmission Control Protocol
udp for User Datagram Protocol
Optional
sequence-number (Optional) — Configures
a rule with an assigned sequence number
for the redirect list. Enter a number from 1
to 65535.
656 Policy-based Routing (PBR)