網(wǎng)絡(luò)配置實驗指導(dǎo) 交換機、路由器_第1頁
網(wǎng)絡(luò)配置實驗指導(dǎo) 交換機、路由器_第2頁
網(wǎng)絡(luò)配置實驗指導(dǎo) 交換機、路由器_第3頁
網(wǎng)絡(luò)配置實驗指導(dǎo) 交換機、路由器_第4頁
網(wǎng)絡(luò)配置實驗指導(dǎo) 交換機、路由器_第5頁
已閱讀5頁,還剩33頁未讀, 繼續(xù)免費閱讀

下載本文檔

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

文檔簡介

1、實驗一 交換機基本配置【實驗?zāi)康摹空莆战粨Q機在網(wǎng)絡(luò)中的作用、組成以及交換機設(shè)備選型;掌握PacketTrace 仿真軟件的使用方法;練掌握交換機的基本配置命令,包括交換機名稱設(shè)定、保護口令設(shè)定、口令封裝、接口描述、查看命令等?!緦嶒灜h(huán)境】 Cisco2621 Switch、Cisco 2950 交換機、PacketTrace仿真軟件、具備Windows操作系統(tǒng)的PC機【實驗重點及難點】重點:掌握PacketTrace路由仿真軟件的使用、交換機基本配置【實驗拓撲】【實驗內(nèi)容】一、交換機功能在局域網(wǎng)交換技術(shù)中,共享式以太網(wǎng)、沖突域、廣播域、橋接、交換、MAC 地址表、VLAN、VLAN 中繼等概念

2、特別重要。下面對這些概念做一下簡單回顧。1 共享式以太網(wǎng)共享式以太網(wǎng)是構(gòu)建在總線型拓撲上的以太網(wǎng),嚴格遵從載波偵聽多路訪問/沖突檢測(CSMA/CD, Carrier Sense Multiple Access/Collision Detect)算法的網(wǎng)絡(luò),CSMA/CD 算法的機制決定了共享式網(wǎng)絡(luò)的半雙工特點。在共享式以太網(wǎng)上,當(dāng)一臺主機發(fā)送數(shù)據(jù)的時候其他主機只能接收該以太網(wǎng)幀,此時網(wǎng)上其他主機都不能發(fā)送數(shù)據(jù)。2 沖突域用同軸電纜構(gòu)建或以hub 為核心構(gòu)建的共享式以太網(wǎng),其上所有節(jié)點同處于一個沖突域,一個沖突域內(nèi)不同設(shè)備同時發(fā)出的以太網(wǎng)幀會互相沖突;同時,沖突域內(nèi)的一臺主機發(fā)送數(shù)據(jù),同處于一

3、個沖突域的其他主機都可以接收到。3 廣播域廣播域是網(wǎng)上一組設(shè)備的集合,當(dāng)這些設(shè)備中的一個發(fā)出一個廣播時,所有其他設(shè)備都能接受到這個廣播幀。廣播域和沖突域是比較容易混淆的概念,我們可以這樣區(qū)分他們:連接在一個hub 上的所有設(shè)備都處于一個沖突域,同時也構(gòu)成了一個廣播域;連接在一個沒有劃分VLAN 交換機上各端口上的設(shè)備處于不同的沖突域中(每一個交換機的端口構(gòu)成了一個沖突域),但同屬于一個廣播域。4 橋接所謂橋接,CCNA 中主要是指透明橋接。透明網(wǎng)橋連接兩個或者更多的共享以太網(wǎng)網(wǎng)段,不同的網(wǎng)段分別屬于各自的沖突域,所有網(wǎng)段處于同一個廣播域。橋接工作模式應(yīng)認真理解,它是理解交換機工作原理的基礎(chǔ)。5

4、 交換局域網(wǎng)交換的概念源自橋接,它與透明網(wǎng)橋使用相同的算法,只是交換的實現(xiàn)是用專用硬件實現(xiàn),而傳統(tǒng)的橋接是用軟件來完成的。6 MAC 地址表交換機內(nèi)有一個MAC 地址表,用于存放該交換機端口所連接設(shè)備的MAC 地址與端口號的對應(yīng)信息。MAC 地址表是交換機正常工作的基礎(chǔ),我們應(yīng)該了解它的生成過程。7 VLANVLAN 用以把物理上直接相連的網(wǎng)絡(luò)從邏輯上劃分為多個子網(wǎng)。每一個VLAN 對應(yīng)著一個廣播域。二層交換機沒有路由功能,不能在VLAN 之間轉(zhuǎn)發(fā)幀,因而處于不同VLAN 上的主機不能進行通信,只有引入第三層交換(VLAN 間路由)技術(shù)之后,VLAN 間的通信才成為可能。8 VLAN 中繼VL

