Command Manual – NAT&URPF&VPLS
Quidway S8500 Series Routing Switches
Chapter 1 NAT Configuration Commands
Huawei Technologies Proprietary
1-13
# Configure to use one-to-one NAT (do not use TCP/UDP port information for NAT).
[Quidway-Vlan-interface2] nat outbound 1 address-group 1 no-pat slot 3
# Delete the corresponding configuration.
[Quidway-Vlan-interface2] undo nat outbound 1 address-group 1 no-pat slot 3
#Configure to directly use the IP address of vlan-interface 2.
[Quidway-Vlan-interface2] nat outbound 1 slot 3
# Delete the corresponding configuration.
[Quidway-Vlan-interface2] undo nat outbound 1 slot 3
1.1.12 nat server
Syntax
nat server
protocol pro-type global global-addr
[
global-port1
] [
global-port2
]
inside
host-addr1
[
host-addr2
]
[
host-port
]
slot slotno
nat server protocol pro-type global global-addr
[
global-port
]
inside host-addr
[
host-port
]
slot slotno
undo nat server
protocol pro-type global global-addr
[
global-port1
]
[
global-port2
]
inside host-addr1
[
host-addr2
]
[
host-port
]
slot slotno
undo nat server
protocol pro-type global global-addr
[
global-port
]
inside host-addr
[
host-port
]
slot slotno
View
VLAN interface view
Parameter
global-addr
: Server’s public IP address by which external devices can access servers.
global-port
: External service port numbers of servers by which the external devices can
access the services provided by servers. If external service port numbers are not
specified, the service port numbers are used. When protocols are TCP and UDP, you
must configure the external service port numbers.
host-addr
: IP address of the server on the internal LAN.
host-port
: Service port number provided by the server, in the range from 0 to 65,535.
Value of 0 indicates the server can provide any type of services. You can use a keyword
to indicate a frequently used port number. For example, you can use
www
for WWW
service port number 80,
ftp
for ftp service port number 21
Note that one command can be used to configure up to 128 internal servers.
global-addr [ global-port ]
:
Specifies a scope of external service port numbers that
corresponds to the address range of internal hosts. global-port2 must be bigger than
global-port1.