R2511-HP MSR Router Series Layer 3 - IP Services Command Reference(V5)

168
# Use addresses in address pool 1 as translated addresses and TCP/UDP port information.
[Sysname] interface serial 1/0
[Sysname-Serial1/0] nat outbound 2001 address-group 1
# Use addresses in address pool 1 as translated addresses without using TCP/UDP port information.
<Sysname> system-view
[Sysname] interface serial 1/0
[Sysname-Serial1/0] nat outbound 2001 address-group 1 no-pat
# Use the IP address of interface Serial 1/0 as translated address.
<Sysname> system-view
[Sysname] interface serial 1/0
[Sysname-Serial1/0] nat outbound 2001
# Enable reverse address translation and use addresses in address pool 1 as translated addresses.
<Sysname> system-view
[Sysname] interface serial 1/0
[Sysname-Serial1/0] nat outbound 2001 address-group 1 no-pat reversible
nat outbound static
Use nat outbound static to enable static NAT on an interface, making the configured static NAT
mappings take effect.
Use undo nat outbound static to disable static NAT on the interface.
Syntax
nat outbound static [ track vrrp virtual-router-id ]
undo nat outbound static [ track vrrp virtual-router-id ]
Views
Interface view
Default command level
2: System level
Parameters
track vrrp virtual-router-id: Associates static NAT with a VRRP group. The virtual-router-id argument
indicates the number of the VRRP group, in the range of 1 to 255. If this option is not specified, no VRRP
group is associated.
Examples
# Configure a one-to-one NAT mapping and enable static NAT on interface Serial 2/0.
<Sysname> system-view
[Sysname] nat static 192.168.1.1 2.2.2.2
[Sysname] interface serial 2/0
[Sysname-Serial2/0] nat outbound static
Related commands
display nat static