redirect ip-nexthop

Function

The redirect ip-nexthop command sets the IP address of a next hop to which packets are redirected.

The undo redirect command deletes the IP address of a next hop to which packets are redirected.

By default, no IP address of a next hop to which packets are redirected is set.

This command is supported only on the NetEngine 8000 F1A.

Format

redirect ip-nexthop ip-address { inbound | outbound }

undo redirect [ ip-nexthop ip-address { inbound | outbound } ]

Parameters

Parameter Description Value
inbound

Indicates redirection to a next hop for public network-to-private network traffic.

-

outbound

Indicates redirection to a next hop for private network-to-public network traffic.

-

ip-nexthop ip-address

Specifies the IPv4 address of a next hop to which packets are re-directed.

The value is in dotted decimal notation.

Views

NAT instance view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
nat write

Usage Guidelines

Usage Scenario

To change the IP address of a next hop to which packets are redirected, run the redirect ip-nexthop command. This command is used when the next-hop IP address NAT traffic is the same as that used in PBR redirection.

Precautions

To redirect all user traffic, run the redirect ip-nexthop command to specify a next-hop IP address to which user traffic is redirected.

A singe redirect ip-nexthop command instance can be run for either network-to-user inbound or user-to-network outbound packets in each NAT instance.

Example

# Set the IP address of a next hop to which packets are re-directed to 192.168.1.1 in a NAT instance named cpe1.
<HUAWEI> system-view
[~HUAWEI] nat instance cpe1 id 1
[*HUAWEI-nat-instance-cpe1] redirect ip-nexthop 192.168.1.1 outbound
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >