11.6.1:綜合技巧練習(xí) - 配置并測試網(wǎng)絡(luò)

實(shí)驗(yàn)環(huán)境:packet Tracer5.0

實(shí)驗(yàn)拓補(bǔ)如下:

實(shí)驗(yàn)要求:

Learning Objectives:

創(chuàng)建、測試并配置整個(gè)實(shí)驗(yàn)網(wǎng)絡(luò)

綜合運(yùn)用整套課程中學(xué)到的技巧

分析請求網(wǎng)頁所涉及的事件(DNS、ARP、HTTP、TCP、IP、Ethernet、HDLC)

分析在跟蹤到 Web 服務(wù)器的路由時(shí)所涉及的事件(DNS、UDP、ARP、ICMP、IP、Ethernet、HDLC)

背景:

整套課程始終著意于培養(yǎng)您的網(wǎng)絡(luò)規(guī)劃、構(gòu)建、配置和測試技能。同時(shí)也讓學(xué)生從概念上了解網(wǎng)絡(luò)協(xié)議。下面將讓您進(jìn)行一次自我測驗(yàn)。

在本 Packet Tracer 技巧綜合練習(xí)實(shí)驗(yàn)中,您將創(chuàng)建、分配地址、配置并測試整個(gè)課程中使用的標(biāo)準(zhǔn)實(shí)驗(yàn)拓?fù)洹?b>

任務(wù) 1:計(jì)劃使用標(biāo)準(zhǔn) Exploration 實(shí)驗(yàn)拓?fù)溆?jì)劃 IP 編址方案:

兩臺 1841 路由器,其 WIC-2T 接口卡安裝在右手插槽中(一個(gè)名為 R1-ISP,通過串行 DCE WAN 連接到 R2-Central,通過 Fa0/0 LAN 連接到 Eagle_Server;另一個(gè)名為 R2-Central,通過串行 DTE WAN 連接到 R1-ISP,通過 Fa0/0 LAN 連接到 S1-Central)

一臺 2960TT 交換機(jī) (S1-Central)

兩臺 PC,分別名為 1A 和 1B

一臺服務(wù)器,名為 Eagle_Server。

請注意,必須準(zhǔn)確配置所有設(shè)備的顯示名稱和主機(jī)名稱,一般而言,必須完全按照這些說明鍵入所有字符串(名稱、密碼和標(biāo)語),Packet Tracer 才能正確為練習(xí)評分。

為您分配的 IP 地址塊為 192.168.3.0 /24,您必須支持現(xiàn)有的網(wǎng)絡(luò),同時(shí)還要考慮未來的發(fā)展。

子網(wǎng)的具體情況為:

第 1 個(gè)子網(wǎng)為現(xiàn)有的學(xué)生 LAN,最多支持 28 臺主機(jī)(R2-Central 上的 Fa0/0,連接到 S1-Central 上的 Fa0/24)

第 2 個(gè)子網(wǎng)為未來的學(xué)生 LAN,最多支持 28 臺主機(jī)(尚未實(shí)施)

第 3 個(gè)子網(wǎng)為現(xiàn)有的 ISP LAN,最多支持 14 臺主機(jī)(R1-ISP 上的 Fa0/0)

第 4 個(gè)子網(wǎng)為未來的 ISP LAN,最多支持 7 臺主機(jī)(尚未實(shí)施)

第 5 個(gè)子網(wǎng)為現(xiàn)有的 WAN,采用點(diǎn)到點(diǎn)鏈路(R1-ISP 上的 S0/0/0 和 R2-Central 上的 S0/0/0)

IP 地址的具體情況為:

對于服務(wù)器,配置 ISP LAN 子網(wǎng)中可用的第二大 IP 地址。

對于 R1-ISP 的 Fa0/0 接口,配置 ISP LAN 子網(wǎng)中可用的最大 IP 地址。

對于 R1-ISP 的 S0/0/0 接口,配置現(xiàn)有 WAN 子網(wǎng)中可用的最大地址。

對于 R2-Central 的 S0/0/0 接口,使用現(xiàn)有 WAN 子網(wǎng)中可用的最小地址。

對于 R2-Central 的 Fa0/0 接口,使用現(xiàn)有學(xué)生 LAN 子網(wǎng)中可用的最大地址,并將其連接到 S1-Central 上的 Fa0/24 接口。

對于主機(jī) 1A 和 1B,使用現(xiàn)有學(xué)生 LAN 子網(wǎng)中的前兩個(gè) IP 地址(可用的兩個(gè)最小地址),并將它們分別連接到 S1-Central 上的 Fa0/1 和 Fa0/2 接口。

