● 交换机命令show interfaces type 0/port_# switchport|trunk用于显示中继连接的配置情况,下面
● 交换机命令show interfaces type 0/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的链路模式被设置为 (56) 状态,默认的VLAN是 (57) 。
(56)
A. Desirable
B. No-Negotiate
C. Auto negotiate
D. trunk
(57)
A. VLAN0
B. VLAN1
C. VLAN2
D. VLAN3