Fortinet white logo
Fortinet white logo

interface

interface

Configure system interface settings.

In a cloud environment, only status can be set.

Usage

config system interface
  edit <port>
    set ip <ip_address/netmask>
    set status {enable | disable}
    set ssh_allowlist <ip_address>,<ip_address>/<netmask>
end

Subcommands

Command

Description

abort

End and discard last config.

edit

Add or edit a table value.

help

List available commands or provide detailed help for a specific command.

show

show all table values.

Set arguments

Argument

Description

ip

IP address with subnet prefix length (192.168.49.2/24)

status

Enable or disable the interface.

ssh_allowlist

Specify the allowed IP addresses as a comma-separated list of IP addresses or IP addresses with a netmask. Default: 0.0.0.0.

interface

interface

Configure system interface settings.

In a cloud environment, only status can be set.

Usage

config system interface
  edit <port>
    set ip <ip_address/netmask>
    set status {enable | disable}
    set ssh_allowlist <ip_address>,<ip_address>/<netmask>
end

Subcommands

Command

Description

abort

End and discard last config.

edit

Add or edit a table value.

help

List available commands or provide detailed help for a specific command.

show

show all table values.

Set arguments

Argument

Description

ip

IP address with subnet prefix length (192.168.49.2/24)

status

Enable or disable the interface.

ssh_allowlist

Specify the allowed IP addresses as a comma-separated list of IP addresses or IP addresses with a netmask. Default: 0.0.0.0.