Internet與Internet關(guān)鍵技術(shù)課程實(shí)驗(yàn)報(bào)告_第1頁
Internet與Internet關(guān)鍵技術(shù)課程實(shí)驗(yàn)報(bào)告_第2頁
Internet與Internet關(guān)鍵技術(shù)課程實(shí)驗(yàn)報(bào)告_第3頁
Internet與Internet關(guān)鍵技術(shù)課程實(shí)驗(yàn)報(bào)告_第4頁
Internet與Internet關(guān)鍵技術(shù)課程實(shí)驗(yàn)報(bào)告_第5頁
已閱讀5頁,還剩36頁未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

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

文檔簡(jiǎn)介

1、internet 與與 internet 關(guān)鍵關(guān)鍵 技術(shù)實(shí)驗(yàn)報(bào)告技術(shù)實(shí)驗(yàn)報(bào)告 實(shí)驗(yàn) 1.4 【實(shí)驗(yàn)名稱】 .4 【實(shí)驗(yàn)要求】 .4 【實(shí)驗(yàn)設(shè)備】 .4 【拓?fù)浣Y(jié)構(gòu)】 .4 【實(shí)驗(yàn)過程】 .5 配置硬件環(huán)境.5 路由各端口 ip 及基本屬性配置.6 靜態(tài)路由表配置.7 【實(shí)驗(yàn)結(jié)果】 .8 實(shí)驗(yàn) 2.10 【實(shí)驗(yàn)名稱】 .10 【實(shí)驗(yàn)要求】 .10 【實(shí)驗(yàn)設(shè)備】 .11 【拓?fù)浣Y(jié)構(gòu)】 .11 【實(shí)驗(yàn)過程】 .11 配置硬件環(huán)境.11 路由各端口 ip 及基本屬性配置.12 動(dòng)態(tài)路由表配置.14 【實(shí)驗(yàn)結(jié)果】 .14 實(shí)驗(yàn) 3.16 【實(shí)驗(yàn)名稱】 .16 【實(shí)驗(yàn)要求】 .16 【實(shí)驗(yàn)設(shè)備】 .16

2、【拓?fù)浣Y(jié)構(gòu)】 .17 【實(shí)驗(yàn)過程】 .17 配置硬件環(huán)境.17 路由各端口 ip 及基本屬性配置.18 動(dòng)態(tài)路由表配置.21 訪問列表配置.23 【實(shí)驗(yàn)結(jié)果】 .24 實(shí)驗(yàn) 4.26 【實(shí)驗(yàn)名稱】 .26 【實(shí)驗(yàn)要求】 .26 【實(shí)驗(yàn)設(shè)備】 .26 【拓?fù)浣Y(jié)構(gòu)】 .27 【實(shí)驗(yàn)過程】 .27 配置硬件環(huán)境.27 路由各端口 ip 及基本屬性配置.28 動(dòng)態(tài)路由表配置.31 訪問列表配置.33 【實(shí)驗(yàn)結(jié)果】 .33 實(shí)驗(yàn) 5.35 【實(shí)驗(yàn)名稱】 .35 【實(shí)驗(yàn)要求】 .35 【實(shí)驗(yàn)設(shè)備】 .35 【拓?fù)浣Y(jié)構(gòu)】 .35 【實(shí)驗(yàn)過程】 .35 配置硬件環(huán)境.35 路由各端口 ip 及基本屬性配置.3

