R3303-HP HSR6800 Routers Layer 3 - IP Services Command Reference

Table Of Contents
138
global-ip: External IP address.
vpn-instance global-name: Specifies the VPN to which the external IP address belongs. The global-name
argument is a case-sensitive string of 1 to 31 characters. Without this option, the external IP address does
not belong to any VPN.
Examples
# Configure static NAT mapping between internal IP address 192.168.1.1 and external IP address
2.2.2.2.
<Sysname> system-view
[Sysname] nat static 192.168.1.1 2.2.2.2
Related commands
display nat static
nat static net-to-net
Use nat static net-to-net to configure a net-to-net static NAT mapping.
Use undo nat static net-to-net to remove a net-to-net static NAT mapping.
Syntax
nat static net-to-net local-ip-address [ vpn-instance local-name ] global-ip-address [ vpn-instance
global-name ] { mask-length | mask }
undo nat static net-to-net local-ip-address [ vpn-instance local-name ] global-ip-address [ vpn-instance
global-name ] { mask-length | mask }
Views
System view
Default command level
2: System level
Parameters
local-ip-address: Specifies the internal network address.
vpn-instance local-name: Specifies the MPLS L3VPN to which the internal network belongs. The
local-name argument is a case-sensitive string of 1 to 31 characters. Without this option, the internal
network does not belong to any VPN.
global-ip-address: Specifies the external network address.
vpn-instance global-name: Specifies the MPLS VPN to which the external network belongs. The
global-name argument is a case-sensitive string of 1 to 31 characters. Without this option, the external
network does not belong to any VPN.
mask-length: Specifies the length of the network mask.
mask: Specifies the network mask.
Usage guidelines
If a packet matches the specified outbound interface, it is translated according to the configured static
mapping. If not, the packet is not translated.