計算機網絡項目教學作業_第1頁
計算機網絡項目教學作業_第2頁
計算機網絡項目教學作業_第3頁
計算機網絡項目教學作業_第4頁
計算機網絡項目教學作業_第5頁
已閱讀5頁,還剩78頁未讀 繼續免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、目錄實驗1:交換機的基本配置1實驗2:交換機的遠程登錄3實驗3:交換機鏈路匯聚技術6實驗4:交換機連接生成樹技術9實驗5:服務器的配置11實驗6:客戶機對服務器vlan的學習16實驗7:三層交換機利用聚合技術實現vlan間的通信20實驗8:單臂路由的配置24實驗9:設置路由器的系統時鐘28實驗10:arp地址解析協議29實驗11:路由器的標簽設置31實驗12:路由器的遠程登錄33實驗13:域名解析服務34實驗14:用戶的克隆與隱藏37項目實驗15:組建小型網絡42項目實驗16:項目設計方案49實驗17:利用三層交換機配置dhcp55實驗18:vpn虛擬專用網技術57實驗19:win2003域的

2、管理62實驗20:利用gns3實現跨網段域控制65實驗21 linux 系統工具-shell編程70實驗22 linux下實現與windows的共享74實驗23 apache服務器的配置78實驗1:交換機的基本配置一、實驗目的1熟悉交換機的模式命令 2學習特權模式下的命令3了解全局配置模式下的命令二、實驗環境 在packet tracer5.1上進行實驗 1.一臺2950交換機 2.一臺pc三、實驗內容1、查看mac地址以及使用cisco發現協議命令2、給交換機命名和設置密碼四、實驗步驟、過程1、查看交換機的mac地址,進入特權模式輸入show mac- address table進行查看,如

3、圖2.使用cisco發現協議,在交換機上查看周圍設備及信息以及保存交換機配置,如圖3.在全局配置模式下給交換機設置名字和密碼,如圖實驗2:交換機的遠程登錄一、實驗目的 學會在另一臺pc上利用遠程登錄進入交換機進行配置二、實驗環境1.兩臺交換機2.兩臺pc三、實驗內容 在虛擬機中通過對交換機的配置,使得另一臺pc可以遠程登錄并管理交換機。四、實驗步驟、過程1.連接四臺機器,設置好四臺機器的ip地址,使其在同一網段10.1.1.x,并使兩臺pc之間能夠互相ping通,如圖2.給switch0命名,配置并設置好密碼,如圖3.給switch 1進行配置,如圖4.對本次實驗的成功進行測試。switch1

4、成功進入switch0并取得特權模式,實驗成功,如圖實驗3:交換機鏈路匯聚技術 一、實驗目的1熟悉交換機鏈路匯聚的命令2掌握和配置交換機鏈路匯聚技術。二、實驗環境交換機兩臺,網線若干,測試pc兩臺三、實驗內容 在兩臺交換機之間配置好鏈路匯聚四、實驗步驟、過程1、兩臺交換機分別連接兩臺電腦,并用兩根交叉線對兩臺交換機進行連接,如圖12、配置switch 0,將此連接的接口加入匯聚端口并用同命令對switch 1進行配置switchenswitch#conf tenter configuration commands, one per line. end with cntl/z.switch(co

5、nfig)#hostname liushaozhouliushaozhou(config)#ex%sys-5-config_i: configured from console by consoleliushaozhou#vlan da% 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.

6、liushaozhou(vlan)#vlan 10vlan 10 added: name: vlan0010liushaozhou(vlan)#exapply completed.exiting.liushaozhou#conf tenter configuration commands, one per line. end with cntl/z.liushaozhou(config)#inter fa0/5liushaozhou(config-if)#switchport mode accessliushaozhou(config-if)#switchport access vlan 10

7、liushaozhou(config-if)#exliushaozhou(config)#interface port-channel 1liushaozhou(config-if)#switchport mode trunkliushaozhou(config-if)#exitliushaozhou(config)#interface range gi1/1-2liushaozhou(config-if-range)#channel-group 1 mode on%link-5-changed: interface port-channel 1, changed state to up%li