3、7 動(dòng)態(tài)路由表配置.39 訪問列表配置.41 【實(shí)驗(yàn)結(jié)果】 .41 實(shí)實(shí)驗(yàn)驗(yàn) 1 【實(shí)驗(yàn)名稱 】 路由器使用串口靜態(tài)配置路由 【實(shí)驗(yàn)要求 】 三個(gè)路由器通過串口用閃電線以鏈狀拓?fù)浣Y(jié)構(gòu)相連,采用靜態(tài)方式配置路由,要求三個(gè) 路由互相之間可以 ping 通。每個(gè)子網(wǎng)的 ip 沒有固定要求。 【實(shí)驗(yàn)設(shè)備】 思科 1841 型路由器 3 串行 dce 線 2 【拓?fù)浣Y(jié)構(gòu) 】 【實(shí)驗(yàn)過程 】 配置硬件環(huán)境 1 選擇三個(gè)思科 1841 型路由器拖放到編輯窗口 2 選擇兩根閃電線,按照上圖拓?fù)浣Y(jié)構(gòu)進(jìn)行連接 3 為路由器添加串口,注意添加時(shí)須關(guān)閉路由器,后在啟動(dòng)路由 路由各端口 ip 及基本屬性配置 route

4、r0: router1: routerenable router#configure terminal router(config)#interface serial0/0/0 router(config-if)#ip address 202.1.1.1 255.255.255.0 router(config-if)#clock rate 125000 router(config-if)#no shutdown router(config-if)#exit router(config)#interface serial0/0/1 router(config-if)#ip address 201

5、.1.1.2 255.255.255.0 router(config-if)#clock rate 125000 router(config-if)#no shutdown router(config-if)#exit 進(jìn)入特權(quán)模式 進(jìn)入全局配置模式 進(jìn)入路由的 serial0/0/0 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 進(jìn)入路由的 serial0/0/1 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 routerenable router#configure terminal router(config)#interface serial0/0/0

6、router(config-if)#ip address 202.1.1.2 255.255.255.0 router(config-if)#clock rate 125000 router(config-if)#no shutdown router(config-if)#exit router(config)#interface serial0/0/1 router(config-if)#ip address 203.1.1.1 255.255.255.0 router(config-if)#clock rate 125000 router(config-if)#no shutdown ro

7、uter(config-if)#exit 進(jìn)入特權(quán)模式 進(jìn)入全局配置模式 進(jìn)入路由的 serial0/0/0 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 進(jìn)入路由的 serial0/0/1 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 router2: 靜態(tài)路由表配置 router0: router1: router2: routerenable router#configure terminal router(config)#interface serial0/0/0 router(config-if)#ip address 203.1.1.2 255.25

8、5.255.0 router(config-if)#clock rate 125000 router(config-if)#no shutdown router(config-if)#exit router(config)#interface serial0/0/1 router(config-if)#ip address 204.1.1.1 255.255.255.0 router(config-if)#clock rate 125000 router(config-if)#no shutdown router(config-if)#exit 進(jìn)入特權(quán)模式 進(jìn)入全局配置模式 進(jìn)入路由的 se

9、rial0/0/0 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 進(jìn)入路由的 serial0/0/1 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 routerenable router#configure terminal router(config)#ip route 203.1.1.0 255.255.255.0 202.1.1.2 router(config)#ip route 204.1.1.0 255.255.255.0 202.1.1.2 進(jìn)入特權(quán)模式 進(jìn)入全局配置模式 配置靜態(tài)路由表 配置靜態(tài)路由表 routerenable router#con

10、figure terminal router(config)#ip route 201.1.1.0 255.255.255.0 202.1.1.1 router(config)#ip route 204.1.1.0 255.255.255.0 203.1.1.2 進(jìn)入特權(quán)模式 進(jìn)入全局配置模式 配置靜態(tài)路由表 配置靜態(tài)路由表 routerenable router#configure terminal router(config)#ip route 201.1.1.0 255.255.255.0 203.1.1.1 router(config)#ip route 202.1.1.0 255.2

