CCNA實(shí)驗(yàn)二靜態(tài)路由配置_第1頁
CCNA實(shí)驗(yàn)二靜態(tài)路由配置_第2頁
CCNA實(shí)驗(yàn)二靜態(tài)路由配置_第3頁
CCNA實(shí)驗(yàn)二靜態(tài)路由配置_第4頁
CCNA實(shí)驗(yàn)二靜態(tài)路由配置_第5頁
已閱讀5頁,還剩2頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

1、CCNA實(shí)驗(yàn)二 靜態(tài)路由配置【實(shí)驗(yàn)?zāi)康摹?掌握路由器在網(wǎng)絡(luò)中的作用、組成以及路由器設(shè)備選型;掌握PacketTrace仿真軟件的使用方法; 練掌握路由器的基本配置命令,包括路由器名稱設(shè)定、保護(hù)口令設(shè)定、口令封裝、 接口描述、查看命令等; 掌握靜態(tài)路由的配置方法?!緦?shí)驗(yàn)環(huán)境】Cisco2621 Router、PacketTrace 仿真軟件、具備 Windows 操作系統(tǒng)的 PC 機(jī)【實(shí)驗(yàn)重點(diǎn)及難點(diǎn)】重點(diǎn):掌握PacketTrace路由仿真軟件的使用、路由器基本配置難點(diǎn):路由接口的配置、靜態(tài)路由的配置【實(shí)驗(yàn)拓?fù)洹? . . o RouterNetwork AddressInterfaceAddr

2、essLab_A192.168.10.0fa 0/01192.168.10.1Lab_A192.168.20.0s0/0192.168.20.1Lab_B192.168.20.0s0/01192.168.20.2Lab_B192.168.40.0s0/11192.168.40.1Lab_B192.168.30.0fa 0/01192.168.30.1Lab_C:192.16840.0s0/0192.168.40.2Lab C:192.168.50.0fa 0/0192.168.50.1【實(shí)驗(yàn)內(nèi)容】一、PacketTrace仿真軟件介紹路由、交換仿真軟件就是對真實(shí)的路由器、交換機(jī)等網(wǎng)絡(luò)設(shè)備進(jìn)行軟

3、件模擬,可以在安 裝仿真軟件的普通PC上進(jìn)行網(wǎng)絡(luò)設(shè)備的配置、管理以及網(wǎng)絡(luò)規(guī)劃、網(wǎng)絡(luò)驗(yàn)證等工作,而不 需要真實(shí)的網(wǎng)絡(luò)設(shè)備。目前,市場上路由、交換等網(wǎng)絡(luò)設(shè)備模擬軟件有很多種,比較優(yōu)秀的 有Boson、RouterSim、CIM等。其中PacketTrace是目前最流行的,最接近真實(shí)環(huán)境的模擬 軟件??梢哉f,PacketTrace軟件是真實(shí)設(shè)備的縮影。二、PacketTrace 使用打開PacketTrace軟件,選擇“Custom Made Devices”中的2621XM系列路由器。再選 擇“Connections”連接線中的“Serial DCE”連接線,按照如圖路由器的方式連接好路由 器。然

4、后,按照圖示連接好交換機(jī)和主機(jī)。三、路由器配置路由器配置模式及其轉(zhuǎn)換用戶模式(user mode)router用戶模式(usermode):該模式下只能查看路由器基本狀態(tài)和普通命令,不能更改路由 器配置。此時(shí)路由器名字后跟一個(gè)“”符號,表明是在用戶模式下。如:router 特權(quán)模式(privileged mode)router#特權(quán)模式(privileged mode):該模式下可查看各種路由器信息及修改路由器配置。在 用戶模式下以enable命令登陸,此時(shí)“”將變成“#”,表明是在privileged mode .如: router# 全局配置模式(golbal configuration

5、mode) :router(config)#全局配置模式(golbal configuration mode):該模式下可進(jìn)行更高級的配置,并可由 此模式進(jìn)入各種配置子模式。其提示符如:router(config)# 從各模式下返回,只要不斷輸入exit即可按照地址表配置路由器各接口的地址信息 配置路由器ARouterenRouter#config tRouter(config)#hostname Lab_ALab_A(config)#enable secret toddLab_A(config)#interface fa0/0Lab_A(config-if)#ip address 192.1