對于主機(jī)管理接口,使用學(xué)生子網(wǎng)中可用的第二大地址。

任務(wù) 2:創(chuàng)建并配置網(wǎng)絡(luò)

創(chuàng)建網(wǎng)絡(luò),按照說明進(jìn)行連接。配置兩個(gè)路由器、交換機(jī)、服務(wù)器及兩臺 PC。

使用 CLI 配置路由器。路由器配置必須包括 "housekeeping"(主機(jī)名、密碼和標(biāo)語)、接口(FastEthernet 和 Serial)和路由(R1-ISP 上的靜態(tài)路由,R2-Central 上的默認(rèn)路由)。以下登錄密碼應(yīng)全部設(shè)置為 "cisco"(不含引號):使能口令、控制臺和 Telnet。標(biāo)語內(nèi)容應(yīng)為**這是實(shí)驗(yàn)路由器 R1-ISP,未經(jīng)授權(quán),禁止使用。**以及**這是實(shí)驗(yàn)路由器 R2-Central,未經(jīng)授權(quán),禁止使用。**

接口應(yīng)按照以上 IP 編址章節(jié)的說明配置;在 R1-ISP S0/0/0 接口上使用時(shí)鐘速率 64000。R1-ISP 上的靜態(tài)路由應(yīng)通過 R2-Central 的串行接口 IP 地址指向現(xiàn)有的學(xué)生 LAN 子網(wǎng);R2-Central 上的靜態(tài)路由應(yīng)是通過 R1-ISP 串行接口 IP 地址指向的默認(rèn)靜態(tài)路由。只要配置了 Cisco IOS 設(shè)備,請務(wù)必保存配置。

在交換機(jī)配置主機(jī)名、標(biāo)語(**這是實(shí)驗(yàn)交換機(jī) S1-Central,未經(jīng)授權(quán),禁止使用。**)、訪問的登錄密碼(使能加密口令、控制臺密碼和 Telnet 密碼都設(shè)置為 "cisco")和管理接口 (interface vlan1)。只要配置了 Cisco IOS 設(shè)備,請務(wù)必保存配置。

對于主機(jī) 1A 和 1B,除了 IP 配置之外,還要配置它們使用 DNS 服務(wù)。對于服務(wù)器,需啟用 DNS 服務(wù),使用域名 eagle-server.example.com,并且啟用 HTTP 服務(wù)。

在工作時(shí),可使用 "Check Results"(檢查結(jié)果)查看仍需配置的組件。如果需要更多練習(xí),可使用 "Reset Activity"(重置練習(xí))按鈕,并且重新計(jì)時(shí),再次完成整個(gè)配置。

任務(wù) 3:測試和分析建議通過 ping 和 Telnet 測試連通性并檢查路由表。當(dāng)您確信網(wǎng)絡(luò)可以運(yùn)行之后,確保將配置保存在 Cisco IOS 設(shè)備中。然后重新啟動(dòng)設(shè)備,并重置網(wǎng)絡(luò)。在模擬模式中請求網(wǎng)頁,使以下協(xié)議顯示在事件列表中:DNS、HTTP、Telnet、TCP、UDP、ICMP、ARP。檢查設(shè)備處理時(shí)的數(shù)據(jù)包,以研究協(xié)議行為,特別是 IP 如何參與所有活動(dòng)。另請注意主機(jī)、交換機(jī)和路由器使用的算法。向同學(xué)說明整個(gè)過程。再次重新啟動(dòng)設(shè)備以清除網(wǎng)絡(luò)配置,仍然保持在模擬模式中,從一臺 PC 向服務(wù)器發(fā)出 traceroute。研究 ICMP 回應(yīng)請求如何構(gòu)成跟蹤。再次向同學(xué)說明整個(gè)過程。

思考:匯總歸納

將任務(wù) 3 中觀察到的過程與 TCP/IP 協(xié)議圖對應(yīng)起來。在 Packet Tracer 中創(chuàng)建網(wǎng)絡(luò)模型的技巧對于學(xué)習(xí)后面的課程很有用。


1、配置所有設(shè)備的顯示名稱和主機(jī)名稱,一般而言,必須完全按照這些說明鍵入所有字符串(名稱、密碼和標(biāo)語)

設(shè)置名稱、關(guān)閉每臺設(shè)備的域名查找功能(no ip domain-lookup):