11、55.255.0 203.1.1.1 進(jìn)入特權(quán)模式 進(jìn)入全局配置模式 配置靜態(tài)路由表 配置靜態(tài)路由表 【實(shí)驗(yàn)結(jié)果】 實(shí)實(shí)驗(yàn)驗(yàn) 2 【實(shí)驗(yàn)名稱 】 路由器使用串口動(dòng)態(tài)配置路由 【實(shí)驗(yàn)要求 】 三個(gè)路由器通過串口用閃電線以鏈狀拓?fù)浣Y(jié)構(gòu)相連,采用動(dòng)態(tài)方式配置路由,要求三個(gè) 路由互相之間可以 ping 通。每個(gè)子網(wǎng)的 ip 沒有固定要求。 【實(shí)驗(yàn)設(shè)備 】 思科 1841 型路由器 3 串行 dce 線 2 【拓?fù)浣Y(jié)構(gòu) 】 【實(shí)驗(yàn)過程 】 配置硬件環(huán)境 1 選擇三個(gè)思科 1841 型路由器拖放到編輯窗口 2 選擇兩根閃電線,按照上圖拓?fù)浣Y(jié)構(gòu)進(jìn)行連接 3 為路由器添加串口,注意添加時(shí)須關(guān)閉路由器,后在啟動(dòng)

12、路由 路由各端口 ip 及基本屬性配置 router0: routerenable router#configure terminal router(config)#interface serial0/0/0 router(config-if)#ip address 202.1.1.1 255.255.255.0 router(config-if)#clock rate 125000 router(config-if)#no shutdown router(config-if)#exit router(config)#interface serial0/0/1 router(config-if

13、)#ip address 201.1.1.2 255.255.255.0 router(config-if)#clock rate 125000 router(config-if)#no shutdown router(config-if)#exit 進(jìn)入特權(quán)模式 進(jìn)入全局配置模式 進(jìn)入路由的 serial0/0/0 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 進(jìn)入路由的 serial0/0/1 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 router1: router2: 動(dòng)態(tài)路由表配置 routerenable router#configure term

14、inal router(config)#interface serial0/0/0 router(config-if)#ip address 202.1.1.2 255.255.255.0 router(config-if)#clock rate 125000 router(config-if)#no shutdown router(config-if)#exit router(config)#interface serial0/0/1 router(config-if)#ip address 203.1.1.1 255.255.255.0 router(config-if)#clock ra

15、te 125000 router(config-if)#no shutdown router(config-if)#exit 進(jìn)入特權(quán)模式 進(jìn)入全局配置模式 進(jìn)入路由的 serial0/0/0 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 進(jìn)入路由的 serial0/0/1 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 routerenable router#configure terminal router(config)#interface serial0/0/0 router(config-if)#ip address 203.1.1.2 255.255.

16、255.0 router(config-if)#clock rate 125000 router(config-if)#no shutdown router(config-if)#exit router(config)#interface serial0/0/1 router(config-if)#ip address 204.1.1.1 255.255.255.0 router(config-if)#clock rate 125000 router(config-if)#no shutdown router(config-if)#exit 進(jìn)入特權(quán)模式 進(jìn)入全局配置模式 進(jìn)入路由的 seri

17、al0/0/0 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 進(jìn)入路由的 serial0/0/1 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 router0: router1: router2: 【實(shí)驗(yàn)結(jié)果】 routerenable router#configure terminal router(config)#router rip router(config-router)#network 201.1.1.0 router(config-router)#network 202.1.1.0 進(jìn)入特權(quán)模式 進(jìn)入全局配置模式 進(jìn)入動(dòng)態(tài)配置模式 配置端口 0 連

18、接的子網(wǎng) 配置端口 1 連接的子網(wǎng) routerenable router#configure terminal router(config)#router rip router(config-router)#network 202.1.1.0 router(config-router)#network 203.1.1.0 進(jìn)入特權(quán)模式 進(jìn)入全局配置模式 進(jìn)入動(dòng)態(tài)配置模式 配置端口 0 連接的子網(wǎng) 配置端口 1 連接的子網(wǎng) routerenable router#configure terminal router(config)#router rip router(config-router)

