




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
湖南師范大學(xué)工程與設(shè)計學(xué)院實驗考核試題(A卷)
課程:《計算機(jī)網(wǎng)絡(luò)》實驗班級:計算機(jī)科學(xué)與技術(shù)
一、試題要求:
1.制作網(wǎng)線,并根據(jù)拓?fù)鋱D連接設(shè)備;
2.在路由器的相應(yīng)端口設(shè)置合適的IP地址,實現(xiàn)兩個路由器間的通信;
3.在三層交換機(jī)上開啟路由功能,并為相應(yīng)端口設(shè)置合適IP地址,完成三層
交換機(jī)與路由器間通信;
4.在二層交換機(jī)上設(shè)置相應(yīng)VLAN,并劃分相應(yīng)端口到相應(yīng)的VLAN中,實現(xiàn)廣
播流量隔離;
5.在三層交換機(jī)上設(shè)置相應(yīng)的SVI,并在二層與三層交換機(jī)上相應(yīng)端口設(shè)置
Trunk鏈路,利用三層交換機(jī)實現(xiàn)不同VLAN間通信;
6.在路由器上開啟RIP路由協(xié)議,實現(xiàn)各PC端的互連互通。
路由器(R2)路由器(R1)
二、評分標(biāo)準(zhǔn):
1.能夠根據(jù)實驗要求,小組成員相互配合、獨(dú)立完成實驗。
2.實驗過程:網(wǎng)絡(luò)制作正常、設(shè)備連接、網(wǎng)絡(luò)配置正確、合適。
3.實驗文檔中的設(shè)備配置信息準(zhǔn)確、測試信息正常。
MultilayeiSwitch2
湖南師范大學(xué)工程與設(shè)計學(xué)院實驗考核
實驗課程《計算機(jī)網(wǎng)絡(luò)》學(xué)生姓名張洪林
年級專業(yè)2015計算機(jī)學(xué)號201530185031
配置清單(給出上機(jī)實驗時所編寫程序清單):
loopback10.10.30.1/2410.10.10.2/30loopback10.10.20.1/24
192.168.1.2/30F0/1841
184192.168.2.2/30F0/1
RouterORouter
192.168.1.1/30F0/1192.168.2.1/30F0/2
vlanlO192.168.10.1/24vlan30192.168.30.1/24
vlan20192.168.20.1/24vlan40192.168.40.1/24
truiJcF0/235-24PS3560t4PSF0/1tnmlc
MultilerSwitchO
網(wǎng)絡(luò)一
網(wǎng)絡(luò)二
trunkF0/1J
F0/3trurJc
F0/2/郡呼F0/3
/Switch、
F0/150鼻F0/2
Switch1
vlanlOvlan20
192.168.10.10/24192.168.40.40/24
192.168.20,20/24192.168.30.30/24
Laptop-PTLaptop-PT
Laptop-PTLaptop-PT
LaptopOLaptopl
Laptop2Laptop3
網(wǎng)絡(luò)拓補(bǔ)圖
網(wǎng)絡(luò)一:
1、在二層交換機(jī)上配置相應(yīng)的vlan,并把端口劃分到相應(yīng)vlan中去
Switch〉
SwitchA
Switch>enable
Suitch#configureterminal
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
Switch(config)#vlan10
Switch(config-vlan)tnamecescl
Switch(config-vlan)texic
Switch(config)tvlan20
Swirch(config-vlan)tnametesc2
Switch(config-vlan)texic
Switch(config)tend
Switch#
%SYS-S-CONFIG_I:Configuzedfromconsolebyconsole
Switch*showvlan
VLANNameStatusPorta
1defaultactiveFa0/l,FaO/2rFa0/3rFaO/4
FaO/SfFa0/6rFaO/7,FaO/8
FaO/9,FaO/10,Fa0/llrFaO/12
FaO/13,FaO/14,FaO/15,FaO/16
FaO/17,Fa0/18rFaO/19,Fa0/20
Fa0/21rFa0/22rFaO/23,FaO/24
10testlactive
20rest2acxive
1002fddi-defaultact/unsup
1cc?tclran-b"inc-亡acT八,not,r?
Switch(config)texit
%SYS-5-CONFIG_I:Configuredfromconsolebyconsole
Switchtconfigureterminal
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
Switch(config)finterfacefastethernet0/2
Switch(config-if)tswitchportaccessvlan10
Switch(config-if)texit;
Switch(config)
Switch*
%SYS-5-CONFIG_I:Configuredfromconsolebyconsole
Switch#configureterminal
Enterconfigurationcommandsroneperline.EndwithCNTL/2.
Switch(config)tinterfacefasteenthemet0/3
%Invalidinputdetectedaz1**marker.
Switch(config)tinterfacefastethernet0/3
Switch(config-if)tswitchportaccessvlan20
Switch(config-if)*exic
Switch(config)#exit
Switch#
%SYS-S-CONFIG_I:Configuredfromconsolebyconsole
Switch#showvlan
VLANNameStatusPorts
1defaultactiveFa0/lrFaO/4,Fa0/5rFaO/6
FaO/7,FaO/8,FaO/9,Fa0/10
FaO/11,Fa0/12rFa0/13rFaO/14
FaO/15,Fa0/16rFa0/17rFaO/18
Fa0/19rFa0/20rFa0/21rFaO/22
Fa0/23rFaO/24
10testlactiveFaO/2
20zesz2activeFaO/3
2、在三層交換機(jī)上配置svi(vlanlO>vlan20),并設(shè)置相應(yīng)ip,在三層與二層交換機(jī)上設(shè)
置turnk,并為pc設(shè)置網(wǎng)關(guān)。
Switch(config)acevlan10
%LINK-5-CHANGED:InterfaceVlanlO,changedstatetoup
%LINEPROTO-S-UPDOWN:LineprotocolonInterfaceVlanlO,changedstatetoup
Switch(config-if)tipadd192.168.10.125S.2SS.25S.0
Switch(config-if)texit
Switch(config)#int;erfacevlan20
%LINK-5-CHANGED:InterfaceVlan20,changedstatetoup
%LIN£P(guān)ROTO-5-UPDOWN:LineprotocolonInterfaceVlan20,changedstatetoup
Switch(config-if)tipadd192.168.20.1255.255.2S5.0
Switch(config-if)#exit
Switch(config)fexit
Switch#
%SYS-5-CONFIG_I:Configuredfromconsolebyconsole
Switch#
Switch#configureterminal
Enterconfigurationcommandsroneperline.EndwithCNTL/Z.
Switch(config)tinterfaceFa3tEthemet0/2
Switch(config-if)fswitchportmodetrunk
Switch(config-if)texit
Switch(config)t
Switch(config)tinterfaceFastEthernetO/1
Switch(config-if)tswitchportmodetrunk
%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernetO/lrchangedszazez
odown
%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernetO/lfchangedstatez
oup
Switch(config-if)texit
Switch(config)texit
3、三層交換機(jī)關(guān)閉交換功能并配置ipo
Switch#
Switch#configureterminal
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
Switch(config)finterfaceFaatEthernetO/2
Switch(config-if)fawitchportmodetrunk
Switch(config-if)#exit
Switch(config)#
Switch(config)tinterfaceFaatEthernetO/l
Switch(config-if)#noswitchport
Switch(config-if)tipaddress192.168.1.12SS.2SS.2S5.2S2
Switch(config-if)#exit
Switch(config)t
網(wǎng)絡(luò)二:
1、在二層交換機(jī)上配置相應(yīng)的vlan,并把端口劃分到相應(yīng)vlan中去
Switch〉
Switch>enable
Switchtconfigureterminal
Enterconfigurationcommandsroneperline.EndwithCNTL/Z.
Switch(config)#vlan30
Switch(config-vlan)#nametest3
Switch(config-vlan)#exit
Switch(config)#vlan40
Switch(config-vlan)#name
Switch(config-vlan)texir
Switch(config)tend
Switch#
%SYS-5-CONFIG__I:Configuredfromconsolebyconsole
Switch#showvlan
VLANNameStatusPorts
1defaultactiveFa0/lrFa0/2fFa0/3rFaO/4
Fa0/5rFa0/6rFa0/7rFaO/8
Fa0/9rFa0/10rFaO/11,Fa0/12
FaO/13,FaO/14,FaO/15,FaO/16
Fa0/17rFaO/18,Fa0/19rFa0/20
Fa0/21rFa0/22rFa0/23rFaO/24
30active
40test4active
Switch#configureterminal
Ent;erconfigurationcommandsroneperline.EndwithCNTL/Z.
Switch(config)tinterfacefastethernet0/1
Switch<config-if)fswitchportaccessvlan30
Switch(config-if)(exit
Switch(config)tinterfacefastet;hernet0/2
Switch(config-if)tswitchportaccessvlan40
Switch(config-if)texit;
Switch(config)#exit
%SYS-5-CONFIG_I:Configuredfromconsolebyconsole
Switch#showvlan
VLANNameStatusPorts
1defaultactiveFa0/3rFa0/4rFa0/5rFaO/6
FaO/7,Fa0/8rFa0/9zFa0/10
Fa0/llrFa0/12rFa0/13rFaO/14
FaO/15,Fa0/16rFa0/17rFaO/18
Fa0/19rFa0/20rFa0/21rFaO/22
Fa0/23rFaO/24
30zesz3activeFa0/l
40test4activeFaO/2
1002fddi-default;ac^/unsup
1003token-ring-defaultact/unsup
1004fddinec-defaultact/unsup
1005tmet-defaultacr/unsup
VLANTypeSAIDMTUParentRingNoBridgeNoStpBrdc^fcdeTranslTrans2
1enet1000011500----00
30enet1000301500----00
40enet1000401S00--—-00
1002fddi1010021500--—-00
2、在三層交換機(jī)上配置svi(vlanlO>vlan20),并設(shè)置相應(yīng)ip,在三層與二層交換機(jī)上設(shè)
置turnk,并為pc設(shè)置網(wǎng)關(guān)。
Name:t;est3
Switch(vlan)#exic
APPLYcoirple^ed.
Exiting....
Switch#configureterminal
Enterconfigurationcommandsroneperline.EndwithCNTL/Z.
Switch(config)finterfacevlan30
Switch(config-if)#ipadd192.168.30.125S.25S.255.0
Switch(config-if)texit;
Switch(config)#exi^
Switch#
%SYS-5-CONFIG_I:Configuredfromconsolebyconsole
Switchtvlandatabase
%Warning:ItisrecommendedtoconfigureVLANfromconfigmode,
asVLANdatabasemodeisbeingdeprecated.Pleaseconsulsuser
documentationforconfiguringVTP/VLANinconfigmode.
Switch(vlan)#
Switch(vlan)#vlan40namecegc4
VLAN40modified:
Name:test4
Switch(vlan)#exit
APPLYuonpleced.
Exiting....
Switchfconfigureterminal
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
Switch(config)tinterfacevlan40
%LINK-5-CHANGED:InterfaceVlan40rchangedstatuetoup
%LINEPROTO-S-UPDOWN:LineprotocolonInterfaceVlan40,changedstatetoup
Switch(config-if)tipadd192.168.40.12SS.2S5.25S.0
Switch(config-if)#exit
Switch(config)#exic
%SYS-S-CONFIG_I:Configuredfromconsolebyconsole
Switch#
Switch#configureterminal
Enterconfigurationcossnands,oneperline.EndwithCNTL/Z.
Switch{config)tinterfaceFaatZrhernerO/l
Switch(config-if)tswitchpoxcnodecrunk
%LINEPROTO-S-UPDOWN:LineprotocolonInterfaceFast£€h?rnec0/lrchangedstatet
odown
%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFast£^h?rnetO/lrchangedstatet
oup
Switch(config-if)*v
Switch(config)finterfaceFaacEthernetO/3
Switch(config-if)fswitchportmodetrunk
^LINHPXOTO-S-UPDOWN:LineprotocolonInterfaceFastEtherner0/3rchangedszaz&z
odown
%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFast£thernet0/3#changedstatet
oup
Switch(config-if)t
3、三層交換機(jī)關(guān)閉交換功能并配置ip。
Switch#configureterminal
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
Switch(config)tinterfaceFastEthernet0/2
Switch《config-if)tnoswitchport
Switch(config-if)tipadd192.168.2.12S5.25S.2SS.252
Switch(config-if)texir
Switch(config)*
路由器相關(guān)配置:
1、兩個路由器配地址,劃分為同一網(wǎng)段
Router>enable
Routertconfigureterminal
Enterconfigurationcoasnandaroneperline.EndvirhCNTL/Z.
Router(config)thosrnuneRouter
Router(config)tintexfacefastetherne€0/0
Router(config-if)tipaddress10.10.10.22SS.25S.25S.2S2
Router(config-if)tnoshutdown
%LINK-S-CHANGED:InterfaceFaitEthemetO/O,changedtoup
%LINEPROTO-5-UPDOWN:Lin?protocolonInterfaceFastEth?xn?t0/0rchangedstatet
oup
Router(config-if)texir
Router<config)*
Router>enable
Rouc?r>
Router>
Router>?nabl?
Routextconflguxeteminal
Enterconfigurationcononands,oneperline.EndwithCNTL/Z.
Router(config)thostn&roeRouter
Router(config)tin^erfacefaatetherne€0/0
Router(config-xf)#xpaddress10.10.10,1255.255.2SS.252
Router(config-if)tnoshutdown
Router(config-if)f
%LINK-5-CHANGED:InterfaceFaitEth?rn?t0/0fchangedstatetoup
?xit
Router(config)t
%LINHPROTO-S-UPDOWN:LineprotocolonInterfaceFaitEthcrnatO/O,changedstatet
2、網(wǎng)絡(luò)一中路由器與交換機(jī)連接的點的ip配置
Router>enable
Rourerfconfigureterminal
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
Router(config)tinterfaceFast£thernet0/l
Router(config-if)tipadd192.168.1.2255.255.25S.252
Router(config-if)tnoshutdown
%LINK-5-CHANGED:InterfaceFastEthernetO/lrchangedstatetoup
%LIN£P(guān)ROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernetO/lfchangedstarez
oup
Router(config-if)#exit
Routertping192.168.1.1
Typeescapesequencetoabort.
Sending5,100-byteICMPEchosto192.168.1.1,timeoutis2seconds:
IIII
Successrateis80percent(4/5),round-tripmin/avg/max=1/2/4ms
3、網(wǎng)絡(luò)二中路由器與交換機(jī)連接的點的ip配置
良o(jì)uter〉
Router>enable
Routerfconfigureterminal
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
Router(config)tinterfacefaatethernet0/1
Router(config-if)tipadd192.168.2.2255.25S.25S.2S2
Router(config-if)tnoshutdown
%LINK-5-CHANGED:InterfaceFastEthernetO/lrchangedstatetoup
%LINEPROTO-S-UPEX>WN:LineprotocolonInterfaceFastEthernetO/1,changedstatet
oup
Router(config-if)texic
Router(config)#exit
Router#
%SYS-S-CONFIG_I:Configuredfromconsolebyconsole
Routertping192.168.2.1
Typeescapesequencetoabort.
Sending5,100-byteICMPEchosco192.168.2.1,timeoutis2seconds:
Successrateis80percent《4/5),round-tripmin/avg/max=1/1/3ms
Route"
OSPF配置,實現(xiàn)不同網(wǎng)絡(luò)通信:
網(wǎng)絡(luò)二路由器添加ospf
Router〉
Router〉
Rourer>enable
Router#configerterminal
%Invalidinpu^defectedaz***marker.
Roucertconfigureterminal
Enterconfigurationcoxomands,oneperline.EndwithCNTL/Z.
Router(config)#interfaceloopback2
%LINK-5-CHANGiD:InterfaceLoopback2rchangedstacetoup
%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceLoopback2,changedsca€etoup
Roucez(config-xf)tipadd10.10.20.1255.2SS.25S.0
Rourer(config-if)fexit
Router(config)tcourerospf1
Router(config-router)^network192.168.2.00.0.0.3area0
Router(config-router)tnet;work10.10.10.00.0.0.3area0
Router(config-router)tne^work10.10.10.00.0.0.25Sarea0
Router(config-router)tneT;work10.10.20.00.0.0.255azea0
Router(config-router)tnetwork10.10.10.00.0.0.3area0
Router(config-rourer)#network10.10.20.00.0.0.2S5area0
Roueer(config-router)texic
Router(config)texit
Router#
%SYS-S-CONFIG_I:Configuredfromconsolebyconsole
網(wǎng)絡(luò)一路由器添加。spf
Rou^ertconfigureterminal
Enterconfigurationcommandsroneperline.ZndwithCNTL/Z.
Router(config)tin^erfaceloopback1
%LINK-5-CHANGED:InterfaceLoopbackl,changedsta^etoup
%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceLoopbacklrchangedstatuetoup
Router(config-if)tipadd10.10.30.1255.255.255.0
Router(config-if)texi^
Router(config)#
Router(config)trouterospf
%IncoH^>letecommand.
Router(config)#exi^
Router*
%SYS-5-CONFIG_I:Configuredfromconsolebyconsole
Routerfospf
Translating"ospf"...domainserver(25S.255.255.255)
%Unknowncoznmandorcomputername,orunabletofindconputeraddress
Router#configterminal
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
Router(config)trouterospf
%Incozrple^ecommand.
Router(config)trouterospf1
Router(config-router)#network192.168.1.00.0.03area0
%Invalidinput
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 沃爾沃租賃協(xié)議書
- 妻子簽股權(quán)協(xié)議書
- 征收房轉(zhuǎn)讓協(xié)議書
- 浪版權(quán)合作協(xié)議書
- 第三方付款協(xié)議書
- 因男方出軌協(xié)議書
- 培訓(xùn)室使用協(xié)議書
- 替公司貸款協(xié)議書
- 電風(fēng)扇領(lǐng)用協(xié)議書
- 簽合同包上高中協(xié)議書
- 司法雇員考試題目及答案
- 密蓋息產(chǎn)品介紹
- 2025年河南省安陽市滑縣中考模擬(創(chuàng)新人才選拔測評(一))化學(xué)試題(含答案)
- 吸氧并發(fā)癥預(yù)防及處理
- 警企共建合作協(xié)議書范本
- 2025信息技術(shù)綠色發(fā)展行動計劃
- CNAS-CL31-2011 內(nèi)部校準(zhǔn)要求
- 2024年7月國家開放大學(xué)??啤陡叩葦?shù)學(xué)基礎(chǔ)》期末紙質(zhì)考試試題及答案
- 2025年小學(xué)一年級數(shù)學(xué)下冊無紙筆化評價方案及檢測題
- 法規(guī)解讀丨2024新版《突發(fā)事件應(yīng)對法》及其應(yīng)用案例
- 變更羈押強(qiáng)制措施申請書
評論
0/150
提交評論