Fortinet Document Library

Version:


Table of Contents

CLI Reference

6.2.1
Copy Link

Configure virtual hardware switch interfaces.

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

config system virtual-switch

Parameter Name Description Type Size
physical-switch Physical switch parent. string Maximum length: 15
vlan VLAN. integer Minimum value: 0 Maximum value: 4294967295
span Enable/disable SPAN.
disable: Disable SPAN.
enable: Enable SPAN.
option -
span-source-port SPAN source ports. string Maximum length: 15
span-dest-port SPAN destination port. string Maximum length: 15
span-direction SPAN direction.
rx: Span receive direction only.
tx: Span transmit direction only.
both: Span both directions.
option -

config port

Parameter Name Description Type Size
speed Interface speed.
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.
option -
status Interface status.
up: Interface up.
down: Interface down.
option -
alias Alias. string Maximum length: 25
poe Enable/disable PoE status.
enable: Enable PoE status.
disable: Disable PoE status.
option -

Configure virtual hardware switch interfaces.

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

config system virtual-switch

Parameter Name Description Type Size
physical-switch Physical switch parent. string Maximum length: 15
vlan VLAN. integer Minimum value: 0 Maximum value: 4294967295
span Enable/disable SPAN.
disable: Disable SPAN.
enable: Enable SPAN.
option -
span-source-port SPAN source ports. string Maximum length: 15
span-dest-port SPAN destination port. string Maximum length: 15
span-direction SPAN direction.
rx: Span receive direction only.
tx: Span transmit direction only.
both: Span both directions.
option -

config port

Parameter Name Description Type Size
speed Interface speed.
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.
option -
status Interface status.
up: Interface up.
down: Interface down.
option -
alias Alias. string Maximum length: 25
poe Enable/disable PoE status.
enable: Enable PoE status.
disable: Disable PoE status.
option -