Switched interface configuration CLI commands
FortiGate-4000 Installation Guide 01-28004-0028-20040830 79
Port mirroring allows mirroring one port to another for network monitoring and
troubleshooting. Network packet analyzers can view traffic moving through the switch
interface by providing a copy of the traffic that is currently passed through any other
port. The packets are normally sent to a network monitoring device attached to the
mirrored port.
Example
Use the following command to mirror port 8 using ports 5 and 6.
pm 1 0x060
tv
Enable (1) or disable (0) VLAN tagging and set the VLAN tag for each port. Also,
enable (1) or disable (0) the default VLAN for each port.
tv <tag> {0 | 1} <member_hex> {0 | 1}
• <tag> is the VLAN tag and can be 1 to 4095
• <member_hex> is the bitmap for port 1 to 1fff (see bit mapping to port numbers
described for the pm command)
Example
Use the following commands to:
• Enable VLAN tagging for port 1, set the VLAN tag to 200 and disable the default
VLAN.
• Enable VLAN tagging for port 8 and set the VLAN tag to 300 and disable the
default VLAN.
tv 200 1 0x002 0
tv 300 1 0x100 0
m
Not used
s
Display port statistic data for any port.
s <port_no> {0 | 1}
Example
Use the following command to display port statistical data for port 9.
s 9 1
Note: A FortiGate-4000 with a switched interface module does not support VLANs.