實驗五路由器的基本配置演示文稿_第1頁
實驗五路由器的基本配置演示文稿_第2頁
實驗五路由器的基本配置演示文稿_第3頁
實驗五路由器的基本配置演示文稿_第4頁
實驗五路由器的基本配置演示文稿_第5頁
已閱讀5頁,還剩15頁未讀 繼續免費閱讀

下載本文檔

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

文檔簡介

1、運城學院 計算機科學與技術系1實驗四實驗四 路由器的基本配置路由器的基本配置 主主 講講 人:人: 楊楊 戰戰 武武運城學院運城學院 計算機科學與技術系計算機科學與技術系運城學院 計算機科學與技術系2路由器工作流程路由器工作流程IPETHPPP以太網口以太網口串口串口IPPPPETH串口串口以太網口以太網口協議封裝協議封裝路由選擇路由選擇協議轉換協議轉換路由器路由器路由器路由器傳送傳送拆包拆包接收接收發送發送工作過程工作過程運城學院 計算機科學與技術系3路由器的結構路由器的結構硬件組成硬件組成CPU(處理器)RAM(存儲正在運行的配置文件)FLASH(負責保存OS的映像和路由器的微碼)NVRA

2、M(保存配置件)ROM(加載OS)接口(完成路由器與其它設備的數據交換) 軟件結構軟件結構BOOT ROM:主要功能是路由器加電后完成有 關初始化工作,并向內存中加入操作系統代碼 COMWARE:H3C路由器上運行的軟件平臺運城學院 計算機科學與技術系4AR28-31備備份份口口配配置置口口運城學院 計算機科學與技術系5配置路由器配置路由器l通過通過console口配置口配置l通過撥號遠程配置通過撥號遠程配置l通過通過telnet方式配置方式配置l通過通過FTP方式傳送配置文件方式傳送配置文件運城學院 計算機科學與技術系6通過通過console口配置口配置建立本地配置環境配置口配置口(Cons

3、ole)配置口(配置口(console)電纜)電纜R232 串口串口 運城學院 計算機科學與技術系7創建超級終端(創建超級終端(II)運城學院 計算機科學與技術系8選擇串口(選擇串口(III)運城學院 計算機科學與技術系9端口設置(端口設置(IV)運城學院 計算機科學與技術系10進入路由器配置界面進入路由器配置界面 User interface Con 0 is available. Press ENTER to get started. Router console運城學院 計算機科學與技術系11用戶模式下常用命令用戶模式下常用命令l Router ?Exec commands: Sessi

4、on number to resume connect Open a terminal connection disable Turn off privileged commands disconnect Disconnect an existing network connection enable Turn on privileged commands exit Exit from the EXEC logout Exit from the EXEC ping Send echo messages resume Resume an active network connection sho

5、w Show running system information ssh Open a secure shell client connection telnet Open a telnet connection terminal Set terminal line parameters traceroute Trace route to destination運城學院 計算機科學與技術系12特權模式下常用命令特權模式下常用命令l Router enablel Router #Exec commands: Session number to resumeclock Manage the sy

6、stem clock configure Enter configuration mode connect Open a terminal connection copy Copy from one file to another debug Debugging functions (see also undebug) delete Delete a file enable Turn on privileged commands erase Erase a filesystem exit Exit from the EXEC no Disable debugging informations

7、ping Send echo messages reload Halt and perform a cold restarttelnet Open a telnet connection traceroute Trace route to destination write Write running configuration to memory, network,運城學院 計算機科學與技術系13全局配置模式全局配置模式lRouter #configure terminal Enter configuration commands, one per line. End with CNTL/Z

8、.lRouter(config)#接口配置模式接口配置模式Router(config)#interface f1/0Router(config-if)#運城學院 計算機科學與技術系14 單臂路由配置實驗組網拓撲圖單臂路由配置實驗組網拓撲圖 運城學院 計算機科學與技術系15Router#configure terminalRouter(config)#interface f1/0Router(config-if)#inter f1/0.1 /定義子接口f1/0.1 Router(config-subif)#encapsulation dot1Q 1Router(config-subif)#ip

9、address /指定以太網子接口屬于VLAN1,此命令應用在以太網子接口上。只有配置了該命令之后,以太網子接口才會根據配置的VLAN ID 號在以太網幀頭中嵌入VLAN 標簽,與該網口相連的交換機接口才能正確處理接收到的幀。Router(config-if)#inter f1/0.2 /定義子接口f1/0.2Router(config-subif)#encapsulation dot1Q 2Router(config-subif)#ip address /指定以太網子接口屬于VLAN2Route

10、r(config-if)#inter f1/0.3 /定義子接口f1/0.3Router(config-subif)#encapsulation dot1Q 3Router(config-subif)#ip address /指定以太網子接口屬于VLAN3步驟一步驟一 路由器的配置路由器的配置運城學院 計算機科學與技術系16Switchenable Switch#configure terminal Switch(config)#vlan 2 Switch(config)#interface range f0/1-5 Switch(config

11、-if-range)#switchport access vlan 2 Switch(config)#vlan 3 Switch(config)#interface range f0/7-11 Switch(config-if-range)#switchport access vlan 3 Switch(config)#inter e0/24 Switch(config-if)#switchport mode trunk 設為trunk Switch(config-if)#switchport trunk allowed vlan all步驟二步驟二 交換機的配置交換機的配置運城學院 計算機科

12、學與技術系17步驟三步驟三 工作站配置工作站配置Vlan1中的工作站中的工作站Ip 地址:254子網掩碼:網 關: Vlan2中的工作站中的工作站Ip 地址:254子網掩碼:網 關: Vlan3中的工作站中的工作站Ip 地址:254子網掩碼:網 關: 運城學院 計算機科學與技術系18C:Documents and SettingsAdministratoripconfigIP Address. .

13、. . . . . . . . . . : 2Subnet Mask . . . . . . . . . . . : Default Gateway . . . . . . . . . : C:Documents and SettingsAdministratorping Pinging with 32 bytes of data:Reply from : bytes=32 time10ms TTL=255Reply from : bytes=32

14、 time10ms TTL=255Reply from : bytes=32 time10ms TTL=255Reply from : bytes=32 time10ms TTL=255Ping statistics for :Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 0ms, Maximum = 0ms, Average = 0ms步驟四步驟四 在在Vlan2V

15、lan2中的工作站測試連通性中的工作站測試連通性運城學院 計算機科學與技術系19Router#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF exte

16、rnal type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static routeGateway of last resort is not set /24 is subnetted, 3 subnetsC is directly connected, FastEthernet0/0C is directly connected, FastEthernet0/0.1C is directly connected, Fas

溫馨提示

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

評論

0/150

提交評論