The nat server global inside command configures an internal server.
The undo nat server global inside command deletes internal server configurations.
By default, no internal server is configured.
This command is supported only on the NetEngine 8000 F1A.
Parameter | Description | Value |
---|---|---|
vpn-instance vpn-instance-name |
Specifies the name of a private-network VPN instance to which an internal server belongs. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string. |
inside ip-addr |
Specifies the private IP address of an internal server. |
The value is in dotted decimal notation. |
extendable |
Indicates the extended NAT server identifier, meaning that an internal server with a private IP address and different public IP addresses can be configured. |
- |
global ip-addr |
Specifies the public IP address of the internal server. |
The value is in dotted decimal notation. |
Configuration Impact
The internal server function enables a NAT device to translate the public IP address to the private IP address based on a static mapping entry that contains a private IP address, a private port number, a public IP address, and a public port number or a static mapping entry that contains a private IP address and a public IP address.
Precautions
In a NAT scenario, it is recommended that the public IP address of a NAT server be different from that in an address pool. Otherwise, user traffic is incorrectly forwarded.
When you configure the internal server function, note the following:<HUAWEI> system-view [~HUAWEI] ip vpn-instance vpn1 [*HUAWEI-vpn-instance-vpn1] ipv4-family [*HUAWEI-vpn-instance-vpn1-af-ipv4] route-distinguisher 200:1 [*HUAWEI-vpn-instance-vpn1-af-ipv4] vpn-target 101:101 export-extcommunity [*HUAWEI-vpn-instance-vpn1-af-ipv4] vpn-target 101:101 import-extcommunity [*HUAWEI-vpn-instance-vpn1-af-ipv4] commit [~HUAWEI-vpn-instance-vpn1-af-ipv4] quit [~HUAWEI-vpn-instance-vpn1] quit [~HUAWEI] nat instance cpe1 id 1 [*HUAWEI-nat-instance-cpe1] nat server global 10.12.12.12 inside 192.168.12.12 vpn-instance vpn1