HP MSR2000/3000/4000 Router Series Layer 3 - IP Services Command Reference

160
Views
Interface view
Predefined user roles
network-admin
Usage guidelines
Static NAT mappings take effect on an interface only after static NAT is enabled on the interface.
Examples
# Configure an outbound static NAT mapping between internal IP address 192.168.1.1 and external IP
address 2.2.2.2, and enable static NAT on interface Ethernet 1/1.
<Sysname> system-view
[Sysname] nat static outbound 192.168.1.1 2.2.2.2
[Sysname] interface ethernet 1/1
[Sysname-Ethernet1/1] nat static enable
Related commands
display nat all
display nat static
nat static
nat static net-to-net
nat static inbound
Use nat static inbound to configure a one-to-one mapping for inbound static NAT.
Use undo nat static inbound to remove a one-to-one mapping for inbound static NAT.
Syntax
nat static inbound global-ip [ vpn-instance global-name ] local-ip [ vpn-instance local-name ] [ acl
acl-number [ reversible ] ]
undo nat static inbound global-ip [ vpn-instance global-name ]
Default
No NAT mapping exists.
Views
System view
Predefined user roles
network-admin
Parameters
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.
local-ip: Specifies an internal IP address.