nat command

This command sets and displays the network address table (NAT) settings for the specified I/O module.

Notes:
  1. If the nat command is directed to an I/O module that does not support the network address table, the "NAT configuration is not supported on this I/O module" message is returned.
  2. When setting values for an empty row in the network address table, all options must be specified together using a single command.
Table 1. nat command
Function What it does Command Valid targets
Display I/O-module network protocol settings Displays the network port settings for the specified I/O module. Returned values include those in Table 2. nat
                           -T system:switch[x]
                        

where x is the I/O-module bay number.

Reset I/O-module network protocol settings Resets all network address table settings for the specified I/O module to the default values. Default values are in Table 2.

You must activate any changes to the network protocol settings before they take effect.

nat -reset
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • I/O module configuration
See Commands and user authority for additional information.
                           -T system:switch[x]
                        

where x is the I/O-module bay number.

Activate I/O-module network protocol settings Activates all network port settings for the specified I/O module, putting them into effect. nat -activate
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • I/O module configuration
See Commands and user authority for additional information.
                           -T system:switch[x]
                        

where x is the I/O-module bay number.

Set protocol name for row in I/O-module NAT table Sets a protocol name for the specified row in the NAT table for the specified I/O module. nat - index -pn protocol_name

where:

  • index is a number from 1 to 10 that corresponds to a row in the NAT table.
  • protocol_name is a text string with a maximum length of 19 characters and no spaces.
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • I/O module configuration
See Commands and user authority for additional information.
                           -T system:switch[x]
                        

where x is the I/O-module bay number.

Set protocol ID for row in NAT table Sets a protocol ID for the specified row in the NAT table for the specified I/O module. nat - index -pi protocol_id

where:

  • index is a number from 1 to 10 that corresponds to a row in the NAT table.
  • protocol_id is TCP or UDP.
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • I/O module configuration
See Commands and user authority for additional information.
                           -T system:switch[x]
                        

where x is the I/O-module bay number.

Set internal port number for row in NAT table Sets the internal port number for the specified row in the NAT table for the specified I/O module. nat - index -ip port_number

where:

  • index is a number from 1 to 10 that corresponds to a row in the NAT table.
  • port_number is between 1 and 65534, inclusive.
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • I/O module configuration
See Commands and user authority for additional information.
                           -T system:switch[x]
                        

where x is the I/O-module bay number.

Set external port number for row in NAT table Sets the external port number for the specified row in the NAT table for the specified I/O module. nat - index -ep port_number

where:

  • index is a number from 1 to 10 that corresponds to a row in the NAT table.
  • port_number is between 1000 and 65534, inclusive.
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • I/O module configuration
See Commands and user authority for additional information.
                           -T system:switch[x]
                        

where x is the I/O-module bay number.

Set state for row in NAT table Enables or disables the specified row in the NAT table for the specified I/O module. nat - index -en state

where:

  • index is a number from 1 to 10 that corresponds to a row in the NAT table.
  • state is enabled or disabled.
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • I/O module configuration
See Commands and user authority for additional information.
                           -T system:switch[x]
                        

where x is the I/O-module bay number.

Table 2. Default NAT table values for nat command
Index Protocol Name Protocol ID Internal Port External Port State
1 HTTP TCP 80 1080 Enabled
2 TELNET TCP 23 1023 Enabled
3 HTTPS TCP 43 1043 Enabled
4 SSH TCP 22 1022 Enabled
5 SNMP UDP 161 1161 Enabled
6 through 10 Unset

Example:

To display network protocol settings for the I/O module in I/O-module bay 3, while I/O-module bay 3 is set as the persistent command environment, at the system:switch[3]> prompt, type
                  nat
               

The following example shows the information that is returned from this command:

               system:switch[3]> nat
Index   Protocol Name   Protocol ID   Internal Port   External Port   Enabled
1       HTTP            TCP           80              1080            enabled
2       TELNET          TCP           23              1023            enabled
3       HTTPS           TCP           43              1043            enabled
4       SSH             TCP           22              1022            enabled
5       SNMP            UDP           161             1161            enabled
system:switch[3]>