19、#network 203.1.1.0 router(config-router)#network 204.1.1.0 進(jìn)入特權(quán)模式 進(jìn)入全局配置模式 進(jìn)入動(dòng)態(tài)配置模式 配置端口 0 連接的子網(wǎng) 配置端口 1 連接的子網(wǎng) 實(shí)實(shí)驗(yàn)驗(yàn) 3 【實(shí)驗(yàn)名稱 】 路由器選擇通信 【實(shí)驗(yàn)要求 】 四個(gè)路由器使用心形拓?fù)浣Y(jié)構(gòu)通過串口連接,首先的讓這四個(gè)路由器可以互相 ping 通, 然后只允許 r3 和 r2 通信,不允許 r1 和 r2 通信。 【實(shí)驗(yàn)設(shè)備 】 思科 1841 型路由器 4 串行 dce 線 3 【拓?fù)浣Y(jié)構(gòu) 】 【實(shí)驗(yàn)過程 】 配置硬件環(huán)境 1 選擇四個(gè)思科 1841 型路由器拖放到編輯窗口

20、2 選擇三根閃電線,按照上圖拓?fù)浣Y(jié)構(gòu)進(jìn)行連接 3 為路由器添加串口,注意添加時(shí)須關(guān)閉路由器,后在啟動(dòng)路由,由于 router0 要連接 三個(gè)路由器,所以需要在左面的擴(kuò)展槽多加一組串口。 路由各端口 ip 及基本屬性配置 router0: routerenable router#configure terminal router(config)#interface serial0/0/0 router(config-if)#ip address 202.1.1.2 255.255.255.0 router(config-if)#clock rate 125000 router(config-if

21、)#no shutdown router(config-if)#exit router(config)#interface serial0/0/1 router(config-if)#ip address 203.1.1.1 255.255.255.0 router(config-if)#clock rate 125000 router(config-if)#no shutdown router(config-if)#exit router(config)#interface serial0/1/0 router(config-if)#ip address 206.1.1.2 255.255.

22、255.0 router(config-if)#clock rate 125000 router(config-if)#no shutdown router(config-if)#exit router(config)#interface serial0/1/1 router(config-if)#ip address 207.1.1.1 255.255.255.0 router(config-if)#clock rate 125000 router(config-if)#no shutdown router(config-if)#exit 進(jìn)入特權(quán)模式 進(jìn)入全局配置模式 進(jìn)入路由的 seri

23、al0/0/0 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 進(jìn)入路由的 serial0/0/1 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 進(jìn)入特權(quán)模式 進(jìn)入全局配置模式 進(jìn)入路由的 serial0/1/0 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 進(jìn)入路由的 serial0/1/1 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 router1: router2: routerenable router#configure terminal router(config)#interface serial0/0/0 rout

24、er(config-if)#ip address 202.1.1.1 255.255.255.0 router(config-if)#clock rate 125000 router(config-if)#no shutdown router(config-if)#exit router(config)#interface serial0/0/1 router(config-if)#ip address 201.1.1.2 255.255.255.0 router(config-if)#clock rate 125000 router(config-if)#no shutdown router

25、(config-if)#exit 進(jìn)入特權(quán)模式 進(jìn)入全局配置模式 進(jìn)入路由的 serial0/0/0 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 進(jìn)入路由的 serial0/0/0 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 routerenable router#configure terminal router(config)#interface serial0/0/0 router(config-if)#ip address 203.1.1.2 255.255.255.0 router(config-if)#clock rate 125000 rout

26、er(config-if)#no shutdown router(config-if)#exit router(config)#interface serial0/0/1 router(config-if)#ip address 204.1.1.1 255.255.255.0 router(config-if)#clock rate 125000 router(config-if)#no shutdown router(config-if)#exit 進(jìn)入特權(quán)模式 進(jìn)入全局配置模式 進(jìn)入路由的 serial0/0/0 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 進(jìn)入路由的 s

27、erial0/0/0 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 router3: 動(dòng)態(tài)路由表配置 首先采用動(dòng)態(tài)路由配置方式使得四個(gè)路由之間可以互相 ping 通 router0: routerenable router#configure terminal router(config)#router rip router(config-router)#network 202.1.1.0 router(config-router)#network 203.1.1.0 router(config-router)#network 206.1.1.0 router(config-r

28、outer)#network 207.1.1.0 進(jìn)入特權(quán)模式 進(jìn)入全局配置模式 進(jìn)入動(dòng)態(tài)配置模式 配置端口 0/0 連接的子網(wǎng) 配置端口 0/1 連接的子網(wǎng) 配置端口 1/0 連接的子網(wǎng) 配置端口 1/1 連接的子網(wǎng) routerenable router#configure terminal router(config)#interface serial0/0/0 router(config-if)#ip address 206.1.1.1 255.255.255.0 router(config-if)#clock rate 125000 router(config-if)#no shut

29、down router(config-if)#exit router(config)#interface serial0/0/1 router(config-if)#ip address 205.1.1.2 255.255.255.0 router(config-if)#clock rate 125000 router(config-if)#no shutdown router(config-if)#exit 進(jìn)入特權(quán)模式 進(jìn)入全局配置模式 進(jìn)入路由的 serial0/0/0 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 進(jìn)入路由的 serial0/0/0 端口 設(shè)置該端口 i

30、p 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 router1: router2: router3: 訪問列表配置 只允許 r3 和 r2 通信,不允許 r1 和 r2 通信。 routerenable router#configure terminal router(config)#router rip router(config-router)#network 201.1.1.0 router(config-router)#network 202.1.1.0 進(jìn)入特權(quán)模式 進(jìn)入全局配置模式 進(jìn)入動(dòng)態(tài)配置模式 配置端口 0/0 連接的子網(wǎng) 配置端口 0/1 連接的子網(wǎng) routerenable r

31、outer#configure terminal router(config)#router rip router(config-router)#network 203.1.1.0 router(config-router)#network 204.1.1.0 進(jìn)入特權(quán)模式 進(jìn)入全局配置模式 進(jìn)入動(dòng)態(tài)配置模式 配置端口 0/0 連接的子網(wǎng) 配置端口 0/1 連接的子網(wǎng) routerenable router#configure terminal router(config)#router rip router(config-router)#network 205.1.1.0 router(co

32、nfig-router)#network 206.1.1.0 進(jìn)入特權(quán)模式 進(jìn)入全局配置模式 進(jìn)入動(dòng)態(tài)配置模式 配置端口 0/0 連接的子網(wǎng) 配置端口 0/1 連接的子網(wǎng) router0: 【實(shí)驗(yàn)結(jié)果】 routerenable router#configure terminal router(config)#access-list 101 deny ip 202.1.1.1 0.0.0.0 203.1.1.2 0.0.0.0 router(config)#access-list 101 deny ip 203.1.1.2 0.0.0.0 202.1.1.1 0.0.0.0 router(co

33、nfig)#access-list 101 permit ip 206.1.1.1 0.0.0.0 203.1.1.2 0.0.0.0 router(config)#access-list 101 permit ip 203.1.1.2 0.0.0.0 206.1.1.1 0.0.0.0 router(config)#interface serial0/0/0 router(config-if)#ip access-group 101 out router(config-if)#exit router(config)#interface serial0/0/1 router(config-if

34、)#ip access-group 101 out router(config-if)#exit router(config)#interface serial0/1/0 router(config-if)#ip access-group 101 out router(config-if)#exit 進(jìn)入特權(quán)模式 進(jìn)入全局配置模式 不允許 r1,r2 通 信 不允許 r2,r1 通 信 允許 r3,r2 通信 允許 r2,r3 通信 配置 0/0 端口 應(yīng)用訪問列表 退出 配置 0/1 端口 應(yīng)用訪問列表 退出 配置 1/0 端口 應(yīng)用訪問列表 退出 實(shí)實(shí)驗(yàn)驗(yàn) 4 【實(shí)驗(yàn)名稱 】 路由器選擇通

35、信 【實(shí)驗(yàn)要求 】 4 個(gè)路由器通過心形拓?fù)浣Y(jié)構(gòu)通過串口連接,只允許 r3 telnet 訪問 r2,不允許 r1 telnet 訪問 r2 【實(shí)驗(yàn)設(shè)備 】 思科 1841 型路由器 4 串行 dce 線 3 【拓?fù)浣Y(jié)構(gòu) 】 【實(shí)驗(yàn)過程 】 配置硬件環(huán)境 1 選擇四個(gè)思科 1841 型路由器拖放到編輯窗口 2 選擇三根閃電線,按照上圖拓?fù)浣Y(jié)構(gòu)進(jìn)行連接 3 為路由器添加串口,注意添加時(shí)須關(guān)閉路由器,后在啟動(dòng)路由,由于 router0 要連接 三個(gè)路由器,所以需要在左面的擴(kuò)展槽多加一組串口。 路由各端口 ip 及基本屬性配置 router0: routerenable router#configu

36、re terminal router(config)#interface serial0/0/0 router(config-if)#ip address 202.1.1.2 255.255.255.0 router(config-if)#clock rate 125000 router(config-if)#no shutdown router(config-if)#exit router(config)#interface serial0/0/1 router(config-if)#ip address 203.1.1.1 255.255.255.0 router(config-if)#c

37、lock rate 125000 router(config-if)#no shutdown router(config-if)#exit router(config)#interface serial0/1/0 router(config-if)#ip address 206.1.1.2 255.255.255.0 router(config-if)#clock rate 125000 router(config-if)#no shutdown router(config-if)#exit router(config)#interface serial0/1/1 router(config-

38、if)#ip address 207.1.1.1 255.255.255.0 router(config-if)#clock rate 125000 router(config-if)#no shutdown router(config-if)#exit 進(jìn)入特權(quán)模式 進(jìn)入全局配置模式 進(jìn)入路由的 serial0/0/0 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 進(jìn)入路由的 serial0/0/1 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 進(jìn)入特權(quán)模式 進(jìn)入全局配置模式 進(jìn)入路由的 serial0/1/0 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端

39、口 退出端口 進(jìn)入路由的 serial0/1/1 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 router1: router2: routerenable router#configure terminal router(config)#interface serial0/0/0 router(config-if)#ip address 202.1.1.1 255.255.255.0 router(config-if)#clock rate 125000 router(config-if)#no shutdown router(config-if)#exit router(c

40、onfig)#interface serial0/0/1 router(config-if)#ip address 201.1.1.2 255.255.255.0 router(config-if)#clock rate 125000 router(config-if)#no shutdown router(config-if)#exit 進(jìn)入特權(quán)模式 進(jìn)入全局配置模式 進(jìn)入路由的 serial0/0/0 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 進(jìn)入路由的 serial0/0/0 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 routerenable ro

41、uter#configure terminal router(config)#interface serial0/0/0 router(config-if)#ip address 203.1.1.2 255.255.255.0 router(config-if)#clock rate 125000 router(config-if)#no shutdown router(config-if)#exit router(config)#interface serial0/0/1 router(config-if)#ip address 204.1.1.1 255.255.255.0 router(

42、config-if)#clock rate 125000 router(config-if)#no shutdown router(config-if)#exit 進(jìn)入特權(quán)模式 進(jìn)入全局配置模式 進(jìn)入路由的 serial0/0/0 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 進(jìn)入路由的 serial0/0/0 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 router3: 動(dòng)態(tài)路由表配置 首先采用動(dòng)態(tài)路由配置方式使得四個(gè)路由之間可以互相 ping 通 router0: routerenable router#configure terminal router(

43、config)#router rip router(config-router)#network 202.1.1.0 router(config-router)#network 203.1.1.0 router(config-router)#network 206.1.1.0 router(config-router)#network 207.1.1.0 進(jìn)入特權(quán)模式 進(jìn)入全局配置模式 進(jìn)入動(dòng)態(tài)配置模式 配置端口 0/0 連接的子網(wǎng) 配置端口 0/1 連接的子網(wǎng) 配置端口 1/0 連接的子網(wǎng) 配置端口 1/1 連接的子網(wǎng) routerenable router#configure termin