6、68.10.1 255.255.255.0Lab_A(config-if)#description Lab_A LAN ConnectionLab_A(config-if)#no shutLab_A(config-if)#interface serial 0/0Lab_A(config-if)#ip address 192.168.20.1 255.255.255.0Lab_A(config-if)#description WAN Connection to Lab_BLab_A(config-if)#no shutLab_A(config-if)#exitLab_A(config)#line

7、 console 0Lab_A(config-line)#password toddLab_A(config-line)#loginLab_A(config-line)#line vty 0 4Lab_A(config-line)#password toddLab_A(config-line)#loginLab_A(config-line)#exitLab_A(config)#banner motd #This is the Lab_A router#Lab_A(config)#zLab_A#copy running-config startup-config進(jìn)入特權(quán)模式進(jìn)入全局模式設(shè)置主機(jī)名

8、設(shè)置加密口令,由用戶模式進(jìn)入特權(quán)模式起作用。/進(jìn)入Fastethernet 0/0子接口模式/配置Fa0/0接口的IP地址配置Fa0/0接口的描述字符激活Fa0/0接口進(jìn)入serial 0/0子接口模式/配置serial 0/0接口的$地址配置serial 0/0接口的描述字符激活 serial 0/0 接口退出子接口模式,返回全局模式/進(jìn)入Console子接口模式配置Console登陸密碼進(jìn)入Vty子接口模式/配置Vty登陸密碼,可以有五個(gè)Telnet退出子接口模式,返回全局模式設(shè)置Banner信息,以字符“世結(jié)束輸入即Ctrl+Z的組合鍵,可直接返回特權(quán)模式保存上面所做的所有配置Desti

9、nation filename startup-config? EnterLab_A#特權(quán)模式查看當(dāng)前路由器配置Lab_A#show running-config配置路由器BRouterenRouter#config tRouter(config)#hostname Lab_BLab_B(config)#enable secret toddLab_B(config)#interface fa0/0Lab_B(config-if)#ip address 192.168.30.1 255.255.255.0Lab_B(config-if)#description Lab_B LAN Connect

10、ionLab_B(config-if)#no shutLab_B(config-if)#interface serial 0/0Lab_B(config-if)#ip address 192.168.20.2 255.255.255.0Lab_B(config-if)#description WAN Connection to Lab_ALab_B(config-if)#clock rate 64000Lab_B(config-if)#no shutLab_B(config-if)#interface serial 0/1Lab_B(config-if)#ip address 192.168.

11、40.1 255.255.255.0Lab_B(config-if)#description WAN Connection to Lab_CLab_B(config-if)#clock rate 64000Lab_B(config-if)#no shutLab_B(config-if)#exitLab_B(config)#line console 0Lab_B(config-line)#password toddLab_B(config-line)#loginLab_B(config-line)#line vty 0 4Lab_B(config-line)#password toddLab_B

12、(config-line)#loginLab_B(config-line)#exitLab_B(config)#banner motd #This is the Lab_B router#Lab_B(config)#zLab_B#copy running-config startup-configDestination filename startup-config? Enter查看當(dāng)前路由器配置Lab_B#show running-config配置路由器CRouterenRouter#config tRouter(config)#hostname LabCLab_C(config)#enab

13、le secret toddLab_C(config)#interface fa0/0Lab_C(config-if)#ip address 192.168.50.1 255.255.255.0Lab_C(config-if)#description Lab_C LAN ConnectionLab_C(config-if)#no shutLab_C(config-if)#interface serial 0/0Lab_C(config-if)#ip address 192.168.40.2 255.255.255.0Lab_C(config-if)#description WAN Connec

14、tion to Lab_BLab_C(config-if)#no shutLab_C(config-if)#exitLab_C(config)#line console 0Lab_C(config-line)#password toddLab_C(config-line)#loginLab_C(config-line)#line vty 0 4Lab_C(config-line)#password toddLab_C(config-line)#loginLab_C(config-line)#exitLab_C(config)#banner motd #This is the Lab_C rou

