Configuring inbound net-to-net static NAT

For address translation from a public network to a private network, configure inbound net-to-net static NAT.

To configure inbound net-to-net static NAT:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Configure a net-to-net mapping for inbound static NAT.

nat static inbound net-to-net global-start-address global-end-address [ vpn-instance global-vpn-instance-name ] local local-network { mask-length | mask } [ vpn-instance local-vpn-instance-name ] [ acl { ipv4-acl-number | name ipv4-acl-name } [ reversible ] ] [ disable ]

By default, no mappings exist.

If you specify the acl keyword, NAT processes only packets permitted by the ACL.

3. Return to system view.

quit

N/A

4. Enter interface view.

interface interface-type interface-number

N/A

5. Enable static NAT on the interface.

nat static enable

By default, static NAT is disabled.