The system view is displayed.
Step 2
Run:
interface
interface-type
interface-number
The interface view is displayed.
Step 3
Run:
l
nat static
protocol
{
tcp
|
udp
}
global
{
global-address
|
current-interface
}
global-
port
inside
host-address
[
host-port
] [
vpn-instance
vpn-instance-name
] [
netmask
mask
] [
acl
acl-number
] [
description
description
]
l
nat static
protocol
{
tcp
|
udp
}
global
interface
loopback
interface-number
global-port
[
vpn-instance
vpn-instance-name
]
inside
host-address
[
host-port
] [
vpn-instance
vpn-
instance-name
] [
netmask
mask
] [
acl
acl-number
] [
description
description
]
l
nat static
[
protocol
{
protocol-number
|
icmp
|
tcp
|
udp
} ]
global
global-address
inside
host-address
[
vpn-instance
vpn-instance-name
] [
netmask
mask
] [
acl
acl-
number
] [
description
description
]
Static NAT is configured.
NOTE
When configuring static NAT, ensure that
global-address
and
host-address
are different from interface IP
addresses and IP addresses in the user address pool.
----End
5.3.7 Enabling NAT ALG
Errors may occur when NAT translates protocol packets encapsulated in IP data packets. The
NAT ALG function ensures that the protocol packets are translated successfully.
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
nat alg
{
all
|
dns
|
ftp
|
rtsp
|
sip
}
enable
The NAT ALG function is enabled.
After the NAT ALG function is enabled for an application protocol, packets of the application
protocol can traverse the NAT server. The application protocol cannot work without the NAT
ALG function.
In the command,
all
indicates that NAT traversal applies to the DNS, FTP, SIP, and RTSP
protocols.
----End
5.3.8 Configuring NAT Filtering
A NAT device filters the traffic from external network to internal network. After an internal host
sends an access request to an external host, the external host transmits traffic to the internal host.
The NAT device filters the traffic sent to the internal host.
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.
113