5、AN 中繼(VLAN Trunk)也稱為VLAN 主干,是指在交換機與交換機之間或者交換機與路由器之間連接的情況下,在互相連接的端口上配置中繼模式,使得屬于不同VLAN 的數(shù)據(jù)幀都可以通過這條中繼鏈路得以傳輸。VLAN 中繼的幀格式分為ISL 和IEEE802.1Q 兩種,其中前者是Cisco 交換機獨有的協(xié)議,后者是國際標準,被幾乎所有的設(shè)備廠商所廣泛支持。9 VLAN 中繼協(xié)議對于Cisco 設(shè)備而言, VLAN 中繼協(xié)議即VTP 協(xié)議可以幫助交換機設(shè)置VLAN.VTP 協(xié)議可以維護VLAN 信息的全網(wǎng)一致性.VTP 有三種工作模式,即服務(wù)器模式,客戶模式和透明模式,對于三種模式的準確區(qū)分

6、是交換技術(shù)需要掌握的要點之一。二、PacketTrace 使用打開PacketTrace軟件,選擇“Custom Made Devices”中的2621XM系列交換機。再選擇“Connections”連接線中的“Serial DCE” 連接線,按照如圖交換機的方式連接好交換機。 然后,按照圖示連接好交換機和主機。三、交換機配置 用戶模式(user mode) switch用戶模式(user mode):該模式下只能查看交換機基本狀態(tài)和普通命令,不能更改交換機配置。此時交換機名字后跟一個“”符號,表明是在用戶模式下。如:switch 特權(quán)模式(privileged mode) switch#特權(quán)

7、模式(privileged mode):該模式下可查看各種交換機信息及修改交換機配置。在用戶模式下以enable命令登陸,此時“”將變成“#”,表明是在privileged mode .如:switch# 全局配置模式(golbal configuration mode): switch(config)#全局配置模式(golbal configuration mode):該模式下可進行更高級的配置,并可由此模式進入各種配置子模式。其提示符如:switch(config)# 從各模式下返回,只要不斷輸入exit即可 配置與LAB_B直連的交換機BSwitchenSwitch#config tEn

8、ter configuration commands, one per line. End with CNTL/Z.Switch(config)#hostname 2950B2950B(config)#enable secret todd2950B(config)#line con 02950B(config-line)#login2950B(config-line)#password console2950B(config-line)#line vty 0 152950B(config-line)#login2950B(config-line)#password telnet2950B(co

9、nfig-line)#banner motd #Enter TEXT message. End with the character #.This is my 2950B switch#2950B(config)#2950B(config)#int f0/42950B(config-if)#desc connection to 2950C2950B(config-if)#int f0/52950B(config-if)#desc 2nd connection to 2950C2950B(config-if)#int vlan 12950B(config-if)#2950B(config-if)

10、#no shut2950B(config-if)#exit2950B(config)#2950B(config)#exit2950B#copy run startDestination filename startup-config? EnterBuilding configuration.OK2950B#2950B#Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to , timeout is 2 seconds:.!Success rate is 80 percent (4/5), round-trip min/av

11、g/max = 1/3/4 ms2950B# 配置與LAB_C直連的交換機CSwitchenSwitch#config tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#hostname 2950C2950C(config)#enable secret todd2950C(config)#line con 02950C(config-line)#login2950C(config-line)#password console2950C(config-line)#line vty 0 15295

12、0C(config-line)#login2950C(config-line)#password telnet2950C(config-line)#banner motd #Enter TEXT message. End with the character #.This is my 2950C switch#2950C(config)#int f0/12950C(config-if)#description Connection to router2950C(config-if)#interface f0/42950C(config-if)#description Connection to

13、 2950B2950C(config-if)#int f0/52950C(config-if)#description 2nd connection to 2950B2950C(config-if)#int vlan12950C(config-if)#2950C(config-if)#no shut2950C(config-if)#exit2950C(config)#2950C(config)#Z2950C#copy run startDestination filename startup-config? EnterBuilding configuration.OK四、常用交換機狀態(tài)查詢命令

