交換機(jī)命令show interfaces type0/port_# switchport|trunk用于顯示中繼連接的配置情況,下面是顯示例子:
2950#show interface fastEthernet0/1 switchport
Name: fa0/1
Switchport: Enabled
Administrative mode: trunk
Operational Mode: trunk
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: dot1q
egotiation of Trunking: disabled
Access Mode VLAN: 0((inactive))
Trunking Native Mode VLAN: 1(default)
Trunking VLANs Enabled: all
Trunking VLANs active: 1,2
Pruning VLANs Enabled: 2-1001
Priority for untagged frames: 0
Override vlan tag priority: FALSE
Voice VLAN: none
在這個例子中,端口fa0/1的鏈路模式被設(shè)置為 (1) 狀態(tài),默認(rèn)的vlan是 (2) 。
(1)A、Desirable
B、No-Negoriate
C、Autonegotiate
D、trunk
(2)A、VLAN0
B、VLAN1
C、VLAN2
D、VLAN3