R0106-HP MSR Router Series Layer 3 - IP Services Command Reference(V7)

178
You can configure multiple inbound static NAT mappings by using the nat static inbound command and
the nat static inbound net-to-net command.
Examples
# Configure an inbound static NAT mapping between external IP address 2.2.2.2 and internal IP
address 192.168.1.1.
<Sysname> system-view
[Sysname] nat static inbound 2.2.2.2 192.168.1.1
Related commands
display nat all
display nat static
nat static enable
nat static inbound net-to-net
Use nat static inbound net-to-net to configure a net-to-net mapping for inbound static NAT.
Use undo nat static inbound net-to-net to remove a net-to-net mapping for inbound static NAT.
Syntax
nat static inbound net-to-net global-start-address global-end-address [ vpn-instance global -name ] local
local-network { mask-length | mask } [ vpn-instance local-name ] [ acl acl-number [ reversible ] ]
undo nat static inbound net-to-net global-start-address global-end-address [ vpn-instance global -name ]
Default
No NAT mapping exists.
Views
System view
Predefined user roles
network-admin
Parameters
global-start-address global-end-address: Specifies an external address pool which can contain a
maximum of 255 addresses. The global-end-address must not be lower than global-start-address. If they
are the same, the external address pool has only one address.
vpn-instance global-name: Specifies the MPLS L3VPN instance to which an external IP address belongs.
The global-name argument is a case-sensitive string of 1 to 31 characters. To specify a public IP address,
do not use this parameter.
local-network: Specifies an internal network address.
mask-length: Specifies the mask length of the internal network address, in the range of 8 to 31.
mask: Specifies the mask of the internal network address.
vpn-instance local-name: Specifies the MPLS L3VPN instance to which an internal IP address belongs.
The local-name argument is a case-sensitive string of 1 to 31 characters. To specify a public IP address,
do not use this parameter.
acl acl-number: Specifies an ACL number in the range of 3000 to 3999.