R3102-R3103-HP 6600/HSR6600 Routers Layer 3 - IP Services Command Reference
137
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: 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: 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: Length of the network mask.
mask: 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.
Examples
# Configure a net-to-net static NAT mapping: Internal network address is 192.168.1.0/24 that belongs to
VPN vpn10, and external network address is 10.1.1.0/24 that belongs to VPN vpn 20.
<Sysname> system-view
[Sysname] nat static net-to-net 192.168.1.0 vpn-instance vpn10 10.1.1.0 vpn-instance vpn20
24
Related commands
display nat static










