




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1、寧德師范學院計算機系實驗報告( 學年 第 學期)課程名稱 計算機網絡 實驗名稱 實驗 4 路由器基本配置 專 業 計算機科學與技術 年 級 11 級 學號 姓名指導教師實驗日期實驗目的與要求:1、掌握路由器幾種常用配置方法;2、掌握采用 Console 線纜配置路由器的方法;3、掌握采用 telnet 方式配置路由器的方法;4、熟悉路由器不同的命令行操作模式以及各種模式之間的切換;5、掌握路由器的基本配置命令; 實驗設備(環境):Windows操作系統 Packet Tracer 模擬器軟件實驗內容:1、新建實驗拓撲圖2、熟悉路由器基本設置方式與常用命令3、在路由器上配置 IP 地址3、配置路
2、由器遠程密碼技術原理:路由器的管理方式基本分為兩種:帶內管理和帶外管理。通過路由器的 Console 口管理路由器屬 于帶外管理,不占用路由器的網絡接口,其特點是需要使用配置線纜,近距離配置。第一次配置時必 須利用 Console 端口進行配置。交叉線與直通線的用法:相同設備的連接要用交叉線,不同設備的連接要用直通線,此處的相同 并不是以名稱判斷,而是以功能劃分。如計算機和路由器也被認為是相同設備。實驗背景: 假設你是某公司新來的網絡管理員,公司要求熟悉網絡產品,首先要求你登錄路由器,了解、掌 握路由器的命令行操作。同時作為網管,你第一次在設備機房對路由器進行了初次配置后,希望以后 再辦公司或
3、出差時也可以對設備進行遠程管理,現在要在路由器上做適當的配置。實驗步驟: 路由器基本配置(一) : 實驗拓補圖1、用標準 console 線纜連接計算機的串口和路由器的 console 口, 在計算機上啟用超級終端, 并配置超級終端的參數,使計算機與路由器通過 console 口建立連接;2、配置路由器的管理 IP 地址,并為 telnet 用戶配置用戶名和登錄口令。 配置計算機的 IP 地址(與路 由器管理 IP 地址在同一個網段 ) ,通過網線將計算機和路由器相連, 通過計算機 telnet 到路由器上進 行查看配置;3、更改路由器的主機名;4、擦除配置信息、保存配置信息、顯示配置信息;5
4、、顯示當前配置信息;6、顯示歷史命令 :Routeren Router#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#interface fa0/0Router(config-if)#no shutdow / 路由器端口默認關閉,開啟 fa0/0 端口%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Fast
5、Ethernet0/0, changed state to upRouter(config-if)#exit Router(config)#hostname R1 R1(config)#enable password 123456 R1(config)#line vty 0 4 R1(config-line)#password abc123 R1(config-line)#login R1(config-line)#exit R1(config)#interface fa0/0 R1(config-if)#ip address 192.168.1.1 % Incomplete command.
6、R1(config-if)#ip address 192.168.1.1 255.255.255.0R1(config-if)#no shutdown/ 開啟端口R1(config-if)#end/ 修/ 改設路置由進器入主特機權名模式密碼/ 設置 telnet 遠程登錄密碼/ 配置路由器的管理IP 地址R%1S#Y S-5-CONFIG_I: Configured from console by consolePC端登錄測試 :2 1 、驗證進入特權模式的密碼SwitchenPassword:2、驗證 telnet 遠程登錄密碼 a.給 PC 機設置 IP 地址b、打開 Command Pr
7、ompt1 、用標準 console 線纜連接計算機 1的串口和路由器的 console 口,用交叉線連接計算機 2 的 fastetrernet 和路由器的 fastethernet 0/0口,用 V.3.5 線纜連接來個路由器的 serial 2/0 接口。2、分別兩個配置路由器的管理IP 地址,并為 telnet 用戶配置用戶名和登錄口令。配置計算機的 IP地址,通過網線將計算機和路由器相連,通過計算機 telnet 到路由器上進行查看配置。3、將兩個路由器的主機名分別更改為RA和 RB。4、顯示當前配置信息。5、配置路由器的遠程密碼。6、顯示歷史命令 :RouterenRouter#c
8、onfig tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname RARA(config)#interface fastethernet 0/0RA(config-if)#ip address 192.168.1.1 255.255.255.0RA(config-if)#no shutdown%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protoc
9、ol on Interface FastEthernet0/0, changed state to upRARARAco#n# if)#if) -)-gggg1/01 255.255.255.0%LINK-5-CHANGED: Interface FastEthernet1/0, changed state to up RA(config-if)#exitRA(config)#inerface serial 2/0% Invalid input detected at marker.RARARARA(config)#interface serial 2/0(config-if)#ip addr
10、ess 172.159.1.1 255.255.255.0(config-if)#clock rate 64000(config-if)#no shutdown%LINK-5-CHANGED: Interface Serial2/0, changed state to down RA(config-if)#exitRA(config)#line vty 0 4 RA(config-line)#password starRA(config-line)#login RA(config-line)#endRA# %SYS-5-CONFIG_I: Configured from console by
11、consoleRA#enRA#config tEnter configuration commands, one per line. End with CNTL/Z. RA(config)#enable secret abcRA(config)#enable password starRA(config)#exit%SYS-5-CONFIG_I: Configured from console by consoleRA#show ip interface briefInterface IP-Address OK? Method Status ProtocolFastEthernet0/0192
12、.168.1.1 YES manual upupFastEthernet1/010.10.1.1 YES manual updownSerial2/0172.159.1.1YES manual downdownSerial3/0unassignedYES unset administratively down downFastEthernet4/0unassigned YES unset administratively down downFastEthernet5/0unassigned YES unset administratively down downRouterenRouter#c
13、onfig tEnter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname RBRB(config)#interface fastethernet 0/0 RB(config-if)#ip address 192.168.1.2 255.255.255.0%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEt
14、hernet0/0, changed state to upBBBRRRconfig-if)#exit config)#interface serial 2/0 config-if)#ip address 192.168.3.1 255.255.255.0 config-if)#no shutdownupNK-5-CHANGED: Interface Serial2/0, changed state toRBRB%Lconfi confi NEP-)i#f) #exit)O# TO-5-UPDOWN:Line protocol on Interface Serial2/0, changed s
15、tate to upRRBB(#c onfig)#end%SYS-5-CONFIG_I: Configured from console by console RB#show ip interface briefInterface IP-Address OK? Method StatusProtocolFastEthernet0/0192.168.1.2 YES manual upupFastEthernet1/0unassigned YES unset administratively down downSerial2/0192.168.3.1 YES manual upupSerial3/
16、0unassigned YES unset administratively down downFastEthernet4/0unassigned YES unset administratively down downFastEthernet5/0unassigned YES unset administratively down downRB#1、驗證進入特權模式的密碼SwitchenPassword:2、驗證 telnet 遠程登錄密碼a. 給 PC 機設置 IP 地址b、 打開 Command PromptPacket Tracer PC Command Line 1.0PCipcon
17、figIP Address Subnet Mask Default Gateway192.168.1.42SS.255.2550192.168.1.1PCping 192.168.1.1Pinging 192.168.1.1 with 32 bytes of data:Reply from 192.168.11二Reply from 192.16811.二Reply from 192.168.1.1:Reply from 192.168.1.1:bytes32time=13ms TTL255byte勻=32 bytes=32 bytes=32time=8xns tme=lms time=6ms
18、TTL=255TTL=2SSTTL=255User Access VerificationPing statistics for 192.168.1.1.二 Packets: Sent = 4, Received = 4. Losr = 0 (0% loss),Approximate round trip times in mxlli-seconds:Minimum = Imsr Maximum = 13ms, Average = 7msPCtelne3 192.168久1Trying 192.168.1.1 OpenPassword:RAenPassword:RA# show rinn.iz
19、ig config Building configuration-Current configuration : 743 kytesversion 12.2no service time stands lo datetime msec no service time stands debug datetime msecj no service passwordencryptionhostname RAip classlessline con 0 line vxy 0 4 password star loxnend實驗結果分析1、在路由器上配置 IP 地址的時候, 進入特權模式和全局模式后, 就可以配置路由器 的名稱和進入路由器接口模式,但是在要注意接口是 0 模塊 /0 接口。2、在開啟路由器 fastethernet 接口時,要看清楚, 連接的路由器的接口, 再進行連 接,不能隨便接。在進入串行接口時,也需要注意,同樣的問題。3、要驗證 PC機是否可以通過網線遠程登入到路由器上, 一定要對路由器配置路由器 遠程登入密碼和配置路由器特權模式密碼。實驗思考題1、路由器有多少種配置模式? 答:有進入特權模式、進入全局模式、進入路由器接口配置模式,進入路由器線路配置模式、設置 路由器特權模式。2、為了方便管理,路由器需要開通
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024年度浙江省護師類之主管護師過關檢測試卷B卷附答案
- 2024年度浙江省二級造價工程師之土建建設工程計量與計價實務測試卷(含答案)
- 社會保險法律制度培訓
- 纖維濾池培訓課件
- 神經外科護理長工作總結
- 內科流動紅旗競選
- 服裝知識培訓
- 加裝電梯的面試題及答案
- 幼兒園小班社會《擦椅子》教案
- 領導面試題及答案
- 硐室爆破資料課件
- 防性侵防溺水防校園欺凌主題班會課件
- 《水熱溶劑熱合成》課件
- 建筑安全玻璃管理規定
- 保險學(第五版)習題庫答案
- 《重大火災隱患判定方法》GB 35181-2017
- 奇瑞汽車售后服務藍圖
- 《農藥經營許可培訓班》考試試卷
- 安徽省技能人才評價考評員考試題庫
- 網絡域名及域名解析PPT課件
- 浙江省2016年10月物理學業水平考試試題
評論
0/150
提交評論