nat outbound static
Syntax
View
Parameter
Description
Example
nat server
Syntax
# Configure the address pool.
[Sysname] nat address-group 1 1.10.10.1 1.10.10.20
# Enable NAT. Use the IP addresses from address pool 1 while dealing with
TCP/UDP port information.
[Sysname] interface serial 1/0
[Sysname-Serial1/0] nat outbound 2001 address-group 1
# If you do not deal with the TCP/UDP port information, do the following:
<Sysname> system-view
[Sysname] interface serial 1/0
[Sysname-Serial1/0] nat outbound 2001 address-group 1 no-pat
# To use the IP address of the Serial 1/0 interface for address translation, do the
following:
<Sysname> system-view
[Sysname] interface serial 1/0
[Sysname-Serial1/0] nat outbound 2001
nat outbound static
undo nat outbound static
Interface view
None
Use the
nat outbound static
one-to-one (static) NAT configured with the nat static command.
Use the
undo nat outbound static
NAT on the interface.
# Configure one-to-one NAT and enable this NAT on interface Serial 2/0.
<Sysname> system-view
[Sysname] nat static 192.168.1.1 2.2.2.2
[Sysname] serial 1/0
[Sysname-Serial1/0] nat outbound static
nat server [ vpn-instance vpn-instance-name ] protocol pro-type global
{ global-address | interface { interface-type interface-number } | current-interface }
global-port1 global-port2 inside host-address1 host-address2 host-port
command to enable on an interface the
command to cancel the one-to-one (static)
2035