Command:

show trunk

Mode:

Switch> (enable)


Syntax:

show trunk [mod_num[/port_num]] [detail]


Syntax Description:

mod_num

(Optional) Variable that specifies the number of the module.

/port_num

(Optional) Variable that specifies the number of the port.

detail

(Optional) Keyword that displays detailed information about the specified trunk port.


Command Description:

Use the show trunk command to display trunking information for the switch.

Using the show trunk command without a module or port number displays the actively trunking ports.

To display the trunking configuration for a port that is not actively trunking, specify the 

module and port number of the port you want to display.


Examples:

This example shows how to display trunking information for the switch:

Console> (enable) show trunk
* - indicates vtp domain mismatch
Port      Mode         Encapsulation  Status        Native vlan
--------  -----------  -------------  ------------  -----------
 2/1      auto         dot1q          trunking      1
 4/9      auto         isl            trunking      1
 4/10     desirable    isl            trunking      1

Port      Vlans allowed on trunk
--------  ---------------------------------------------------------------------
 2/1      1-1005

 4/9      1-1005
 4/10     1-1005
Port      Vlans allowed and active in management domain
--------  ---------------------------------------------------------------------
 2/1      1-5,10,50,152,500,521-524,570
 4/9      1,4-5,1003,1005
 4/10     1,4-5,1003,1005

Port      Vlans in spanning tree forwarding state and not pruned
--------  ---------------------------------------------------------------------
 2/1      1-5,10,50,152,500,521-524,570
 4/9      1005
 4/10     1005
Console> (enable)
 

This example shows how to display trunking information for a specific port:

Console> (enable) show trunk 4/5

* - indicates vtp domain mismatch

Port      Mode         Encapsulation  Status        Native vlan
--------  -----------  -------------  ------------  -----------
 4/5      nonegotiate  dot1q          trunking      1

Port      Vlans allowed on trunk
--------  ---------------------------------------------------------------------
 4/5      1-1005

Port      Vlans allowed and active in management domain
--------  ---------------------------------------------------------------------
 4/5      1-3,1003,1005

Port      Vlans in spanning tree forwarding state and not pruned
--------  ---------------------------------------------------------------------
 4/5      1005
Console> (enable)
 

The table below describes the fields in the show trunk command output.

Table: show trunk Command Output Fields

Field Description

Port

Module and port numbers

Mode

Trunk administrative status of the port (on, off, auto, or desirable)

Encapsulation

Trunking type configured by administration

Status

Status of whether the port is trunking or nontrunking

Native VLAN

Number of the native VLAN for the trunk link (for 802.1Q trunks, the VLAN for which untagged traffic can be transmitted and received over the trunk; for ISL trunks, packets are tagged on all VLANs, including the native VLAN).

Vlans allowed on trunk

Range of VLANs allowed to go on the trunk (default is 1 to 1000)

Vlans allowed and active in management domain

Range of active VLANs within the allowed range

Vlans in spanning tree forwarding state and not pruned

Range of VLANs that actually go on the trunk with Spanning Tree Protocol forwarding state


Misconceptions:
None

Related commands:
set trunk
clear trunk

� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)