R2511-HP MSR Router Series Layer 3 - IP Services Configuration Guide(V5)

123
Ste
p
Command
1. Enter system view.
system-view
2. Configure a net-to-net static NAT mapping.
nat static [ acl-number ] net-to-net local-start-address
local-end-address global global-network { netmask-length |
netmask }
3. Enter interface view.
interface interface-type interface-number
4. Enable static NAT on the interface.
nat outbound static
Configuring dynamic NAT
Dynamic NAT is usually implemented by associating an ACL with an address pool (or the address of an
interface) on an interface.
To select the address of an interface as the translated address, use Easy IP.
To select an address from an address pool as the translated address, use No-PAT or NAPT for
dynamic address translation. No-PAT is used in many-to-many address translation but does not
translate TCP/UDP port numbers. NAPT allows for many-to-one address translation by translating
also TCP/UDP port numbers.
Configuration prerequisites
Configure an ACL to specify IP addresses permitted to be translated. For more information about
ACL, see ACL and QoS Configuration Guide.
Determine whether to use an interface's IP address as the translated source address.
Determine a public IP address pool for address translation.
Determine whether to translate port information.
Configuring NAT address pools
You can configure NAT address pools in two ways:
Configure an address pool that consists of a set of consecutive addresses.
Configure an address group that can contain several members. Each member specifies an address
pool that consists of a set of consecutive addresses. The address pools of members might not be
consecutive.
The NAT device selects an IP address from a specified NAT address pool as the source address of a
packet.
To configure an address pool:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Configure an address
pool.
nat address-group group-number
start-address end-address
Address pools must not overlap.
To configure an address group: