Skip to main content
ITGEMINI
New Member
Feb 5, 2025 7:18 PM UTC
Question

SPAN (Port Mirror)

Unable to create a span session under a vlan switch in fortios 7.2.8

15 replies

Toshi_Esumi
SuperUser
SuperUser
Feb 5, 2025 7:31 PM UTC

Please share us your config under "config system virtual-switch"(hard-switch) or "config system switch-interface"(soft-switch), whichever you configured.

Toshi

ITGEMINI
ITGEMINIAuthor
New Member
Feb 5, 2025 7:41 PM UTC

config system virtual-switch
edit "lan"
set physical-switch "sw0"
config port
edit "port1"
next
edit "port8"
next
end
next
end

Toshi_Esumi
SuperUser
SuperUser
Feb 5, 2025 7:43 PM UTC
ITGEMINI
ITGEMINIAuthor
New Member
Feb 5, 2025 7:46 PM UTC

it tried here is the command and response

 

min-201G (virtual-switch) # edit "lan"

Admin-201G (lan) # set span enable

command parse error before 'span'
Command fail. Return code -61

Admin-201G (lan) #

Toshi_Esumi
SuperUser
SuperUser
Feb 5, 2025 7:56 PM UTC

Maybe G series has different command or not supported yet? Does anyone else know?

Toshi

ITGEMINI
ITGEMINIAuthor
New Member
Feb 5, 2025 8:10 PM UTC

it appears that through the gui it will not allow span on vlan switches only.

Toshi_Esumi
SuperUser
SuperUser
Feb 5, 2025 8:26 PM UTC

The 7.2.10 CLI referece says "* This parameter may not exist in some models." 

https://docs.fortinet.com/document/fortigate/7.2.10/cli-reference/101854390/config-system-virtual-switch

Toshi

ITGEMINI
ITGEMINIAuthor
New Member
Feb 5, 2025 8:28 PM UTC

it works under a virtual switch but not under the vlan switch.

Toshi_Esumi
SuperUser
SuperUser
Feb 5, 2025 8:32 PM UTC

You're talking about GUI, right? Can you check the CLI under config sys virtual-switch when you configured it in GUI under VLAN switch?
The CLI part should be the same between VLAN switch and hard-switch (virtual-switch).

Toshi

ITGEMINI
ITGEMINIAuthor
New Member
Feb 5, 2025 8:35 PM UTC

what i sent early was the cli for the virtual switch that the vlan switch is set up under.

Toshi_Esumi
SuperUser
SuperUser
Feb 5, 2025 8:38 PM UTC

Ok, then it must be configured at a different place. Can you get in CLI at the top hierarchy, then run "show | grep -f span"?
That would show you the config block that has "span" configured.

Toshi

ITGEMINI
ITGEMINIAuthor
New Member
Feb 5, 2025 8:39 PM UTC

Admin-201G # show | grep -f span
config switch-controller initial-config template
edit "rspan" <---
set vlanid 4092
set dhcp-server enable
next
end

Toshi_Esumi
SuperUser
SuperUser
Feb 5, 2025 8:41 PM UTC

That's just a FortiSwitch config template. So it's not configured anywhere even you can configure it in GUI.

 

Toshi

Toshi_Esumi
SuperUser
SuperUser
Feb 5, 2025 8:43 PM UTC

You might need to open a ticket at TAC to get any definitive answer.

Toshi

Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT