F3215-HP Load Balancing Module Network Management Command Reference-6PW101
117
<Sysname> system-view
[Sysname] nat static 192.168.1.1 2.2.2.2
# Configure static NAT to allow the internal host 192.168.1.1 to access only the external network
3.3.3.0/24 by using the external IP address 2.2.2.2.
<Sysname> system-view
[Sysname] acl number 3001
[Sysname-acl-adv-3001] rule permit ip destination 3.3.3.0 0.0.0.255
[Sysname-acl-adv-3001] quit
[Sysname] nat static 3001 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 [ acl-number ] net-to-net local-network [ vpn-instance local-name ] global-network
[ vpn-instance global-name ] { mask-length | mask }
undo nat static [ acl-number ] net-to-net local-network [ vpn-instance local-name ] global-network
[ vpn-instance global-name ] { mask-length | mask }
Views
System view
Default command level
2: System level
Parameters
acl-number: ACL number in the range of 2000 to 3999. You can use an ACL to control the access traffic
between internal and external hosts. Only hosts permitted by an ACL can be performed static NAT.
local-network: Internal network address.
vpn-instance local-name: Specifies the VPN 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-network: External network address.
vpn-instance global-name: Specifies the 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.
Examples
# Configure a bidirectional static NAT mapping between internal network address 192.168.1.0/24 and
external network address 2.2.2.0/24.
<Sysname> system-view