The nat server global inside command configures the internal server function in a simplified NAT instance.
The undo nat server global inside command deletes the internal server function in a simplified NAT instance.
By default, the internal server function is not configured in a simplified NAT instance.
This command is supported only on the NetEngine 8000 F1A.
nat server global ip-addr [ vpn-instance vpn-instance-name ] inside ip-addr [ vpn-instance vpn-instance-name ] [ redirect ip-addr { inbound | outbound } ]
undo nat server global ip-addr [ vpn-instance vpn-instance-name ] inside ip-addr [ vpn-instance vpn-instance-name ] [ redirect ip-addr { inbound | outbound } ]
Parameter | Description | Value |
---|---|---|
vpn-instance vpn-instance-name |
Specifies the name of a 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. |
redirect ip-addr |
Specifies a redirected next-hop IP address. If traffic passing through a server has a conflicting next-hop IP address, configure this parameter so that the traffic is redirected to a specified next-hop IP address. |
The value is in dotted decimal notation. |
inbound |
Redirects user-to-network packets to a next hop. |
- |
outbound |
Redirects user-to-network packets to a next hop. |
- |
global ip-addr |
Specifies the public IP address of an internal server. |
The value is in dotted decimal notation. |
Usage Scenario
NAT can be configured to allow users on a private network to access public network services, while hiding the structure of the private network and devices on the private network. In this case, a user on an external network cannot communicate with a private network user.
To address this problem, the internal server function can be configured on the private network. The internal server function enables a NAT device to translate a public IP address into a private IP address based on either of the following entries:Prerequisites
A simplified NAT instance has been configured using the nat instance simple-configuration command in the system view.
Precautions
The global address must be different from an existing IP address assigned to a device or its interface, preventing IP address conflicts.
<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 nat1 id 1 simple-configuration [*HUAWEI-nat-instance-nat1] commit [~HUAWEI-nat-instance-nat1] quit [~HUAWEI] nat server global 10.12.12.12 inside 192.168.12.12 vpn-instance vpn1 redirect 192.168.1.1 outbound