Mapping of address ranges
The vRouter supports the mapping of an entire network of addresses to another network of addresses. This mapping means that you do not have to manually enter many NAT rules. For example, you can map the 10.0.0.0/24 network to the 22.214.171.124/24 network, which maps 10.0.0.1 through 126.96.36.199, 10.0.0.2 through 188.8.131.52, and so on. The networks must be the same size, that is, they must have the same network mask, as shown in the following figure.
To configure NAT in this way, perform the following steps in configuration mode.
Create SNAT rule 10.
Apply this rule to packets coming from any host on the 10.0.0.0/24 network and egressing through the dp0p1p1 interface.
Use 11.22.33.x as the source address in outgoing packets.
Create destination (DNAT) rule 10.
Apply this rule to packets destined for any host on the 184.108.40.206/24 network and ingressing through the dp0p1p1 interface.
Use 10.0.0.x as the destination address in incoming packets.
Commit the change.
Show the configuration.