Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
nat overlap-address
map-index
overlappool-startaddress
temppool-startaddress
pool-
length
length
[
inside-vpn-instance
inside-vpn-instance-name
]
Twice NAT is configured.
The overlapping address pool and temporary address pool contain consecutive IP addresses. The
lengths of the two address pools are the same, and up to 255 IP addresses can be configured in
each of the two address pools.
Up to 8 mapping entries between the overlapping address pool and the temporary address pool
can be configured.
When the VPN instance in the NAT mapping is deleted, the twice NAT configuration is also
deleted.
----End
5.3.12 Checking the Configuration
After NAT is configured, you can view information about NAT.
Procedure
l
Run the
display nat alg
command to check whether the NAT ALG function is enabled.
l
Run the
display nat address-group
[
group-index
] [
verbose
] command to check the
configuration of the NAT address pool.
l
Run the
display nat dns-map
[
domain-name
] command to check information about DNS
mapping.
l
Run the
display nat outbound
[
acl
acl-number
|
address-group
group-index
|
interface
{
Ethernet
}
interface-number.subnumber
] command to check information
about outbound NAT.
l
Run the
display nat overlap-address
{
map-index
|
all
|
inside-vpn-instance
inside-vpn-
instance-name
} command to check information about twice NAT.
l
Run the
display nat server
[
global
global-address
|
inside
host-address
[
vpn-instance
vpn-instance-name
] |
interface
interface-type
interface-number.subnumber
] command to
check the configuration of the NAT server.
l
Run the
display nat static
[
global
global-address
|
inside
host-address
[
vpn-instance
vpn-instance-name
] |
interface
interface-type
interface-name
] command to check the
configuration of static NAT.
l
Run the
display nat mapping table
{
all
|
number
} command to view the NAT mapping
table information or number of entries in the table.
----End
Huawei AR150&200 Series Enterprise Routers
Configuration Guide - IP Service
5 NAT Configuration
Issue 02 (2012-03-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
116