Fortinet black logo

CLI Reference

config system virtual-switch

config system virtual-switch

Note

This command is available for model(s): FortiGate 100D, FortiGate 100EF, FortiGate 100E, FortiGate 100F, FortiGate 101E, FortiGate 101F, FortiGate 140D-POE, FortiGate 140D, FortiGate 140E-POE, FortiGate 140E, FortiGate 300E, FortiGate 301E, FortiGate 30E 3G4G GBL, FortiGate 30E 3G4G INTL, FortiGate 30E 3G4G NAM, FortiGate 30E, FortiGate 3800D, FortiGate 40F 3G4G, FortiGate 40F, FortiGate 50E, FortiGate 51E, FortiGate 52E, FortiGate 60E DSL, FortiGate 60E-POE, FortiGate 60E, FortiGate 60F, FortiGate 61E, FortiGate 61F, FortiGate 80E-POE, FortiGate 80E, FortiGate 80F Bypass, FortiGate 80F-POE, FortiGate 80F, FortiGate 81E-POE, FortiGate 81E, FortiGate 81F-POE, FortiGate 81F, FortiGate 90E, FortiGate 91E, FortiGate 92D, FortiGateRugged 30D, FortiGateRugged 60F 3G4G, FortiGateRugged 60F, FortiWiFi 30E 3G4G INTL, FortiWiFi 30E 3G4G NAM, FortiWiFi 30E, FortiWiFi 40F 3G4G, FortiWiFi 40F, FortiWiFi 50E 2R, FortiWiFi 50E, FortiWiFi 51E, FortiWiFi 60E DSL, FortiWiFi 60E, FortiWiFi 61E, FortiWiFi 61F, FortiWiFi 80F 2R, FortiWiFi 81F 2R-POE, FortiWiFi 81F 2R.

It is not available for: FortiGate 1000D, FortiGate 1100E, FortiGate 1101E, FortiGate 1200D, FortiGate 1500DT, FortiGate 1500D, FortiGate 2000E, FortiGate 200E, FortiGate 201E, FortiGate 2200E, FortiGate 2201E, FortiGate 2500E, FortiGate 3000D, FortiGate 3100D, FortiGate 3200D, FortiGate 3300E, FortiGate 3301E, FortiGate 3400E, FortiGate 3401E, FortiGate 3600E, FortiGate 3601E, FortiGate 3700D, FortiGate 3810D, FortiGate 3815D, FortiGate 3960E, FortiGate 3980E, FortiGate 400D, FortiGate 400E Bypass, FortiGate 400E, FortiGate 401E, FortiGate 5001D, FortiGate 5001E1, FortiGate 5001E, FortiGate 500D, FortiGate 500E, FortiGate 501E, FortiGate 600D, FortiGate 600E, FortiGate 601E, FortiGate 800D, FortiGate 900D, FortiGate VM64, FortiGateRugged 90D.

Configure virtual hardware switch interfaces.

config system virtual-switch
    Description: Configure virtual hardware switch interfaces.
    edit <name>
        set physical-switch {string}
        config port
            Description: Configure member ports.
            edit <name>
                set speed [auto|10full|...]
                set status [up|down]
                set alias {string}
            next
        end
        set qos [none|802.1p]
        set span [disable|enable]
        set span-dest-port {string}
        set span-direction [rx|tx|...]
        set span-source-port {string}
        set vlan {integer}
    next
end

config system virtual-switch

Parameter

Description

Type

Size

name

Name of the virtual switch.

string

Maximum length: 15

physical-switch

Physical switch parent.

string

Maximum length: 15

qos *

set QOS none or 8021p

option

-

Option

Description

none

Disable QOS

802.1p

Enable QOS 802.1p

span

Enable/disable SPAN.

option

-

Option

Description

disable

Disable SPAN.

enable

Enable SPAN.

span-dest-port

SPAN destination port.

string

Maximum length: 15

span-direction

SPAN direction.

option

-

Option

Description

rx

Span receive direction only.

tx

Span transmit direction only.

both

Span both directions.

span-source-port

SPAN source ports.

string

Maximum length: 15

vlan *

VLAN.

integer

Minimum value: 0 Maximum value: 4294967295

* This parameter may not exist in some models.

config port

Parameter

Description

Type

Size

name

Physical interface name.

string

Maximum length: 15

speed

Interface speed.

option

-

Option

Description

auto

Automatically adjust speed.

10full

10M full-duplex.

10half

10M half-duplex.

100full

100M full-duplex.

100half

100M half-duplex.

1000full

1000M full-duplex.

1000half

1000M half-duplex.

1000auto

1000M auto adjust.

status

Interface status.

option

-

Option

Description

up

Interface up.

down

Interface down.

alias

Alias.