14、(在特權(quán)模式下輸入命令)show version /查看IOS版本號,已啟動時間,flash中的IOS的文件名,switch里面共有什么的端口,寄存器的值等等。show flash /查看flash中的內(nèi)容,IOS的長度,文件名,剩余空間,總空間。show running-config /查看交換機當(dāng)前的配置信息。show startup-config /查看nvram 中的交換機配置信息。show mac-address-table /查看交換機上的各個端口的狀態(tài)信息。(很多重要信息)實驗二 生成樹協(xié)議配置【實驗?zāi)康摹空莆誗TP(Spanning-tree Protocol)的基本原理;掌握

15、STP的根橋選擇原理;掌握STP的配置?!緦嶒灜h(huán)境】 銳捷2126 交換機、PacketTracer仿真軟件、具備Windows操作系統(tǒng)的PC機【實驗重點及難點】重點:掌握STP的配置難點:STP基本原理【實驗拓撲】【實驗內(nèi)容】一、準備工作1. 如圖所示構(gòu)建拓撲圖2. 分別在主機上要ping 通各自的VLAN的地址和網(wǎng)關(guān)地址3. 分別在switchA和switchB上用show interface vlan 1命令檢查若得到:vlan 1 is up,line protocol is up 就對了4. 分別在switchA和switchB上用show spanning-tree命令觀察誰是根橋

16、及端口的情況5. 把MAC 地址大的那臺交換機的優(yōu)先級改為4096,用以下命令:switch(config)#spanning-tree vlan 1 priority 4096switch(config)#exit6. 分別在switchA和switchB上用show spanning-tree命令觀察誰是根橋及端口的情況7. 把剛才優(yōu)先級改為4096的那臺交換機的優(yōu)先級改為327688. 把switchA的f0/2端口拔掉,分別在switchA和switchB上用show spanning-tree命令觀察誰是根橋及端口的情況9. 把switchA的f0/2端口插好,再分別在switchA

17、和switchB上用show spanning-tree命令觀察誰是根橋及端口的情況二、STP配置1. 在switch A和switch B上都用sh spanning-tree,出現(xiàn):SwitchA# sh spanning-treeVLAN0001 Spanning tree enabled protocol ieee Root ID Priority 32769 Address 000b.5f00 This bridge is the root Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority

18、32769 (priority 32768 sys-id-ext 1) Address 000b.5f00 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300Interface Port ID Designated Port IDName Prio.Nbr Cost Sts Cost Bridge- - - - - - -Fa0/2 128.2 19 FWD 0 32769 000b.5fFa0/5 128.5 19 FWD 0 32769 000b.5fFa0/7 128.7 19 FWD 0 32769 0

19、00b.5f結(jié)論:switch A是根橋2. 在switchB上修改優(yōu)先級為:4097,然后在sh spanning-tree,出現(xiàn)SwitchA# sh spanning-treeVLAN0001 Spanning tree enabled protocol ieee Root ID Priority 4097 Address 000b.5f Cost 19 Port 2 (FastEthernet0/2) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 32769 (priority 32768

20、 sys-id-ext 1) Address 000b.5f00 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 15Interface Port ID Designated Port IDName Prio.Nbr Cost Sts Cost Bridge- - - - - - -Fa0/2 128.2 19 FWD 0 4097 000b.5fFa0/5 128.5 19 BLK 0 4097 000b.5fFa0/7 128.7 19 FWD 19 32769 000b.5f結(jié)論:switch B是根橋3.

21、將switchA上的f0/2上的斷掉,再sh spanning-tree,出現(xiàn):SwitchA# sh spanning-treeVLAN0001 Spanning tree enabled protocol ieee Root ID Priority 32769 Address 000b.5f00 This bridge is the root Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 32769 (priority 32768 sys-id-ext 1) Address 000b.5f00

22、 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 15Interface Port ID Designated00:15:15: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down Port IDName Prio.Nbr Cost Sts Cost Bridge- - - - - - -Fa0/5 128.5 19 FWD 0 32769 000b.5fFa0/7 128.7 19 FWD 0

23、 32769 000b.5f4. 將switchA上的f0/2 up,再sh spanning-tree,出現(xiàn)SwitchA# sh spanning-treeVLAN0001 Spanning tree enabled protocol ieee Root ID Priority 32769 Address 000b.5f00 This bridge is the root Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 32769 (priority 32768 sys-id-ext 1) Ad

