nat bind instance

Function

The nat bind instance command binds a traffic behavior to a NAT instance.

The undo nat command removes the binding between a traffic behavior and a NAT instance.

By default, no traffic behavior is bound to a NAT instance.

This command is supported only on the NetEngine 8000 F1A.

Format

nat bind instance instance-name

undo nat [ bind instance instance-name ]

Parameters

Parameter Description Value
instance instance-name

Specifies the name of a NAT instance.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

Traffic behavior view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
nat write

Usage Guidelines

Usage Scenario

To bind a traffic behavior to a NAT instance, run the nat bind instance command. On a carrier network, NAT must be performed for all user traffic. To meet this requirement, configure a traffic policy and apply it to an inbound interface. The traffic policy must be defined to direct traffic to a service board for NAT processing. The configuration involves defining ACL rules, traffic classifiers, traffic behaviors, and traffic policies and applying the traffic policies.

Prerequisites

ACL rules have been configured to match user traffic to be processed by NAT. Traffic classifiers have also been configured.

Follow-up Procedure

Bind the traffic classifier with the traffic behavior in a traffic policy and apply the traffic policy to an interface or globally.

Example

# Bind a NAT instance named cpe1 to a traffic behavior named b1.
<HUAWEI> system-view
[~HUAWEI] nat instance cpe1 id 1
[*HUAWEI-nat-instance-cpe1] commit
[~HUAWEI-nat-instance-cpe1] quit
[~HUAWEI] traffic behavior b1
[*HUAWEI-behavior-b1] nat bind instance cpe1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >