天天看點

2012-13學年上半學期路由與交換課程設計-作業-1

課程設計-1-文檔(我的作業):(由于我的作業裡面有大量的圖檔,上傳起來比較大,想看的話,下載下傳下來,有一個<b>試驗相關程式截圖:</b>欄目可以參考我做實驗時的截圖)。

<b>網絡需求分析</b><b>:</b><b></b>

<b></b>

1:對照下圖,按照下面要求1-3,組建和完成一個簡單的網絡,完成以下需求:

<a target="_blank" href="http://blog.51cto.com/attachment/201212/174643459.png"></a>

(1)路由器的基本配置,對路由器Router0,Router1和Router2設定使能密碼,加密使能密碼,虛拟終端線密碼,并且能夠telnet登入;

(2)使用标準通路控制清單ACL,進行控制,讓左邊的主機可以通路外網,右邊的不能通路。

(3)使用靜态路由,為路由器增加靜态路由指令,讓路由器之間可以互相通路。

(4)使用的ping 指令和診斷指令show 和debug驗證配置效果。

<b>網絡拓撲結構設計:</b><b></b>

<a target="_blank" href="http://blog.51cto.com/attachment/201212/174603554.png"></a>

<b>實驗步驟和調試過程:</b><b></b>

1:按照試驗要求建構網絡拓撲圖;

2:對試驗拓撲圖進行調試;

3:對路由器router0,router1,router2設定使能密碼,加密使能密碼;

4:進入線指令配置模式,給虛拟中短線配置密碼;

5:測試是否能夠telnet登陸;

6:分别為三個路由器增加通路控制清單,使PC0,PC2,PC4能夠通過路由器,PC1,PC3,PC5不能通過路由器,即不能通路外網。

7:為路由器增加靜态路由表,讓路由器router0和router2可以互相通信。

8:用ping 和 debug ip packet 指令,對經過路由器的資料報進行觀測。

<b>網絡詳細配置:</b><b></b>

<b>實驗要求(1):</b><b></b>

Router&gt;enable

Router#configure terminal

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#line v 0 4

Router(config-line)#login

% Login disabled on line 66, until 'password' is set

% Login disabled on line 67, until 'password' is set

% Login disabled on line 68, until 'password' is set

% Login disabled on line 69, until 'password' is set

% Login disabled on line 70, until 'password' is set

Router(config-line)#pass 222

Router(config-line)#end

Router#

%SYS-5-CONFIG_I: Configured from console by console

Router#conf t

Router(config)#enable pass 123

Router(config)#enable se 321

Router(config)#end

<b>試驗要求2</b><b>:</b><b></b>

Router(config)#access-list 1 permit host 10.1.1.2

Router(config)#access-list 1 deny any

Router(config)#inter f0/0

Router(config-if)#ip access-group 1 in

Router(config-if)#end

<b>試驗要求3</b><b>:</b><b></b>

router0的配置(增加靜态路由表):

Router(config)#ip rou 192.168.0.0 255.255.255.0 s0/1/0

Router(config)#ip rou 10.1.1.0 255.255.255.0 s0/1/0

Router(config)#ip rou 10.2.1.0 255.255.255.0 s0/1/0

<b>試驗要求4</b><b>【網絡測試的步驟和内容】:</b><b></b>

Router#ping 192.168.1.2

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 5/8/10 ms

Router#show ip rou

Router#show ip route

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 NSSA external type 1, N2 - OSPF NSSA external type 2

       E1 - OSPF external type 1, E2 - OSPF external 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 route

Gateway of last resort is not set

     10.0.0.0/24 is subnetted, 1 subnets

C       10.1.1.0 is directly connected, FastEthernet0/0

C    192.168.0.0/24 is directly connected, Serial0/1/0

S    192.168.1.0/24 [1/0] via 192.168.0.2

Router#debug ip pac

Router#debug ip packet

Packet debugging is on

IP: tableid=0, s=192.168.0.1 (local), d=192.168.1.2 (Serial0/1/0), routed via RIB

IP: s=192.168.0.1 (local), d=192.168.1.2 (Serial0/1/0), len 28, sending

IP: tableid=0, s=192.168.1.2 (Serial0/1/0), d=192.168.0.1 (Serial0/1/0), routed via RIB

IP: s=192.168.1.2 (Serial0/1/0), d=192.168.0.1 (Serial0/1/0), len 28, rcvd 3

IP: tableid=0, s=192.168.1.2 (Serial0/1/0), d=10.1.1.1 (FastEthernet0/0), routed via RIB

IP: s=192.168.1.2 (Serial0/1/0), d=10.1.1.1 (FastEthernet0/0), len 28, rcvd 3

IP: tableid=0, s=10.1.1.1 (local), d=192.168.1.2 (Serial0/1/0), routed via RIB

IP: s=10.1.1.1 (local), d=192.168.1.2 (Serial0/1/0), len 28, sending

IP: tableid=0, s=192.168.0.1 (local), d=192.168.0.2 (Serial0/1/0), routed via RIB

IP: s=192.168.0.1 (local), d=192.168.0.2 (Serial0/1/0), len 28, sending

IP: tableid=0, s=192.168.0.2 (Serial0/1/0), d=192.168.0.1 (Serial0/1/0), routed via RIB

IP: s=192.168.0.2 (Serial0/1/0), d=192.168.0.1 (Serial0/1/0), len 28, rcvd 3

<b>試驗結果:</b><b></b>

1:成功為路由器router0,router1,router2設定使能密碼,加密使能密碼,虛拟終端線密碼,并且能夠telnet登陸;

2:成功增加通路控制清單,使左邊的主機能夠通路外網,右邊的PC不能夠通路外網;

3:成功增加靜态路由表,使路由器之間能夠互相通信。

<b>參考書籍:</b><b></b>

《網絡互連技術-路由、交換與遠端通路》、

《CCNA學習指南》

課堂練習題

本文轉自 murongqingqqq  51CTO部落格,原文連結:http://blog.51cto.com/murongqingqqq/1085948

繼續閱讀