24、dress 000b.5f00 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 15Interface Port ID Designated Port IDName Prio.Nbr Cost Sts Cost Bridge- - - - - - -Fa0/2 128.2 19 LIS 0 32769 000b.5fFa0/5 128.5 19 FWD 0 32769 000b.5fFa0/7 128.7 19 FWD 0 32769 000b.5f三、結(jié)論1. 在Bridge Priority一致的情況下,若Br

25、idge MAC即網(wǎng)橋ID最低者為根橋;在Bridge Priority不一致的情況下,Bridge Priority最低的為根橋。2當(dāng)f0/2up或down時在兩臺switch上重新計算spanning-tree。實驗三 VLAN劃分及三層交換實驗【實驗?zāi)康摹坷斫釼LAN的概念與作用并掌握靜態(tài)VLAN的設(shè)置;掌握VLAN Trunk的作用并掌握其設(shè)置;掌握三層交換機VLAN間配置;掌握PacketTrace 仿真軟件的使用方法?!緦嶒灜h(huán)境】 三層交換機配置、PacketTrace仿真軟件、具備Windows操作系統(tǒng)的PC機【實驗重點及難點】重點:掌握VLAN Trunk的作用并掌握其設(shè)置難點

26、:三層交換機配置【實驗拓撲】F0/1F0/2F0/3F0/1F0/1F0/2VLAN2F0/3VLAN3F0/2V3F0/3V4F0/3V4F0/2V4F0/3V5F0/2F0/1F0/11. 路由器配置: Switch3550:SwitchenSwitch#vlan databaseSwitch(vlan)#vlan 2Switch(vlan)#vlan 3Switch(vlan)#vlan 4Switch(vlan)#vlan 5Switch(vlan)#exitSwitch#conf tSwitch(config)#hostname S1S1(config)#ip routingS1(c

27、onfig)#int vlan 1S1(config-vlan)#ip add S1(config-vlan)#no shutS1(config-vlan)#int vlan 2S1(config-vlan)#no shutS1(config-vlan)#int vlan 3S1(config-vlan)#no shutS1(config-vlan)#int vlan 4S1(config-vlan)#no shutS1(config-vlan)#int vlan 5S1(config-vlan)#no shutS1(config-vlan)#int f0/1S1(config-if)#swi

28、tchport mode trunkS1(config-if)#switchport trunk encapsulation dot1qS1(config-if)#int f0/2S1(config-if)#switchport mode trunkS1(config-if)#switchport trunk encapsulation dot1qS1(config-vlan)#int f0/3S1(config-if)#switchport mode trunkS1(config-if)#switchport trunk encapsulation dot1qS1(config-if)#ex

29、itS1(config)#exitS1#copy run star Switch2:SwitchenSwitch#vlan databaseSwitch(vlan)#vlan 2Switch(vlan)#vlan 3Switch(vlan)#exitSwitch#conf tSwitch(config)#hostname S2S2(config)#int vlan 1S2(config-vlan)#ip add S2(config-vlan)#no shutS2(config-vlan)#int f0/1S2(config-if)#switchport mode trunkS2(config-

30、if)#int f0/2S2(config-if)#switchport access vlan 2S2(config-vlan)#int f0/3S2(config-if)#switchport access vlan 3S1(config-if)#exitS1(config)#exitS1#copy run star Switch3:SwitchenSwitch#vlan databaseSwitch(vlan)#vlan 3Switch(vlan)#vlan 4Switch(vlan)#exitSwitch#conf tSwitch(config)#hostname S3S3(confi

31、g)#int vlan 1S3(config-vlan)#ip add S3(config-vlan)#no shutS3(config-vlan)#int f0/1S3(config-if)#switchport mode trunkS3(config-if)#int f0/2S3(config-if)#switchport access vlan 3S3(config-vlan)#int f0/3S3(config-if)#switchport access vlan 4S3(config-if)#exitS3(config)#exitS3#copy run star Switch4:Sw

32、itchenSwitch#vlan databaseSwitch(vlan)#vlan 4Switch(vlan)#exitSwitch#conf tSwitch(config)#hostname S4S4(config)#int vlan 1S4(config-vlan)#ip add S4(config-vlan)#no shutS4(config-vlan)#int f0/1S4(config-if)#switchport mode trunkS4(config-if)#int f0/2S4(config-if)# switchport mode trunkS4(config-vlan)

33、#int f0/3S4(config-if)#switchport access vlan 4S4(config-if)#exitS4(config)#exitS4#copy run star Switch5:SwitchenSwitch#vlan databaseSwitch(vlan)#vlan 4Switch(vlan)#vlan 5Switch(vlan)#exitSwitch#conf tSwitch(config)#hostname S5S5(config)#int vlan 1S5(config-vlan)#ip add S5(config-vlan)#no shutS5(con

34、fig-vlan)#int f0/1S5(config-if)#switchport mode trunkS5(config-if)#int f0/2S5(config-if)#switchport access vlan 4S5(config-vlan)#int f0/3S5(config-if)#switchport access vlan 5S5(config-if)#exitS5(config)#exitS5#copy run star2. 主機配置PC4:IP: 網(wǎng)關(guān):實驗四 靜態(tài)路由配置【實驗?zāi)康摹空莆章酚善髟诰W(wǎng)絡(luò)中的作用、組成以及路由器設(shè)備選型;掌握PacketTrace 仿真軟

35、件的使用方法;掌握路由器的靜態(tài)路由配置命令?!緦嶒灜h(huán)境】 Cisco2621 Router、PacketTracer仿真軟件、具備Windows操作系統(tǒng)的PC機【實驗重點及難點】重點:掌握PacketTrace路由仿真軟件的使用、路由靜態(tài)路由配置難點:路由靜態(tài)路由配置【實驗拓撲】【實驗內(nèi)容】1. 路由器路由信息配置 配置之前路由器A的路由信息Lab_A#sh ip route/特權(quán)模式下,查看路由表命令Codes: C - connected, S - static, I - IGRP, R - RIP,M - mobile, B BGP D - EIGRP, EX - EIGRP exter

36、nal, O -OSPF, IA - OSPF inter area N1 - OSPF NSS external type1, N2 - OSPF NSSA external type 2 E1 - OSPF externaltype 1, E2 - OSPF external type 2, E EGP i - IS-IS,L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidatedefault, U - per-user static route, o - ODR, P -periodic downloaded static route,

37、T - trafficengineered routeGateway of last resort is not setC /24 is directly connected, FastEthernet0/0C /24 is directly connected, Serial 0/0 配置之前路由器B的路由信息Lab_B#sh ip routeoutput cutGateway of last resort is not setC /24 is directly connected, Serial0/0C /24 is directly connected, Serial0/1C is di

38、rectly connected FastEthernet 0/0 配置之前路由器C的路由信息Lab_C#sh ip routeoutput cutGateway of last resort is not setC /24 is directly connected, FastEthernet0/0C /24 is directly connected, Serial0/02. 配置路由器路由 配置路由器A路由Lab_A(config)# Lab_A(config)#ip route Lab_A(config)# /ip route 目的網(wǎng)絡(luò) 子網(wǎng)掩碼 下一跳地址 配置之后路由器A的路由信息

39、Lab_A#sh ip routeoutput cutC is directly connected, Serial 0/0C is directly connected, FastEthernet0/0 配置路由器B路由Lab_B(config)# Lab_B(config)# 配置之后路由器B的路由信息Lab_B#sh ip routeoutput cutC is directly connected, Serial0/1C is directly connected, FastEthernet 0/0C is directly connected, Serial0/0 配置路由器C路由L

40、ab_C(config)# Lab_C(config)# Lab_C(config)# 配置之后路由器A的路由信息Lab_A#sh ip routeoutput cutC is directly connected, FastEthernet0/0C is directly connected, Serial0/0S 在路由器B、C特權(quán)模式下使用show ip route 命令,查看路由器B、C的路由信息。3. 測試連通性 路由器A ping路由器CLab_A#Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to , t

41、imeout is 2 seconds:!Success rate is 80 percent (4/5), round-trip min/avg/max = 64/66/68 msLab_A# 路由器C ping路由器ALab_C#Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to , timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 64/67/72 ms 主機在各主機間使用ping命令,測試主機間的連

