Fortinet white logo
Fortinet white logo

CLI Reference

config system switch-interface

config system switch-interface

Description: When the FortiExtender is in standalone mode, you can configure your switch interface settings.

When the FortiExtender is being managed from the FortiGate, you can view LAN extension settings synced from the FortiGate. You cannot configure these settings directly on the FortiExtender; you must make them through the FortiGate LAN extension profile first.

config system switch-interface
  edit <name>
    set vlan-support [enable | disable]
    config member 
      edit <name1> 
        set type [ aggregate | physical | vap]
        set port
        set vids {1-4089}
        set pvid {1-4089} 
      next
    end
    set stp [enable | disable]
  next
end

Sample syntax:

config system switch-interface
  edit le-switch
    set vlan-support enable
    config member
      edit port1 # access port
        set type physical
        set port port1
        set vids
        set pvid 101
      next
      edit port4 # access port
        set type physical
        set port port4
        set vids
        set pvid 102
      next
      edit le-agg-link # trunk port
        set type aggregate
        set port le-agg-link
        set vids 101 102
        set pvid 0
      next
    end
    set stp disable
  next
end
Parameter Description

Type

Size

Default

name The LAN port ID.

string

-

none

vlan-support

Enable/disable VLAN support.

option

-

config member

Interfaces within the virtual switch.

option

-

none

type

Interface type.

option

-

port

Interface within the virtual switch.

option

-

vap

Virtual Access Point, which must NOT be configured as a WLAN bridge, will be added as a member of the switch-interface.

option

-

vids

VLAN ID list.

integer

1 to 4089

pvid

Port VLAN ID.

integer

1 to 4089

stp

Spanning Tree Protocol.

option

-

disable

Option Description
enable Enable Spanning Tree Protocol.
disable Disable Spanning Tree Protocol.

config system switch-interface

config system switch-interface

Description: When the FortiExtender is in standalone mode, you can configure your switch interface settings.

When the FortiExtender is being managed from the FortiGate, you can view LAN extension settings synced from the FortiGate. You cannot configure these settings directly on the FortiExtender; you must make them through the FortiGate LAN extension profile first.

config system switch-interface
  edit <name>
    set vlan-support [enable | disable]
    config member 
      edit <name1> 
        set type [ aggregate | physical | vap]
        set port
        set vids {1-4089}
        set pvid {1-4089} 
      next
    end
    set stp [enable | disable]
  next
end

Sample syntax:

config system switch-interface
  edit le-switch
    set vlan-support enable
    config member
      edit port1 # access port
        set type physical
        set port port1
        set vids
        set pvid 101
      next
      edit port4 # access port
        set type physical
        set port port4
        set vids
        set pvid 102
      next
      edit le-agg-link # trunk port
        set type aggregate
        set port le-agg-link
        set vids 101 102
        set pvid 0
      next
    end
    set stp disable
  next
end
Parameter Description

Type

Size

Default

name The LAN port ID.

string

-

none

vlan-support

Enable/disable VLAN support.

option

-

config member

Interfaces within the virtual switch.

option

-

none

type

Interface type.

option

-

port

Interface within the virtual switch.

option

-

vap

Virtual Access Point, which must NOT be configured as a WLAN bridge, will be added as a member of the switch-interface.

option

-

vids

VLAN ID list.

integer

1 to 4089

pvid

Port VLAN ID.

integer

1 to 4089

stp

Spanning Tree Protocol.

option

-

disable

Option Description
enable Enable Spanning Tree Protocol.
disable Disable Spanning Tree Protocol.