(Optional) Configuring Twice NAT
Context
If the external addresses of internal hosts overlap with addresses of external hosts, twice NAT can be configured. The overlapping addresses are replaced with temporary addresses and then translated by NAT so that the internal and external hosts can access each other.
- An overlapping address pool specifies which internal IP addresses can overlap with public IP addresses. Twice NAT is performed only on the addresses in the overlapping address pool.
- A temporary address pool specifies which temporary IP addresses can replace addresses in the overlapping address pool.
Procedure
- Run system-view
The system view is displayed.
- Run nat overlap-address map-index overlappool-startaddress temppool-startaddress pool-length length [ inside-vpn-instance inside-vpn-instance-name ]
The mapping between the overlapping address pool and the temporary address pool is configured.
NOTE:
- A maximum of 255 addresses can be configured in the overlapping address pool and the temporary address pool.
- When the VPN instance specified in the command is deleted, the configuration of twice NAT is also deleted.