R0106-HP MSR Router Series Layer 3 - IP Services Configuration Guide(V7)
118
• Add a route manually for inbound static NAT. Use local-ip or local-network as the destination
address, and use global-ip, an address in global-network, or the next hop address of the output
interface for the incoming packets as the next hop.
Configuring outbound one-to-one static NAT
To translate a private IP address into a public IP address, and vice versa, configure outbound one-to-one
static NAT on the interface that connects the external network.
• When the source IP address of a packet from the private network matches the local-ip, the IP
address is translated to the global-ip.
• When the destination IP address of a packet from the public matches the global-ip, the destination
IP address is translated into the local-ip.
To configure outbound one-to-one static NAT:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Configure a one-to-one
mapping for outbound static
NAT.
nat static outbound local-ip
[ vpn-instance local-name ]
global-ip [ vpn-instance
global-name ] [ acl acl-number
[ reversible ] ]
By default, no mappings exist.
If you specify the acl keyword,
NAT processes only packets
matching the permit statement in
the ACL.
3. Return to system view.
quit N/A
4. Enter interface view.
interface interface-type
interface-number
N/A
5. Enable static NAT on the
interface.
nat static enable By default, static NAT is disabled.
Configuring outbound net-to-net static NAT
For address translation between a private network and a public network, configure outbound net-to-net
static NAT on the interface that connects the external network.
• When the source IP address of a packet from the private network matches the internal address pool,
the source IP address is translated into a public address in the external address pool.
• When the destination IP address of a packet from the public network matches the external address
pool, the destination IP address is translated into a private address in the internal address pool.
To configure outbound net-to-net static NAT:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A