Fortinet black logo

set

set

Set configuration parameters.

Syntax

set <admin-port>

set <api-port>

set <date>

set <default-gw>

set <port3-speed> <auto| <speed {full|half}]

set <port-mtu> <portx> <1200-9000>

set <portX-ip> <ip/netmask>

set <time>

Attribute

Value

Description

Example

admin-port

portx

Enable a new administrative port other than port1. This cannot be set to port3 or sniffer ports.

admin-port port2

api-port

portx

Set ports for API connection.

api-port port2

date

date

Set system date, in the format of YYYY-MM-DD.

date 2023-10-31

default-gw

ip

Set the default gateway address.

default-gw 1.2.3.4

port3-speed

auto

speed {full|half}

Set port3 speed and duplex settings. The option port3-speed is not supported on FSA_VM.

port3-speed 1000 full, port3-speed auto

port-mtu

<portx> <1200-9000>

Set a port's MTU value.

port-mtu port1 1200

portX-ip

<ip/netmask>

Set the portX IP address in IP/netmask format. This can also set the address on aggregate ports.

port1-ip 1.2.3.4/24

port2-ip 1.2.3.4/24

time

<time>

Set system time, in the format of HH:MM:SS.

time 12:00:00

set

Set configuration parameters.

Syntax

set <admin-port>

set <api-port>

set <date>

set <default-gw>

set <port3-speed> <auto| <speed {full|half}]

set <port-mtu> <portx> <1200-9000>

set <portX-ip> <ip/netmask>

set <time>

Attribute

Value

Description

Example

admin-port

portx

Enable a new administrative port other than port1. This cannot be set to port3 or sniffer ports.

admin-port port2

api-port

portx

Set ports for API connection.

api-port port2

date

date

Set system date, in the format of YYYY-MM-DD.

date 2023-10-31

default-gw

ip

Set the default gateway address.

default-gw 1.2.3.4

port3-speed

auto

speed {full|half}

Set port3 speed and duplex settings. The option port3-speed is not supported on FSA_VM.

port3-speed 1000 full, port3-speed auto

port-mtu

<portx> <1200-9000>

Set a port's MTU value.

port-mtu port1 1200

portX-ip

<ip/netmask>

Set the portX IP address in IP/netmask format. This can also set the address on aggregate ports.

port1-ip 1.2.3.4/24

port2-ip 1.2.3.4/24

time

<time>

Set system time, in the format of HH:MM:SS.

time 12:00:00