8、neproto-5-updown: line protocol on interface port-channel 1, changed state to upliushaozhou(config-if-range)#end%sys-5-config_i: configured from console by console3.檢查連通情況,配置成功,如圖實驗4:交換機連接生成樹技術一、實驗目的 通過修改bridge ip,重新選擇根網橋二、實驗環境兩臺交換機四臺電腦三、實驗內容 在兩臺電腦之間用生成樹技術進行配置三、實驗過程1.給四臺電腦設置好ip,并連接交換機。如圖 2.左邊switch

9、10 一燈未亮,即對該交換機進行命令配置switchenswitch#conf tenter configuration commands, one per line. end with cntl/z.switch(config)#spanning-tree vlan 1 priority 4096switch(config)#3.配置完成,實驗5:服務器的配置一、實驗目的1熟悉客戶機的模式設置2. 了解客戶機在各種模式下是怎樣對服務器進行學習以及它們的權限二、實驗環境四臺交換機,并把它們用交叉線進行連接三、實驗內容1、服務器的配置2、客戶機加入域四、實驗步驟、過程1、將四臺交換機用交叉線進行

10、連接,把sw 0設為服務器,如圖2. 配置服務器,設置服務器版本,打通三個接口并劃分四個vlan供下面實驗,如圖,為交換機的配置命令liushaozhou#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.liushaozhou(vlan)#vtp domai

11、n liushaozhouchanging vtp domain name from null to liushaozhouliushaozhou(vlan)#vtp serverdevice mode already vtp server.liushaozhou(vlan)#vtp v2-modev2 mode enabled.liushaozhou(vlan)#exapply completed.exiting.liushaozhou#conf tenter configuration commands, one per line. end with cntl/z.liushaozhou(

12、config)#inter range fa0/1,fa0/14-15liushaozhou(config-if-range)#sw mo tr%lineproto-5-updown: line protocol on interface fastethernet0/1, changed state to down%lineproto-5-updown: line protocol on interface fastethernet0/1, changed state to up%lineproto-5-updown: line protocol on interface fastethern

13、et0/14, changed state to down%lineproto-5-updown: line protocol on interface fastethernet0/14, changed state to up%lineproto-5-updown: line protocol on interface fastethernet0/15, changed state to down%lineproto-5-updown: line protocol on interface fastethernet0/15, changed state to upliushaozhou(co

14、nfig-if-range)#end%sys-5-config_i: configured from console by consoleliushaozhou#vlan da% 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.liushaozhou(vlan)#vlan 1vlan 1

15、 modified:liushaozhou(vlan)#vlan 2vlan 2 added: name: vlan0002liushaozhou(vlan)#vlan 3vlan 3 added: name: vlan0003liushaozhou(vlan)#vlan 4vlan 4 added: name: vlan0004liushaozhou(vlan)#show vlan3.配置sw 1,把其設為客戶機,并打開它的三個接口,并用同樣的命令對sw2,3進行配置,把sw2,3都設為客戶機switchenswitch#vlan da% warning: it is recommended

16、 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)#vtp domain liushaohzouchanging vtp domain name from liushaozhou to liushaohzouswitch(vlan)#vtp clientsetting device to vtp client mod

17、e.switch(vlan)#vtp v2-modev2 mode enabled.switch(vlan)#exapply completed.exiting.switch#conf tenter configuration commands, one per line. end with cntl/z.switch(config)#inter range fa0/1,fa0/14-15switch(config-if-range)#sw mo tru%lineproto-5-updown: line protocol on interface fastethernet0/14, chang

18、ed state to down%lineproto-5-updown: line protocol on interface fastethernet0/14, changed state to up%lineproto-5-updown: line protocol on interface fastethernet0/15, changed state to down%lineproto-5-updown: line protocol on interface fastethernet0/15, changed state to upswitch(config-if-range)#end

19、%sys-5-config_i: configured from console by consoleswitch#show vlan- - - -1 default active fa0/1, fa0/2, fa0/3, fa0/4 fa0/5, fa0/6, fa0/7, fa0/8 fa0/9, fa0/10, fa0/11, fa0/12 fa0/13, fa0/16, fa0/17, fa0/18 fa0/19, fa0/20, fa0/21, fa0/22 fa0/23, fa0/242 vlan0002 active 3 vlan0003 active 4 vlan0004 ac

20、tive 1002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active 4.把客戶機sw2設置為透明模式,再在服務器上添加新的vlan觀察它的學習狀態把sw2設為透明模式switch#vlan da% warning: it is recommended to configure vlan from config mode, as vlan database mode is being deprecated. please consult

21、 user documentation for configuring vtp/vlan in config mode.switch(vlan)#vtp transetting device to vtp transparent mode.switch(vlan)#vtp transparentdevice mode already vtp transparent.switch(vlan)#vlan 5vlan 5 added: name: vlan0005switch(vlan)#在服務器上添加新的vlanliushaozhouenliushaozhou#vlan da% warning:

22、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.liushaozhou(vlan)#vlan 10vlan 10 added:name: vlan0010查看客戶機sw2的權限和學習狀態switch#show vlanvlan name status ports- - - -1 default activ

23、e fa0/1, fa0/2, fa0/3, fa0/4 fa0/5, fa0/6, fa0/7, fa0/8 fa0/9, fa0/10, fa0/11, fa0/12 fa0/13, fa0/16, fa0/17, fa0/18 fa0/19, fa0/20, fa0/21, fa0/22 fa0/23, fa0/242 vlan0002 active 3 vlan0003 active 4 vlan0004 active 5 vlan0005 active 1002 fddi-default active 1003 token-ring-default active 1004 fddin

24、et-default active 1005 trnet-default active vlan type said mtu parent ringno bridgeno stp brdgmode trans1 trans2改變客戶機sw3的域,觀察它的權限及學習狀態switchenswitch#vlan da% warning: it is recommended to configure vlan from config mode, as vlan database mode is being deprecated. please consult user documentation fo

25、r configuring vtp/vlan in config mode.switch(vlan)#vtp domain shaozhouchanging vtp domain name from liushaozhou to shaozhouswitch(vlan)#vlan 20vtp vlan configuration not allowed when device is in client mode.witch#show vlanvlan name status ports- - - -1 default active fa0/1, fa0/2, fa0/3, fa0/4 fa0/

26、5, fa0/6, fa0/7, fa0/8 fa0/9, fa0/10, fa0/11, fa0/12 fa0/13, fa0/16, fa0/17, fa0/18 fa0/19, fa0/20, fa0/21, fa0/22 fa0/23, fa0/242 vlan0002 active 3 vlan0003 active 4 vlan0004 active 1002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active 5.由此得出只

27、有同一個域的客戶端才能學習到服務器的vlan客戶模式是無法添加和修改vlan的,透明模式可以自主添加vlan透明模式可以自主添加vlan實驗6:客戶機對服務器vlan的學習一、實驗目的 了解兩臺交換機對服務器不同vlan劃分的學習 二、實驗環境三臺交換機,兩臺電腦三、實驗內容 配置服務器,在服務器上劃分兩個vlan,讓兩臺交換機分別接入兩個vlan中四、實驗步驟、過程1、將一臺交換機設為服務器,另兩臺交換機連接服務器,并分別連接一臺電腦,如圖2. 配置服務器,劃分vlan10以及vlan20,并打通三個接口switchenswitch#vlan da% warning: it is recom

28、mended 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)#vtp domain liushaozhouchanging vtp domain name from null to liushaozhouswitch(vlan)#vtp serverdevice mode already vtp server.sw

29、itch(vlan)#exapply completed.exiting.switch#conf tenter configuration commands, one per line. end with cntl/z.switch(config)#inter range fa0/1-3switch(config-if-range)#sw mo trunk%lineproto-5-updown: line protocol on interface fastethernet0/1, changed state to down%lineproto-5-updown: line protocol

30、on interface fastethernet0/1, changed state to up%lineproto-5-updown: line protocol on interface fastethernet0/2, changed state to down%lineproto-5-updown: line protocol on interface fastethernet0/2, changed state to upswitch(config-if-range)#exswitch(config)#ex%sys-5-config_i: configured from conso

31、le by consoleswitch#vlan da% 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 10vlan 10 added: name: vlan0010switch(vlan)#vlan 20vlan 20 added: name: v

32、lan0020switch(vlan)#ex3. 配置客戶機,把第一臺客戶機劃入vlan10,并用同樣的方法把另一臺客戶機劃入vlan20switchenswitch#conf tenter configuration commands, one per line. end with cntl/z.switch(config)#inter fa0/1switch(config-if)#end%sys-5-config_i: configured from console by consoleswitch#vlan da% warning: it is recommended to config

33、ure vlan from config mode, as vlan database mode is being deprecated. please consult user documentation for configuring vtp/vlan in config mode.switch(vlan)#vtp domain liushaozhoudomain name already set to liushaozhou.switch(vlan)#vtp clientsetting device to vtp client mode.switch(vlan)#exapply comp

34、leted.exiting.switch#show vlanvlan name status ports- - - -1 default active fa0/2, 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/2410 vlan0010 active 20 vlan0020 active 1002 fddi-default

35、 active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active vlan type said mtu parent ringno bridgeno stp brdgmode trans1 trans2- - - - - - - - - - -1 enet 100001 1500 - - - - - 0 010 enet 100010 1500 - - - - - 0 020 enet 100020 1500 - - - - - 0 01002 enet 101002 150

36、0 - - - - - 0 0switch#conf tenter configuration commands, one per line. end with cntl/z.switch(config)#inter fa0/2switch(config-if)#sw mo access vlan 10 % invalid input detected at marker.switch(config-if)#sw mo accessswitch(config-if)#sw access vlan10 % invalid input detected at marker.switch(confi

37、g-if)#sw acc vlan 10switch(config-if)#end%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, 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/2

38、2 fa0/23, fa0/2410 vlan0010 active fa0/220 vlan0020 active 1002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active vlan type said mtu parent ringno bridgeno stp brdgmode trans1 trans2- - - - - - - - - - -1 enet 100001 1500 - - - - - 0 010 enet 10

39、0010 1500 - - - - - 0 020 enet 100020 1500 - - - - - 0 01002 enet 101002 1500 - - - - - 0 0 -more4.實驗成功,客戶機1成功劃入vlan10實驗7:三層交換機利用聚合技術實現vlan間的通信一、實驗目的 學習采用虛擬局域網技術解決解決由多臺多交換的網絡引發的網絡廣播風暴、網絡安全等嚴重問題。二、實驗環境二層交換機一臺,三層交換機一臺,網線若干,測試pc若干臺三、實驗內容 配置兩臺交換機,利用聚合技術實現vlan間的通信四、實驗步驟、過程1、安裝網絡工作環境,配置好交換機后再用兩根線分別對應連接兩交換

40、機的fa0/5-6接口。如圖2.對sw2950進行配置,劃分vlan并打通trunkswitchenswitch#conf tenter configuration commands, one per line. end with cntl/z.switch(config)#inter po% incomplete command.switch(config)#inter port-channel 1switch(config-if)#switchport mode trunkswitch(config-if)#exswitch(config)#inter range fa0/5-6switc

41、h(config-if-range)#channel-g% incomplete command.switch(config-if-range)#channel group 1 mode on% ambiguous command: channel group 1 mode onswitch(config-if-range)#sw mo trunkswitch(config-if-range)#end%sys-5-config_i: configured from console by consoleswitch#vlan d% warning: it is recommended to co

42、nfigure 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 10vlan 10 added: name: vlan0010switch(vlan)#vlan 20vlan 20 added: name: vlan0020switch(vlan)#exapply completed.exiting.switch#conf ten

43、ter configuration commands, one per line. end with cntl/z.switch(config)#inter fa0/1switch(config-if)#sw mo accswitch(config-if)#sw acc vlan 10switch(config-if)#exswitch(config)#inter fa0/2switch(config-if)#switchport mode accessswitch(config-if)#sw ac vlan 20switch(config-if)#2.對sw3560進行配置switchens

44、witch#conf tenter configuration commands, one per line. end with cntl/z.switch(config)#inter po% incomplete command.switch(config)#inter port-channel 1switch(config-if)#switchport mode trunkswitch(config-if)#exswitch(config)#inter range fa0/5-6switch(config-if-range)#channel-g% incomplete command.sw

45、itch(config-if-range)#channel group 1 mode on% ambiguous command: channel group 1 mode onswitch(config-if-range)#sw mo trunkswitch(config-if-range)#end%sys-5-config_i: configured from console by consoleswitch#vlan d% warning: it is recommended to configure vlan from config mode, as vlan database mod

46、e is being deprecated. please consult user documentation for configuring vtp/vlan in config mode.switch(vlan)#vlan 10vlan 10 added: name: vlan0010switch(vlan)#vlan 20vlan 20 added: name: vlan0020switch(vlan)#exapply completed.exiting.switch#conf tenter configuration commands, one per line. end with cntl/z.swi

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
  • 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論