redirect
Configure a rule for the redirect list.
Syntax
redirect {ip-address | slot/port} | tunnel tunnel-id}[track <obj-id>] {ip-
protocol-number | protocol-type [bit]} {source mask | any | host ip-address}
{destination mask | any | host ip-address} [operator]
To remove this filter, use one of the following:
•
•
Parameters
redirect
ip-address
slot/port
tunnel
tunnel-id
track
track <obj-id>
ip-protocol-number
protocol-type
bit
source
mask
1192
Policy-based Routing (PBR)
Use the no seq sequence-number command if you know the filter's sequence number.
You can also use the no redirect {ip-address | slot/port}| tunnel tunnel-id}[track
<obj-id>] {ip-protocol-number [bit] | protocol-type} {source mask | any |
host ip-address} {destination mask | any | host ip-address} [operator]
command.
Enter the keyword redirect to assign the sequence to the redirect list.
Enter the IP address of the forwarding router.
Enter the keyword slot / port followed by the slot/port information.
Enter the keyword tunnel to configure the tunnel setting.
Enter the keyword tunnel-id to redirect the traffic.
Enter the keyword track to enable the tracking.
Enter the keyword track <obj-id> to track object-id.
Enter a number from 0 to 255 for the protocol identified in the IP protocol header.
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) For the TCP protocol type only, enter one or a combination of the following
TCP flags:
•
ack = acknowledgement
•
fin = finish (no more data from the user)
•
psh = push function
•
rst = reset the connection
•
syn = synchronize sequence number
•
urg = urgent field
Enter the IP address of the network or host from which the packets were sent.
Enter a network mask in /prefix format (/x).