44、al router(config)#interface serial0/0/0 router(config-if)#ip address 206.1.1.1 255.255.255.0 router(config-if)#clock rate 125000 router(config-if)#no shutdown router(config-if)#exit router(config)#interface serial0/0/1 router(config-if)#ip address 205.1.1.2 255.255.255.0 router(config-if)#clock rate

45、 125000 router(config-if)#no shutdown router(config-if)#exit 進(jìn)入特權(quán)模式 進(jìn)入全局配置模式 進(jìn)入路由的 serial0/0/0 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 進(jìn)入路由的 serial0/0/0 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 router1: router2: router3: 訪問列表配置 只允許 r3 telnet 訪問 r2,不允許 r1 telnet 訪問 r2 routerenable router#configure terminal router(confi

46、g)#router rip router(config-router)#network 201.1.1.0 router(config-router)#network 202.1.1.0 進(jìn)入特權(quán)模式 進(jìn)入全局配置模式 進(jìn)入動(dòng)態(tài)配置模式 配置端口 0/0 連接的子網(wǎng) 配置端口 0/1 連接的子網(wǎng) routerenable router#configure terminal router(config)#router rip router(config-router)#network 203.1.1.0 router(config-router)#network 204.1.1.0 進(jìn)入特權(quán)模式

47、 進(jìn)入全局配置模式 進(jìn)入動(dòng)態(tài)配置模式 配置端口 0/0 連接的子網(wǎng) 配置端口 0/1 連接的子網(wǎng) routerenable router#configure terminal router(config)#router rip router(config-router)#network 205.1.1.0 router(config-router)#network 206.1.1.0 進(jìn)入特權(quán)模式 進(jìn)入全局配置模式 進(jìn)入動(dòng)態(tài)配置模式 配置端口 0/0 連接的子網(wǎng) 配置端口 0/1 連接的子網(wǎng) router0: 【實(shí)驗(yàn)結(jié)果】 routerenable router#configure termi

48、nal router(config)#access-list 101 deny tcp 202.1.1.1 0.0.0.0 203.1.1.2 0.0.0.0 eq 23 router(config)#access-list 101 permit tcp 206.1.1.1 0.0.0.0 203.1.1.2 0.0.0.0 eq 23 router(config)#access-list 101 permit ip any any router(config)#interface serial0/0/0 router(config-if)#ip access-group 101 out ro

49、uter(config-if)#exit router(config)#interface serial0/0/1 router(config-if)#ip access-group 101 out router(config-if)#exit router(config)#interface serial0/1/0 router(config-if)#ip access-group 101 out router(config-if)#exit 進(jìn)入特權(quán)模式 進(jìn)入全局配置模式 不允許 r1 訪問 r2 允許 r3 訪問 r2 允許其他端口通信 配置 0/0 端口 應(yīng)用訪問列表 退出 配置 0/

50、1 端口 應(yīng)用訪問列表 退出 配置 1/0 端口 應(yīng)用訪問列表 退出 實(shí)實(shí)驗(yàn)驗(yàn) 5 【實(shí)驗(yàn)名稱 】 路由器選擇通信 【實(shí)驗(yàn)要求 】 4 個(gè)路由器使用心形拓?fù)浣Y(jié)構(gòu)通過串口通信,只允許 r3 telnet r2,不可 ping 通 r2,不 允許 r1 telnet r2,但可以 ping 通 【實(shí)驗(yàn)設(shè)備 】 思科 1841 型路由器 4 串行 dce 線 3 【拓?fù)浣Y(jié)構(gòu) 】 【實(shí)驗(yàn)過程 】 配置硬件環(huán)境 1 選擇四個(gè)思科 1841 型路由器拖放到編輯窗口 2 選擇三根閃電線,按照上圖拓?fù)浣Y(jié)構(gòu)進(jìn)行連接 3 為路由器添加串口,注意添加時(shí)須關(guān)閉路由器,后在啟動(dòng)路由,由于 router0 要連接 三個(gè)路

