Fortinet black 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 allowaccess { ssh | https | icmp }
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 this port.

allowaccess

Allow the specified services access on this port, delimited by

comma.

Allowed values:

  • ssh

  • https

  • icmp

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 allowaccess { ssh | https | icmp }
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 this port.

allowaccess

Allow the specified services access on this port, delimited by

comma.

Allowed values:

  • ssh

  • https

  • icmp