string

Maximum length: 25

config system virtual-switch

Note

This command is available for model(s): FortiGate 100D, FortiGate 100EF, FortiGate 100E, FortiGate 100F, FortiGate 101E, FortiGate 101F, FortiGate 140D-POE, FortiGate 140D, FortiGate 140E-POE, FortiGate 140E, FortiGate 300E, FortiGate 301E, FortiGate 30E 3G4G GBL, FortiGate 30E 3G4G INTL, FortiGate 30E 3G4G NAM, FortiGate 30E, FortiGate 3800D, FortiGate 40F 3G4G, FortiGate 40F, FortiGate 50E, FortiGate 51E, FortiGate 52E, FortiGate 60E DSL, FortiGate 60E-POE, FortiGate 60E, FortiGate 60F, FortiGate 61E, FortiGate 61F, FortiGate 80E-POE, FortiGate 80E, FortiGate 80F Bypass, FortiGate 80F-POE, FortiGate 80F, FortiGate 81E-POE, FortiGate 81E, FortiGate 81F-POE, FortiGate 81F, FortiGate 90E, FortiGate 91E, FortiGate 92D, FortiGateRugged 30D, FortiGateRugged 60F 3G4G, FortiGateRugged 60F, FortiWiFi 30E 3G4G INTL, FortiWiFi 30E 3G4G NAM, FortiWiFi 30E, FortiWiFi 40F 3G4G, FortiWiFi 40F, FortiWiFi 50E 2R, FortiWiFi 50E, FortiWiFi 51E, FortiWiFi 60E DSL, FortiWiFi 60E, FortiWiFi 61E, FortiWiFi 61F, FortiWiFi 80F 2R, FortiWiFi 81F 2R-POE, FortiWiFi 81F 2R.

It is not available for: FortiGate 1000D, FortiGate 1100E, FortiGate 1101E, FortiGate 1200D, FortiGate 1500DT, FortiGate 1500D, FortiGate 2000E, FortiGate 200E, FortiGate 201E, FortiGate 2200E, FortiGate 2201E, FortiGate 2500E, FortiGate 3000D, FortiGate 3100D, FortiGate 3200D, FortiGate 3300E, FortiGate 3301E, FortiGate 3400E, FortiGate 3401E, FortiGate 3600E, FortiGate 3601E, FortiGate 3700D, FortiGate 3810D, FortiGate 3815D, FortiGate 3960E, FortiGate 3980E, FortiGate 400D, FortiGate 400E Bypass, FortiGate 400E, FortiGate 401E, FortiGate 5001D, FortiGate 5001E1, FortiGate 5001E, FortiGate 500D, FortiGate 500E, FortiGate 501E, FortiGate 600D, FortiGate 600E, FortiGate 601E, FortiGate 800D, FortiGate 900D, FortiGate VM64, FortiGateRugged 90D.

Configure virtual hardware switch interfaces.

config system virtual-switch
    Description: Configure virtual hardware switch interfaces.
    edit <name>
        set physical-switch {string}
        config port
            Description: Configure member ports.
            edit <name>
                set speed [auto|10full|...]
                set status [up|down]
                set alias {string}
            next
        end
        set qos [none|802.1p]
        set span [disable|enable]
        set span-dest-port {string}
        set span-direction [rx|tx|...]
        set span-source-port {string}
        set vlan {integer}
    next
end

config system virtual-switch

Parameter

Description

Type

Size

name

Name of the virtual switch.

string

Maximum length: 15

physical-switch

Physical switch parent.

string

Maximum length: 15

qos *

set QOS none or 8021p

option

-

Option

Description

none

Disable QOS

802.1p

Enable QOS 802.1p

span

Enable/disable SPAN.

option

-

Option

Description

disable

Disable SPAN.

enable

Enable SPAN.

span-dest-port

SPAN destination port.

string

Maximum length: 15

span-direction

SPAN direction.

option

-

Option

Description

rx

Span receive direction only.

tx

Span transmit direction only.

both

Span both directions.

span-source-port

SPAN source ports.

string

Maximum length: 15

vlan *

VLAN.

integer

Minimum value: 0 Maximum value: 4294967295

* This parameter may not exist in some models.

config port

Parameter

Description

Type

Size

name

Physical interface name.

string

Maximum length: 15

speed

Interface speed.

option

-

Option

Description

auto

Automatically adjust speed.

10full

10M full-duplex.

10half

10M half-duplex.

100full

100M full-duplex.

100half

100M half-duplex.

1000full

1000M full-duplex.

1000half

1000M half-duplex.

1000auto

1000M auto adjust.

status

Interface status.

option

-

Option

Description

up

Interface up.

down

Interface down.

alias

Alias.

string

Maximum length: 25