42、通性。4. 常用路由器狀態(tài)查詢命令(在特權(quán)模式下輸入命令)show version /查看IOS版本號,已啟動時間,flash中的IOS的文件名,router里面共有什么的端口,寄存器的值等等。show protocol /顯示與IP 有關(guān)的路由協(xié)議信息。各個端口的情況。show flash /查看flash中的內(nèi)容,IOS的長度,文件名,剩余空間,總空間。show running-config /查看路由器當(dāng)前的配置信息。show startup-config /查看nvram 中的路由器配置信息。show interface /查看路由器上的各個端口的狀態(tài)信息。(很多重要信息)show c

43、ontroller /查看接口控制器的狀態(tài),可看到連接的是DTE還是DCEshow history /查看history buffer 里面的命令列表show controller s0 /查看s0是DCE口還是DTE口show ip route /查看路由器的路由配置情況show hosts /查看IP host 表5. 思考題 在主機上利用Ping命令測試主機間連通性; 圖中各設(shè)備連接的連接線纜的型號和連接規(guī)律。實驗五 RIP路由協(xié)議配置【實驗?zāi)康摹空莆誖IP協(xié)議分類、基本工作原理;掌握RIP協(xié)議配置方法?!緦嶒灜h(huán)境】 Cisco2621 Router、PacketTracer仿真軟件、具

44、備Windows操作系統(tǒng)的PC機【實驗重點及難點】重點:RIP協(xié)議配置方法【實驗拓撲】【實驗內(nèi)容】一、RIP協(xié)議路由選擇信息協(xié)議)是距離矢量選擇協(xié)議的一種,它具有如下特點: 選用跳數(shù)做為唯一的路由選擇度量; 跳數(shù)允許的最大值是15,如果路由器收到了一個跳數(shù)值為16 的路由更新信息,則其目標網(wǎng)絡(luò)是不可達的; 缺省情況下,每30s 廣播一次路由更新數(shù)據(jù);RIP 協(xié)議包含有兩個版本,RIP 第一版和RIP 第二版.1.RIPv1 的特點包括:1)使用跳數(shù)(hop count)作為度量值來決定最佳路徑2)允許最大跳數(shù)是15 跳3)默認是每30 秒廣播路由更新(實際環(huán)境中并不是設(shè)定的固定為30 秒,而是

45、25秒到30 秒之間的隨機時間,防止兩個路由器發(fā)送同時更新產(chǎn)生沖突)4)最多支持6 條等價鏈路的負載均衡,默認是4 條5)是基于類的路由協(xié)議,不支持VLSM6)不支持驗證(authentication)2.RIPv2 比RIPv1 增強的特點包括:1)基于無類概念的路由協(xié)議2)支持VLSM3)可以人工設(shè)定是否進行路由匯總4)使用多播來代替RIPv1 中的廣播5)支持明文或MD5 加密驗證6)RIPv2 使用多播地址 來更新路由信息二、路由信息配置1. 路由器路由信息配置 配置之前路由器A的路由信息Lab_A#sh ip route/特權(quán)模式下,查看路由表命令Codes: C - connect

46、ed, S - static, I - IGRP, R - RIP,M - mobile, B BGP D - EIGRP, EX - EIGRP external, O -OSPF, IA - OSPF inter area N1 - OSPF NSS external type1, N2 - OSPF NSSA external type 2 E1 - OSPF externaltype 1, E2 - OSPF external type 2, E EGP i - IS-IS,L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidatedef

47、ault, U - per-user static route, o - ODR, P -periodic downloaded static route, T - trafficengineered routeGateway of last resort is not setC /24 is directly connected, FastEthernet0/0C /24 is directly connected, Serial 0/0 配置之前路由器B的路由信息Lab_B#sh ip routeoutput cutGateway of last resort is not setC /2

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

49、#router ripLab_A(config-router)#network 192.168.Lab_A(config-router)#Lab_A(config-router)#Z/ip route 目的網(wǎng)絡(luò) 子網(wǎng)掩碼 下一跳地址 配置路由器B路由Lab_B(config)#router ripLab_B(config-router)#Lab_B(config-router)#Lab_B(config-router)#network 192.168.Lab_B(config-router)#Z 配置路由器C路由Lab_C(config)#router ripLab_C(config-rout

50、er)#Lab_C(config-router)#Lab_C(config-router)#Z 配置之后路由器A的路由信息Lab_A#sh ip routeoutput cut.20.2, 00:00:23, Serial0/0R 120/1 via , 00:00:23, Serial0/0R 120/1 via , 00:00:23, Serial0/0C is directly connected, Serial0/0C is directly connected, FastEthernet0/0 配置之后路由器B的路由信息Lab_B#sh ip routeoutput cutR 120

