HP MSR2000/3000/4000 Router Series Layer 3 - IP Services Command Reference
163
Examples
# Configure an inbound static NAT between external network address 202.100.1.0/24 and internal
network address 192.168.1.0/24.
<Sysname> system-view
[Sysname] nat static inbound net-to-net 202.100.1.1 202.100.1.255 local 192.168.1.0 24
Related commands
• display nat all
• display nat static
• nat static enable
nat static outbound
Use nat static outbound to configure a one-to-one mapping for outbound static NAT.
Use undo nat static outbound to remove a one-to-one mapping for outbound static NAT.
Syntax
nat static outbound local-ip [ vpn-instance local-name ] global-ip [ vpn-instance global-name ] [ acl
acl-number [ reversible ] ]
undo nat static outbound local-ip [ vpn-instance local-name ]
Default
No NAT mapping exists.
Views
System view
Predefined user roles
network-admin
Parameters
local-ip: Specifies an internal IP 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.
global-ip: Specifies an external IP 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.
acl acl-number: Specifies an ACL number in the range of 3000 to 3999.
reversible: Translates the destination address of a packet that originates from internal hosts to the
external host if the packet is permitted by ACL reverse matching.
Usage guidelines
When the source IP address of an outgoing packet matches the local-ip, the IP address is translated to the
global-ip. When the destination IP address of an incoming packet matches the global-ip, the destination
IP address is translated into the local-ip.