Command Reference Guide
224 ● nat server 3Com Router 5000 Family and Router 6000 Family
Command Reference
nat server
Purpose Use the nat server command to define a mapping table for internal servers. Users
can access the internal server with the address and port as host-addr and host-port
respectively through the address port defined by global-addr and global-port.
Use the undo nat server command to remove the mapping table.
Syntax nat server [ acl-number ] [ vpn-instance vpn-instance-name ] protocol
pro-type global { global-addr [ global-port ] | current-interface |
interface interface-type interface-number } inside host-addr [
host-port ]
nat server [ acl-number ] [ vpn-instance vpn-instance-name ] protocol
pro-type global { global-addr global-port1 global-port2 |
current-interface | interface interface-type interface-number } inside
host-addr1 host-addr2 host-port
undo nat server [ acl-number ] [ vpn-instance vpn-instance-name ]
protocol pro-type global { global-addr [ global-port ] |
current-interface | interface interface-type interface-number } inside
host-addr [ host-port ]
undo nat server [ acl-number ] [ vpn-instance vpn-instance-name ]
protocol pro-type global { global-addr global-port1 global-port2 |
current-interface | interface interface-type interface-number } inside
host-addr1 host-addr2 host-port
Parameters acl-number
ACL number. Valid values are 2000 to 3999. When
configured with an ACL, the nat server command
allows the NAT server to translate addresses for
packets sent by internal servers only when the source
and destination addresses in the packets are permitted
by the ACL.
vpn-instance-name
The virtual route forwarding instance of the VPN the
internal server belongs to. If the parameter is not
configured, it represents that the internal server
belongs to an ordinary private network, other than
one MPLS VPN.
global-addr
An IP address provided for the outside to access (a
legal IP address).
global-port
A service port number provided for the outside to
access. If ignored, its value shall be the same with the
host-port’s va lu e.
current interface
Uses the address of the current public network
interface of the router as the public network address
of NAT server.
interface interface-type
interface number
Uses the address of other interfaces as the public
network address of the NAT server. Currently, only
Loopback interface is supported and must be
configured on a router.