51、/1 via , 00:00:11, Serial0/1C is directly connected, Serial0/1C is directly connected, FastEthernet0/0C is directly connected, Serial0/0R 120/1 via , 00:00:21, Serial0/0 配置之后路由器C的路由信息Lab_C#sh ip routeoutput cutGateway of last resort is not setC is directly connected, FastEthernet0/0C is directly con

52、nected, Serial0/0R 120/1 via , 00:00:04, Serial0/0R 120/1 via , 00:00:26, Serial0/0R 120/2 via , 00:00:04, Serial0/03. 測試連通性 路由器A ping路由器CLab_A#Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to , timeout is 2 seconds:!Success rate is 80 percent (4/5), round-trip min/avg/max = 64/66/68

53、msLab_A# 路由器C ping路由器ALab_C#Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to , timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 64/67/72 ms 主機在各主機間使用ping命令,測試主機間的連通性。4. 常用路由器狀態(tài)查詢命令(在特權(quán)模式下輸入命令)show version /查看IOS版本號,已啟動時間,flash中的IOS的文件名,router里面共有什么的端口,

54、寄存器的值等等。show protocol /顯示與IP 有關(guān)的路由協(xié)議信息。各個端口的情況。show flash /查看flash中的內(nèi)容,IOS的長度,文件名,剩余空間,總空間。show running-config /查看路由器當(dāng)前的配置信息。show startup-config /查看nvram 中的路由器配置信息。show interface /查看路由器上的各個端口的狀態(tài)信息。(很多重要信息)show controller /查看接口控制器的狀態(tài),可看到連接的是DTE還是DCEshow history /查看history buffer 里面的命令列表show controlle

55、r s0 /查看s0是DCE口還是DTE口show ip route /查看路由器的路由配置情況show hosts /查看IP host 表5. 思考題 在主機上利用Ping命令測試主機間連通性; 圖中各設(shè)備連接的連接線纜的型號和連接規(guī)律。實驗六 OSPF路由協(xié)議配置【實驗?zāi)康摹空莆誒SPF協(xié)議分類、基本工作原理;掌握OSPF協(xié)議配置方法?!緦嶒灜h(huán)境】 Cisco2621 Router、PacketTrace仿真軟件、具備Windows操作系統(tǒng)的PC機【實驗重點及難點】重點: OSPF協(xié)議配置方法難點:OSPF工作原理【實驗拓撲】【實驗內(nèi)容】1. 路由器路由信息配置 配置之前路由器A的路由信

56、息Lab_A#sh ip route/特權(quán)模式下,查看路由表命令Codes: 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 NSS external type1, N2 - OSPF NSSA external type 2 E1 - OSPF externaltype 1, E2 - OSPF external type 2, E EGP i - IS-IS,L1 - I

57、S-IS level-1, L2 - IS-IS level-2, * - candidatedefault, U - per-user static route, o - ODR, P -periodic downloaded static route, T - trafficengineered routeGateway of last resort is not setC /24 is directly connected, FastEthernet0/0C /24 is directly connected, Serial 0/0 配置之前路由器B的路由信息Lab_B#sh ip ro

58、uteoutput cutGateway of last resort is not setC /24 is directly connected, Serial0/0C /24 is directly connected, Serial0/1C is directly connected FastEthernet 0/0 配置之前路由器C的路由信息Lab_C#sh ip routeoutput cutGateway of last resort is not setC /24 is directly connected, FastEthernet0/0C /24 is directly co

59、nnected, Serial0/02. 配置路由器路由 配置路由器A路由Lab_A(config)#router ospf 132Lab_A(config-router)#network .0 area 0Lab_A(config-router)#network .0 area 0Lab_A(config-router)#Z 配置路由器B路由Lab_B#config tEnter configuration commands, one per line. End with CNTL/Z.Lab_B(config)#router ospf 1Lab_B(config-router)#netwo

60、rk 55 area 0Lab_B(config-router)#Z 配置路由器C路由Lab_C#config tEnter configuration commands, one per line. End with CNTL/Z.Lab_C(config)#router ospf 64999Lab_C(config-router)#network .255 area 0Lab_C(config-router)#network .255 area 0Lab_C(config-router)#Z 配置之后路由器A的路由信息Lab_A#sh ip routeoutput cutO /24 110

溫馨提示

  • 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)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論