Concept Guide

FORMAT: slot/port
ip-protocol-number or protocol-type is the type of protocol to be redirected
FORMAT: 0-255 for IP protocol number, or enter protocol type
source ip-address or any or host ip-address is the Sources IP address
FORMAT: A.B.C.D/NN, or ANY or HOST IP address
destination ip-address or any or host ip-address is the Destination’s IP address
FORMAT: A.B.C.D/NN, or ANY or HOST IP address
To delete a rule, use the no redirect command.
The redirect rule supports Non-contiguous bitmasks for PBR in the Destination router IP address
The following example shows how to create a rule for a redirect list by conguring:
IP address of the next-hop router in the forwarding route
IP protocol number
Source address with mask information
Destination address with mask information
Example: Creating a Rule
DellEMC(conf-redirect-list)#redirect ?
A.B.C.D Forwarding router's address
DellEMC(conf-redirect-list)#redirect 3.3.3.3 ?
<0-255> An IP protocol number
icmp Internet Control Message Protocol
ip Any Internet Protocol
tcp Transmission Control Protocol
udp User Datagram Protocol
DellEMC(conf-redirect-list)#redirect 3.3.3.3 ip ?
A.B.C.D Source address
any Any source host
host A single source host
DellEMC(conf-redirect-list)#redirect 3.3.3.3 ip 222.1.1.1 ?
Mask A.B.C.D or /nn Mask in dotted decimal or in slash format
DellEMC(conf-redirect-list)#redirect 3.3.3.3 ip 222.1.1.1 /32 ?
A.B.C.D Destination address
any Any destination host
host A single destination host
DellEMC(conf-redirect-list)#redirect 3.3.3.3 ip 222.1.1.1 /32 77.1.1.1 ?
Mask A.B.C.D or /nn Mask in dotted decimal or in slash format
DellEMC(conf-redirect-list)#redirect 3.3.3.3 ip 222.1.1.1 /32 77.1.1.1 /32 ?
DellEMC(conf-redirect-list)#redirect 3.3.3.3 ip 222.1.1.1 /32 77.1.1.1 /32
DellEMC(conf-redirect-list)#do show ip redirect-list
IP redirect-list xyz:
Defined as:
seq 5 redirect 3.3.3.3 ip host 222.1.1.1 host 77.1.1.1
Applied interfaces:
None
You can apply multiple rules to a single redirect-list. The rules are applied in ascending order, starting with the rule that has the lowest
sequence number in a redirect-list displays the correct method for applying multiple rules to one list.
Example: Creating Multiple Rules for a Redirect-List
DellEMC(conf)#ip redirect-list test
DellEMC(conf-redirect-list)#seq 10 redirect 10.1.1.2 ip 20.1.1.0/24 any
DellEMC(conf-redirect-list)#seq 15 redirect 10.1.1.3 ip 20.1.1.0/25 any
DellEMC(conf-redirect-list)#seq 20 redirect 10.1.1.3 ip 20.1.1.128/24 any
DellEMC(conf-redirect-list)#show config
Policy-based Routing (PBR)
619