好像都沒人回答
以樓主的這個lab來看
switch01 的F0/1 以及 switch02的 f0/23 是 trunk
再檢查看看吧
已做過
sh vlan
sh mac-address-table
sh switchport interface fa0/x
在書上有看到相關的
可是我兜不起來
請問是否有一個指令ex:no switchport 之類的要先下
no switchport是Layer 3 switch用的指令
意思是這個port當作路由使用
cisco 2950是Layer 2 switch
無法用這個指令
sh run 你就可以看到哪些port目前是 trunk
如果正常情況下 當你下了 sh vlan bri
你的 f0/1 以及 F0/23 不應該會顯示在 vlan清單裡面
補充一個 sh int F0/1 switchport 也可以看 port是否為 trunk
fa0/23確認沒成功
Enterprise_SW2#sh int fa0/23 switchport
Name: Fa0/23
Switchport: Enabled
Administrative Mode: dynamic auto
Operational Mode: down
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: native
Negotiation of Trunking: On
Access Mode VLAN: 3 (ENG)
Trunking Native Mode VLAN: 1 (default)
Voice VLAN: none
Administrative private-vlan host-association: none
Administrative private-vlan mapping: none
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk private VLANs: none
Operational private-vlan: none
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Capture Mode Disabled
Capture VLANs Allowed: ALL
Protected: false
Appliance trust: none
Enterprise_SW2#
Enterprise_SW2#
重裝fa0/23的vlan
Enterprise_SW2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Enterprise_SW2(config)#int fa0/23
Enterprise_SW2(config-if)#switchport access vlan 2
Enterprise_SW2#sh int fa0/23 switchport
Name: Fa0/23
Switchport: Enabled
Administrative Mode: dynamic auto
Operational Mode: down
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: native
Negotiation of Trunking: On
Access Mode VLAN: 2 (sales)
Trunking Native Mode VLAN: 1 (default)
Voice VLAN: none
Administrative private-vlan host-association: none
Administrative private-vlan mapping: none
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk private VLANs: none
Operational private-vlan: none
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Capture Mode Disabled
Capture VLANs Allowed: ALL
Protected: false
Appliance trust: none
Enterprise_SW2#
最後出現這個dynamic auto
這樣是表示沒失敗
還是...
因為用這個指令去show是有的
Enterprise_SW2#sh vlan brief
VLAN Name Status Ports
1 default active Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22
2 sales active Fa0/1, Fa0/2, Fa0/23
3 ENG active Fa0/3, Fa0/4
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
Enterprise_SW2#