




下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、本次講解vlan trunk配置方法:本例配置模型圖命令行:以下為switchA配置:Switch>Switch>enableSwitch#vlan database% Warning: It is recommended to configure VLAN from config mode, as VLAN database mode is being deprecated. Please consult user documentation for configuring VTP/VLAN in config mode.Switch(vlan)#vlan 2 name TztA
2、VLAN 2 added: Name: TztASwitch(vlan)#vlan 3 name TztBVLAN 3 added: Name: TztBSwitch(vlan)#exitAPPLY completed.Exiting.Switch#wrBuilding configuration.OKSwitch#config tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#int f0/1Switch(config-if)#sw mo acSwitch(config-if)#sw acc
3、 vlan 2Switch(config-if)#int f0/2Switch(config-if)#sw mo acSwitch(config-if)#sw acc vlan 3Switch(config-if)#exitSwitch(config)#exitSwitch#%SYS-5-CONFIG_I: Configured from console by consoleSwitch#show vlanVLAN Name Status Ports- - - -1 default active Fa0/3, Fa0/4, Fa0/5, Fa0/6 Fa0/7, Fa0/8, Fa0/9, F
4、a0/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 Fa0/23, Fa0/24, Gig1/1, Gig1/22 TztA active Fa0/13 TztB active Fa0/21002 fddi-default act/unsup 1003 token-ring-default act/unsup 1004 fddinet-default act/unsup 1005 trnet-default act/unsup VLAN Type S
5、AID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2- - - - - - - - - - -1 enet 100001 1500 - - - - - 0 02 enet 100002 1500 - - - - - 0 03 enet 100003 1500 - - - - - 0 01002 fddi 101002 1500 - - - - - 0 0 1003 tr 101003 1500 - - - - - 0 0 1004 fdnet 101004 1500 - - - ieee - 0 0 1005 trnet 10100
6、5 1500 - - - ibm - 0 0 Remote SPAN VLANs-Primary Secondary Type Ports- - - -Switch#wrBuilding configuration.OKSwitch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#int g1/1 /進(jìn)入端口g1/1配置vlan trunk模式Switch(config-if)#sw trunk encaSwitch(config-if)#sw trunk allowed vlan
7、 all /配置允許所有vlan通過switchASwitch(config-if)#exitSwitch(config)#exitSwitch#Switch#wr /保存已有配置Building configuration.OKSwitch#以下為switchB配置:Switch>enableSwitch#vlan database% Warning: It is recommended to configure VLAN from config mode, as VLAN database mode is being deprecated. Please consult user d
8、ocumentation for configuring VTP/VLAN in config mode.Switch(vlan)#vlan 2 name TztAVLAN 2 added: Name: TztASwitch(vlan)#vlan 3 name TztBVLAN 3 added: Name: TztBSwitch(vlan)#exitAPPLY completed.Exiting.Switch#config tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#int f0/1Sw
9、itch(config-if)#sw mo accSwitch(config-if)#sw acc vlan 2Switch(config-if)#int f0/2Switch(config-if)#sw mo accSwitch(config-if)#sw acc vlan 3Switch(config-if)#exitSwitch(config)#show vlan % Invalid input detected at '' marker.Switch(config)#exitSwitch#%SYS-5-CONFIG_I: Configured from console
10、by consoleSwitch#show vlan /顯示所有vlan配置信息VLAN Name Status Ports- - - -1 default active Fa0/3, Fa0/4, 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 Fa0/23, Fa0/24, Gig1/1, Gig1/22 TztA active Fa0/13 TztB active Fa0
11、/21002 fddi-default act/unsup 1003 token-ring-default act/unsup 1004 fddinet-default act/unsup 1005 trnet-default act/unsup VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2- - - - - - - - - - -1 enet 100001 1500 - - - - - 0 02 enet 100002 1500 - - - - - 0 03 enet 100003 1500 - -
12、- - - 0 01002 fddi 101002 1500 - - - - - 0 0 1003 tr 101003 1500 - - - - - 0 0 1004 fdnet 101004 1500 - - - ieee - 0 0 1005 trnet 101005 1500 - - - ibm - 0 0 Remote SPAN VLANs-Primary Secondary Type Ports- - - -Switch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#int g1/1Switch(config-if)#switchport mode trunkSwitch(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/1, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/1, changed state to upSwitch(config-if)#sw
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年鄆城幼兒面試試題及答案
- 6-甲?;?5-(三氟甲基)煙酸乙酯hplc
- 5年級(jí)下冊(cè)英語第4單元單詞跟讀
- 5年級(jí)上冊(cè)簡(jiǎn)易方程
- 4年級(jí)下冊(cè)日積月累1~8單元
- 地下建筑火災(zāi)案例
- 2025年云南旅游職業(yè)學(xué)院?jiǎn)握新殬I(yè)傾向性測(cè)試題庫帶答案
- 2025年天津?yàn)I海職業(yè)學(xué)院?jiǎn)握新殬I(yè)傾向性測(cè)試題庫完美版
- 2025年南充文化旅游職業(yè)學(xué)院?jiǎn)握新殬I(yè)技能測(cè)試題庫及答案1套
- 2025年重慶資源與環(huán)境保護(hù)職業(yè)學(xué)院?jiǎn)握新殬I(yè)技能測(cè)試題庫1套
- 人教版三年級(jí)下冊(cè)品社不一樣的你我他公開課獲獎(jiǎng)?wù)n件百校聯(lián)賽一等獎(jiǎng)?wù)n件
- 結(jié)構(gòu)化思維培訓(xùn)
- 2025年湖南安全技術(shù)職業(yè)學(xué)院?jiǎn)握新殬I(yè)技能測(cè)試題庫必考題
- 社會(huì)福利 課件全套 高和榮 第1-11章 緒論-社會(huì)福利的挑戰(zhàn)
- 食品采購員工工作計(jì)劃
- EPC工程項(xiàng)目建設(shè)管理機(jī)構(gòu)及權(quán)力職責(zé)
- 2024年林芝地區(qū)人民醫(yī)院高層次衛(wèi)技人才招聘筆試歷年參考題庫頻考點(diǎn)附帶答案
- 2025年全國(guó)國(guó)家版圖知識(shí)測(cè)試競(jìng)賽題庫(附答案)
- 旅游學(xué)概論-旅游產(chǎn)品和旅游市場(chǎng)
- 2024年居間業(yè)務(wù)收費(fèi)標(biāo)準(zhǔn)最高限額合同
- 河南省“極飛杯”無人機(jī)應(yīng)用技術(shù)技能大賽-無人機(jī)植保應(yīng)用-技術(shù)文件
評(píng)論
0/150
提交評(píng)論