Description
Example
reset nat session
Syntax
View
Parameter
Description
Example
end-ip: End address of an internal IP address range. The end address must not be
smaller than the start address.
Global: Specifies an external network address.
global-net-address: External network address.
Mask: External network mask.
mask-length: Length of the external network mask, in the range of 1 to 32.
Use the
command to configure static NAT between an internal IP
nat static
address and an external IP address.
Use the
undo nat static
There are two ways to configure static NAT between an internal IP address and an
external IP address:
One-to-one NAT: An internal IP address is translated into an external IP address.
■
Net-to-net NAT: The IP addresses of an internal network segment are mapped
■
with the IP addresses of an external network segment.
Note that when configuring net-to-net NAT, you must ensure that internal IP
addresses fall in one network segment when ANDed with the external network
mask.
# Configure static NAT between 192.168.1.1 and 2.2.2.2.
<Sysname> system-view
[Sysname] nat static 192.168.1.1 2.2.2.2
# Configure static NAT between the internal segment ranging 192.168.1.1 to
192.168.1.100 and the external segment 172.16.0/24.
<Sysname> system-view
[Sysname] nat static net-to-net 192.168.1.1 192.168.1.100 global 172
.16.0.0 255.255.255.0
reset nat session
User view
None
Use the
reset nat session
release the memory for storing the table.
# Clear the address translation table.
command to remove the configuration.
command to clear the address translation table and
2039