Configure Address and Port Information
The
poolstatement defines the address and port used for network address translation. To configure the address information, include thepoolstatement at the[edit services nat]hierarchy level:[edit services nat]poolnat-pool-name{address (address| address-range lowminimum-valuehighmaximum-value);port (automatic | range lowminimum-valuehighmaximum-value);}You can specify either a single specific address, a prefix, or an address range. To specify translated addresses, configure the
poolstatement with an identifier and include theaddressstatement with the address, prefix, or range used in network address translation. You must configure either a specificaddressvalue or theaddress-rangeboundaries:
- If you specify a specific address, it is assumed the translated address belongs to the
inet.0routing instance. The following addresses cannot be used:
0.0.0.0./32127.0.0.0/8(loopback)224.0.0.0./4(multicast)240.0.0.0/4(reserved)255.255.255.255(broadcast)
- To specify an address range, include the
address address-rangelowminimum-valuehighmaximum-valuestatement at the [edit services nat poolnat-pool-name] hierarchy level. Thelowvalue must be a lower number than thehighvalue. Address ranges are limited to a maximum of 32 addresses.- The
portstatement specifies port assignment for the translated addresses. To configure automatic assignment of ports, include theport automaticstatement at the [edit services nat poolnat-pool-name] hierarchy level. To configure a specific range of port numbers, include theport range lowminimum-valuehighmaximum-valuestatement at the [edit services nat poolnat-pool-name] hierarchy level.