The new docs.trellix.com features a modernized UI and AI-powered conversational search. Content is currently available in English, with additional languages launching in early November 2026. We hope you enjoy the updated experience.

show layer2 forward

Prev Next

This command shows all the TCP, UDP ports, and the VLAN IDs that are enabled for layer 2 forwarding.

Syntax:

show layer2 forward <all|tcp|udp|vlan>

Parameter

Description

<all>

Shows all the port numbers(TCP,UDP) and VLAN IDs that are enabled for layer 2 forwarding

<tcp>

Shows all the TCP port numbers that are enabled for layer 2 forwarding

<udp>

Shows all the UDP port numbers that are enabled for layer 2 forwarding

<vlan>

Shows all the VLAN IDs that are enabled for layer 2 forwarding

Sample Output:

intruShell@john> show layer2 forward all

TCP ports: 50

UDP ports:

VLAN Ids:

All :

g0/1-g0/2 :

g3/1-g3/2 :

g3/3-g3/4 :

g3/5-g3/6 :

g3/7-g3/8 :

Example:

The sample output above shows the show layer2 forward command used for showing all the port numbers (TCP,UDP) and vlan IDs that are enabled for layer 2 forwarding.

Applicable to:

NS-series Sensors