15、ter#Lab_C(config)# zLab_C#copy running-config startup-configDestination filename startup-config? Enter查看當(dāng)前路由器配置Lab_C#show running-config配置主機(jī)的丁地址每臺主機(jī)的IP地址信息配置:網(wǎng)關(guān):連接為PC機(jī)的路由器F0/0接口的IP地址,如PC0的網(wǎng)關(guān)為192.168.10.1IP地址:與網(wǎng)關(guān)在同一個(gè)子網(wǎng),PC0的IP地址可為192.168.10.2測試:在主機(jī)上ping各自網(wǎng)關(guān),查看結(jié)果,然后主機(jī)間相互測試,查看結(jié)果。路由器路由信息配置 配置之前路由器A的路由信息L

16、ab_A#sh ip route/特權(quán)模式下,查看路由表命令C 192.168.10.0/24 is directly connected, FastEthernet0/0C 192.168.20.0/24 is directly connected, Serial 0/0配置之前路由器B的路由信息Lab_B#sh ip routeoutput cutGateway of last resort is not setC 192.168.20.0/24 is directly connected, Serial0/0C 192.168.40.0/24 is directly connected,

17、 Serial0/1C 192.168.30.0 is directly connected FastEthernet 0/0配置之前路由器C的路由信息Lab_C#sh ip routeoutput cutGateway of last resort is not setC 192.168.50.0/24 is directly connected, FastEthernet0/0C 192.168.40.0/24 is directly connected, Serial0/02.配置路由器路由配置路由器A路由Lab_A(config)#ip route 192.168.30.0255.25

18、5.255.0 192.168.20.2Lab_A(config)#ip route 192.168.40.0 255.255.255.0 192.168.20.2Lab_A(config)#ip route 192.168.50.0 255.255.255.0 192.168.20.2/ip route目的網(wǎng)絡(luò) 子網(wǎng)掩碼 下一跳地址配置之后路由器A的路由信息Lab_A#sh ip routeoutput cutS 192.168.50.0 1/0 via 192.168.20.2S 192.168.40.0 1/0 via 192.168.20.2S 192.168.30.0 1/0 via

19、 192.168.20.2C 192.168.20.0 is directly connected, Serial 0/0C 192.168.10.0 is directly connected, FastEthernet0/0配置路由器B路由Lab_B(config)#ip route 192.168.10.0 255.255.255.0 192.168.20.1Lab_B(config)#ip route 192.168.50.0 255.255.255.0 192.168.40.2配置之后路由器B的路由信息Lab_B#sh ip routeoutput cutS 192.168.50.0

20、 1/0 via 192.168.40.2C 192.168.40.0 is directly connected, Serial0/1C 192.168.30.0 is directly connected, FastEthernet 0/0C 192.168.20.0 is directly connected, Serial0/0S 192.168.10.0 1/0 via 192.168.20.1配置路由器C路由Lab_C(config)#ip route 192.168.30.0 255.255.255.0 192.168.40.1Lab_C(config)#ip route 192

21、.168.20.0 255.255.255.0 192.16.40.1Lab_C(config)#ip route 192.168.10.0 255.255.255.0 192.168.40.1 配置之后路由器A的路由信息Lab_A#sh ip routeoutput cutC 192.168.50.0 is directly connected, FastEthernet0/0C 192.168.40.0 is directly connected, Serial0/0S 192.168.30.0 1/0 via 192.168.40.1S 192.168.20.0 1/0 via 192.

22、168.40.1S 192.168.10.0 1/0 via 192.168.40.1在路由器B、C特權(quán)模式下使用show ip route命令,查看路由器B、C的路由信息。測試連通性路由器A ping路由器CLab_A#ping 192.168.50.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.50.1, timeout is 2 seconds:Success rate is 80 percent (4/5), round-trip min/avg/max = 64/66/68 msLab_A#路由器C ping路由器ALab_C#ping 192.168.10.1Type escape sequence

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(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)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論