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}
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.

Set arguments

Argument

Description

ip

IP address with subnet prefix length (192.168.49.2/24)

status

Enable or disable the interface.

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}
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.

Set arguments

Argument

Description

ip

IP address with subnet prefix length (192.168.49.2/24)

status

Enable or disable the interface.