iT邦幫忙

0

關於trunk的下一步

  • 分享至 

  • xImage


請大家幫忙,
關於trunk的下一步該如何設定ex黃色區塊,
目前我只會將所有的vlan設完,
然後再到switch1的fa0/1與switch2的fa/23,
分別設置switch1(config-if)#switchport mode trunk
switch1(config-if)#switchport trunk native vlan 2
是否有少設了什麼指令,
總覺得怪怪的...

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

6
jazozazo
iT邦高手 1 級 ‧ 2012-09-28 09:08:01
最佳解答

好像都沒人回答
以樓主的這個lab來看
switch01 的F0/1 以及 switch02的 f0/23 是 trunk
再檢查看看吧

看更多先前的回應...收起先前的回應...
zz0123q iT邦新手 5 級 ‧ 2012-09-28 11:40:41 檢舉

已做過
sh vlan
sh mac-address-table
sh switchport interface fa0/x
在書上有看到相關的
可是我兜不起來
請問是否有一個指令ex:no switchport 之類的要先下

tn11428 iT邦新手 4 級 ‧ 2012-09-28 11:45:04 檢舉

no switchport是Layer 3 switch用的指令
意思是這個port當作路由使用
cisco 2950是Layer 2 switch
無法用這個指令

jazozazo iT邦高手 1 級 ‧ 2012-09-28 11:51:18 檢舉

sh run 你就可以看到哪些port目前是 trunk
如果正常情況下 當你下了 sh vlan bri
你的 f0/1 以及 F0/23 不應該會顯示在 vlan清單裡面

jazozazo iT邦高手 1 級 ‧ 2012-09-28 12:02:39 檢舉

補充一個 sh int F0/1 switchport 也可以看 port是否為 trunk

zz0123q iT邦新手 5 級 ‧ 2012-09-28 13:57:52 檢舉

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#

zz0123q iT邦新手 5 級 ‧ 2012-09-28 13:59:58 檢舉

重裝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

zz0123q iT邦新手 5 級 ‧ 2012-09-28 14:00: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: 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#

zz0123q iT邦新手 5 級 ‧ 2012-09-28 14:02:46 檢舉

最後出現這個dynamic auto
這樣是表示沒失敗
還是...

zz0123q iT邦新手 5 級 ‧ 2012-09-28 14:04:55 檢舉

因為用這個指令去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#

我要發表回答

立即登入回答