--- title: "show layer2 forward" slug: "show-layer2-forward-3" tags: ["Product Usage", "IPS 11.1.x"] updated: 2026-11-19T12:27:39Z published: 2026-11-19T12:27:39Z canonical: "docs.trellix.com/show-layer2-forward-3" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # show layer2 forward 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 | | --- | --- | | | Shows all the port numbers(TCP,UDP) and VLAN IDs that are enabled for layer 2 forwarding | | | Shows all the TCP port numbers that are enabled for layer 2 forwarding | | | Shows all the UDP port numbers that are enabled for layer 2 forwarding | | | 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