Eagle_Server


R1-ISP

```

Router>enable

Router#conf terminal

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

Router(config)#no ip domain-lookup

Router(config)#hostname R1-ISP

R1-ISP(config)#

```

R2-Central

```

Router>

Router>enable

Router#conf terminal

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

R2-Central(config)#no ip domain-lookup

Router(config)#hostname R2-Central

R2-Central(config)#

```

S1-Central

```

Switch>

Switch>enable

Switch#conf terminal

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

Switch(config)#hostname S1-Central

S1-Central(config)#

```

2、給路由和交換機(jī)設(shè)置登錄標(biāo)語banner ? 輸入標(biāo)語后面要以#號結(jié)束

R1-ISP

```

R1-ISP(config)#banner motd #

Enter TEXT message.? End with the character '#'.

** This is the experimental router R1-ISP, unauthorized, prohibited use. ** #

```

R2-Central

```

R2-Central(config)#banner motd #

Enter TEXT message.? End with the character '#'.

** This is the experimental router R2-Central, unauthorized, prohibited use. **#

```

S1-Central

```

S1-Central(config)#banner motd #

Enter TEXT message.? End with the character '#'.

** This is the experimental switch S1-Central, unauthorized, prohibited. **#

```

3、給每臺設(shè)備配置地址

Eagle Server

PC 1A


PC 1B


R2-Central

```

R2-Central(config)#interface fastEthernet 0/0

R2-Central(config-if)#ip address 192.168.3.30 255.255.255.224

R2-Central(config-if)#no shutdown

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R2-Central(config-if)#exit

R2-Central(config)#interface serial 0/0/0

R2-Central(config-if)#ip address 192.168.3.97 255.255.255.252

R2-Central(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down

```


R1-ISP

```

R1-ISP(config)#interface fastEthernet 0/0

R1-ISP(config-if)#ip address 192.168.3.78 255.255.255.240

R1-ISP(config-if)#no shutdown

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R1-ISP(config-if)#exit

R1-ISP(config)#interface serial 0/0/0

R1-ISP(config-if)#ip address 192.168.3.98 255.255.255.252

R1-ISP(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up

R1-ISP(config-if)#

```

S1-Central

```

S1-Central(config)#interface vlan 1

S1-Central(config-if)#ip address 192.168.3.29 255.255.255.224

S1-Central(config-if)#no shutdown

%LINK-5-CHANGED: Interface Vlan1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up

S1-Central(config-if)#

```

4、在 R1-ISP S0/0/0 接口上使用時(shí)鐘速率 64000

```

R1-ISP(config)#interface serial 0/0/0

R1-ISP(config-if)#clock rate 64000

R1-ISP(config-if)#no shutdown

R1-ISP(config-if)#

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up

```

5、服務(wù)器,需啟用 DNS 服務(wù),使用域名 eagle-server.example.com,并且啟用 HTTP 服務(wù)

開啟http服務(wù)


開啟DNS Serive ,Name:eagle-server.example.com ? ?address:192.168.3.77 ? 然后添加

6、設(shè)置靜待路由和默認(rèn)路由

R1-ISP

```

R1-ISP(config)#ip route 192.168.3.0 255.255.255.224 192.168.3.97

R1-ISP(config)#

```

R2-Central

` R2-Central(config)#ip route 0.0.0.0 0.0.0.0 192.168.3.98 `

7、設(shè)置密碼

R1-ISP

```

R1-ISP(config)#line console 0

R1-ISP(config-line)#password cisco

R1-ISP(config-line)#login

R1-ISP(config-line)#exit

R1-ISP(config)#line vty 0 4

R1-ISP(config-line)#password? cisco

R1-ISP(config-line)#login

R1-ISP(config-line)#exit

```

R2-Central

```

R2-Central(config)#line console 0

R2-Central(config-line)#password cisco

R2-Central(config-line)#login

R2-Central(config-line)#exit

R2-Central(config)# line vty 0 4

R2-Central(config-line)#password cisco

R2-Central(config-line)#login

R2-Central(config-line)#exit

```

S1-Central

```

S1-Central(config)#line console 0

S1-Central(config-line)#password cisco

S1-Central(config-line)#login

S1-Central(config-line)#exit

S1-Central(config)#line vty 0 4

S1-Central(config-line)#password cisco

S1-Central(config-line)#login

S1-Central(config-line)#exit

```

PS:一般密碼最后配置,不然中間配置其他命令的時(shí)候要一直輸密碼。

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容