51、由器,所以需要在左面的擴(kuò)展槽多加一組串口。 路由各端口 ip 及基本屬性配置 router0: routerenable router#configure terminal router(config)#interface serial0/0/0 router(config-if)#ip address 202.1.1.2 255.255.255.0 router(config-if)#clock rate 125000 router(config-if)#no shutdown router(config-if)#exit router(config)#interface serial0/0

52、/1 router(config-if)#ip address 203.1.1.1 255.255.255.0 router(config-if)#clock rate 125000 router(config-if)#no shutdown router(config-if)#exit router(config)#interface serial0/1/0 router(config-if)#ip address 206.1.1.2 255.255.255.0 router(config-if)#clock rate 125000 router(config-if)#no shutdown

53、 router(config-if)#exit router(config)#interface serial0/1/1 router(config-if)#ip address 207.1.1.1 255.255.255.0 router(config-if)#clock rate 125000 router(config-if)#no shutdown router(config-if)#exit 進(jìn)入特權(quán)模式 進(jìn)入全局配置模式 進(jìn)入路由的 serial0/0/0 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 進(jìn)入路由的 serial0/0/1 端口 設(shè)置該端口 ip 設(shè)置

54、該端口時(shí)鐘 開啟該端口 退出端口 進(jìn)入特權(quán)模式 進(jìn)入全局配置模式 進(jìn)入路由的 serial0/1/0 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 進(jìn)入路由的 serial0/1/1 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 router1: router2: routerenable router#configure terminal router(config)#interface serial0/0/0 router(config-if)#ip address 202.1.1.1 255.255.255.0 router(config-if)#cloc

55、k rate 125000 router(config-if)#no shutdown router(config-if)#exit router(config)#interface serial0/0/1 router(config-if)#ip address 201.1.1.2 255.255.255.0 router(config-if)#clock rate 125000 router(config-if)#no shutdown router(config-if)#exit 進(jìn)入特權(quán)模式 進(jìn)入全局配置模式 進(jìn)入路由的 serial0/0/0 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘

56、開啟該端口 退出端口 進(jìn)入路由的 serial0/0/0 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 routerenable router#configure terminal router(config)#interface serial0/0/0 router(config-if)#ip address 203.1.1.2 255.255.255.0 router(config-if)#clock rate 125000 router(config-if)#no shutdown router(config-if)#exit router(config)#interfa

57、ce serial0/0/1 router(config-if)#ip address 204.1.1.1 255.255.255.0 router(config-if)#clock rate 125000 router(config-if)#no shutdown router(config-if)#exit 進(jìn)入特權(quán)模式 進(jìn)入全局配置模式 進(jìn)入路由的 serial0/0/0 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 進(jìn)入路由的 serial0/0/0 端口 設(shè)置該端口 ip 設(shè)置該端口時(shí)鐘 開啟該端口 退出端口 router3: 動(dòng)態(tài)路由表配置 首先采用動(dòng)態(tài)路由配置方式

58、使得四個(gè)路由之間可以互相 ping 通 router0: routerenable router#configure terminal router(config)#router rip router(config-router)#network 202.1.1.0 router(config-router)#network 203.1.1.0 router(config-router)#network 206.1.1.0 router(config-router)#network 207.1.1.0 進(jìn)入特權(quán)模式 進(jìn)入全局配置模式 進(jìn)入動(dòng)態(tài)配置模式 配置端口 0/0 連接的子網(wǎng) 配置端口 0/1 連接的子網(wǎng) 配置端口 1/0 連接的子網(wǎng) 配置端口 1/1 連接的子網(wǎng) routerenable router#configure terminal router(config)#interface serial0/0/0 router(config-if)#ip address 206.1.1.1 255.255.255.0

溫馨提示

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

最新文檔

評(píng)論

0/150

提交評(píng)論