Fortinet white logo
Fortinet white logo

Configuration commands

Configuration commands

The following configuration commands are available:

Command

Description

show

Show the bootstrap configuration, including the port IP address (IPv4 and IPv6), network mask, port MAC address, and default gateway. If the port is being used by a sniffer, it will not be displayed.

set

Set configuration parameters.

set admin-port <portx> Enable a new administrative port other than port1. It cannot be set to port3 or sniffer ports.
set api-port Set ports for API connection.
set date <date> Set system date, in the format of YYYY-MM-DD.
set default-gw <ip> Set the default gateway address.
set port3-speed [<auto> | <speed full|half>] Set port3 speed and duplex settings. The option port3-speed is not for FSA_VM.
set port-mtu <portx> <1200-9000> Set a port's MTU value.
set portX-ip <ip/netmask> Set the portX IP address in IP/netmask format. It can also set the address on aggregate ports.
set time <time> Set system time, in the format of HH:MM:SS.

unset

Unset the admin port or the default gateway:

  • unset admin-port
  • unset api-port
  • unset default-gw

Configuration commands

Configuration commands

The following configuration commands are available:

Command

Description

show

Show the bootstrap configuration, including the port IP address (IPv4 and IPv6), network mask, port MAC address, and default gateway. If the port is being used by a sniffer, it will not be displayed.

set

Set configuration parameters.

set admin-port <portx> Enable a new administrative port other than port1. It cannot be set to port3 or sniffer ports.
set api-port Set ports for API connection.
set date <date> Set system date, in the format of YYYY-MM-DD.
set default-gw <ip> Set the default gateway address.
set port3-speed [<auto> | <speed full|half>] Set port3 speed and duplex settings. The option port3-speed is not for FSA_VM.
set port-mtu <portx> <1200-9000> Set a port's MTU value.
set portX-ip <ip/netmask> Set the portX IP address in IP/netmask format. It can also set the address on aggregate ports.
set time <time> Set system time, in the format of HH:MM:SS.

unset

Unset the admin port or the default gateway:

  • unset admin-port
  • unset api-port
  • unset default-gw