實驗三————配置靜態路由
實驗目的
通過本實驗,可以掌握以下技能:
- 配置介面IP地址。
- 配置靜態路由。
- 驗證靜態路由的配置。
裝置需求
- Cisco路由器3臺,分別命名為RouterA、RouterB和RouterC。其中RouterA具有1個乙太網介面和1個序列介面;RouterB具有1個乙太網介面和2個序列介面;RouterC具有1個乙太網介面和1個序列介面。
- 3根交叉線序雙絞線,2根序列線。
- 1臺access server,及用於反向Telnet的相應電纜。
- 1臺帶有超級終端程式的PC機,以及Console電纜及轉接器。
- 拓撲結構及配置說明
實驗的拓撲結構如圖10-2所示。通過2根序列線分別把RouterA和RouterB連線起來,RouterB和RouterC連線起來。
各路由器使用的介面及其編號見圖10-2所示的標註,各介面IP地址分配如下:
- RouterA: E0:172.16.11.1 S0:172.16.20.1
- RouterB:E0:172.16.10.6 S0:172.16.20.2 S1:172.16.40.1
- RouterC: E0:172.16.50.1 S0:172.16.40.2
實驗配置
基本網路配置
這個實驗的這一步和之前的實驗二一樣,這裡不再複述,最後的網路拓撲如下
配置靜態路由
RouterA:
RouterA>enable
Password:
RouterA#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
RouterA(config)#ip route 172.16.10.0 255.255.255.0 172.16.20.0
RouterA(config)#ip route 172.16.40.0 255.255.255.0 172.16.20.0
RouterA(config)#ip route 172.16.50.0 255.255.255.0 172.16.20.0
RouterA(config)#
RouterB:
RouterB>enable
RouterB#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
RouterB(config)#ip route 172.16.50.0 255.255.255.0 172.16.40.2
RouterB(config)#ip route 172.16.11.0 255.255.255.0 172.16.20.1
RouterB(config)#
RouterC:
RouterC>enable
RouterC#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
RouterC(config)#ip route 172.16.11.0 255.255.255.0 172.16.40.1
RouterC(config)#ip route 172.16.20.0 255.255.255.0 172.16.40.1
RouterC(config)#ip route 172.16.10.0 255.255.255.0 172.16.40.1
RouterC(config)#
驗證靜態路由配置
RouterA:
RouterB:
RouterC:
網路拓撲
檢視主機PC2的ip地址
用主機PC2依次去ping RouterA \RouterB \RouterC\PC3
PC>ping 172.16.11.1
Pinging 172.16.11.1 with 32 bytes of data:
Reply from 172.16.11.1: bytes=32 time=9ms TTL=255
Reply from 172.16.11.1: bytes=32 time=0ms TTL=255
Reply from 172.16.11.1: bytes=32 time=0ms TTL=255
Reply from 172.16.11.1: bytes=32 time=0ms TTL=255
Ping statistics for 172.16.11.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 9ms, Average = 2ms
PC>ping 172.16.20.2
Pinging 172.16.20.2 with 32 bytes of data:
Reply from 172.16.20.2: bytes=32 time=1ms TTL=254
Reply from 172.16.20.2: bytes=32 time=2ms TTL=254
Reply from 172.16.20.2: bytes=32 time=5ms TTL=254
Reply from 172.16.20.2: bytes=32 time=1ms TTL=254
Ping statistics for 172.16.20.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 5ms, Average = 2ms
PC>ping 172.16.40.1
Pinging 172.16.40.1 with 32 bytes of data:
Reply from 172.16.40.1: bytes=32 time=7ms TTL=254
Reply from 172.16.40.1: bytes=32 time=8ms TTL=254
Reply from 172.16.40.1: bytes=32 time=9ms TTL=254
Reply from 172.16.40.1: bytes=32 time=5ms TTL=254
Ping statistics for 172.16.40.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 5ms, Maximum = 9ms, Average = 7ms
PC>ping 172.16.40.2
Pinging 172.16.40.2 with 32 bytes of data:
Reply from 172.16.40.2: bytes=32 time=12ms TTL=253
Reply from 172.16.40.2: bytes=32 time=15ms TTL=253
Reply from 172.16.40.2: bytes=32 time=6ms TTL=253
Reply from 172.16.40.2: bytes=32 time=7ms TTL=253
Ping statistics for 172.16.40.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 6ms, Maximum = 15ms, Average = 10ms
PC>ping 172.16.50.1
Pinging 172.16.50.1 with 32 bytes of data:
Reply from 172.16.50.1: bytes=32 time=4ms TTL=253
Reply from 172.16.50.1: bytes=32 time=9ms TTL=253
Reply from 172.16.50.1: bytes=32 time=6ms TTL=253
Reply from 172.16.50.1: bytes=32 time=2ms TTL=253
Ping statistics for 172.16.50.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 2ms, Maximum = 9ms, Average = 5ms
PC>ping 172.16.50.2
Pinging 172.16.50.2 with 32 bytes of data:
Request timed out.
Reply from 172.16.50.2: bytes=32 time=7ms TTL=125
Reply from 172.16.50.2: bytes=32 time=2ms TTL=125
Reply from 172.16.50.2: bytes=32 time=6ms TTL=125
Ping statistics for 172.16.50.2:
Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
Minimum = 2ms, Maximum = 7ms, Average = 5ms
PC>ping 172.16.50.2
Pinging 172.16.50.2 with 32 bytes of data:
Reply from 172.16.50.2: bytes=32 time=8ms TTL=125
Reply from 172.16.50.2: bytes=32 time=6ms TTL=125
Reply from 172.16.50.2: bytes=32 time=9ms TTL=125
Reply from 172.16.50.2: bytes=32 time=3ms TTL=125
Ping statistics for 172.16.50.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 3ms, Maximum = 9ms, Average = 6ms
PC>
PC>
由以上的測試,我們可以發現實驗三在實驗二的基礎之上新增靜態路由之後,可以實現從主機PC2到主機PC3的聯通!
至此,我們的本次實驗到此結束!
相關文章
- 靜態路由實驗路由
- 靜態路由綜合實驗路由
- 靜態路由練習實驗路由
- 靜態路由及綜合實驗路由
- 實驗3.直連靜態路由實驗路由
- 配置rip動態路由實驗路由
- 靜態路由規則配置路由
- 靜態路由原理與配置路由
- 網路配置2:靜態路由配置路由
- 實驗十四——————IP地址劃分和靜態路由路由
- eNSP華為靜態路由--浮動路由配置。路由
- Linux-靜態路由相關配置Linux路由
- 靜態路由路由
- 計算機網路 : 靜態路由配置計算機網路路由
- 靜態路由和動態路由路由
- 路由器基礎介紹,及配置靜態路由,預設路由路由器
- 計算機網路實驗二:動態路由配置計算機網路路由
- linux配置靜態路由解決網路問題Linux路由
- 第三天-centos配置靜態IPCentOS
- mac/linux 新增靜態路由MacLinux路由
- CCNA - Part12 - 路由協議 (1) - 靜態路由,動態路由 RIP路由協議
- 實驗二——————路由器口令配置路由器
- .NET探索模型路由約定實現偽靜態模型路由
- spring-cloud-gateway靜態路由SpringCloudGateway路由
- 簡單介紹靜態路由路由
- 思科與H3C配置命令對比 靜態路由&OSPF路由
- 實驗十五————動態路由協議RIP路由協議
- 實驗十六——————動態路由OSPF基礎路由
- 跨網段通訊實戰(支援靜態路由表的家用路由)路由
- 實驗二十————OSPF路由彙總的配置路由
- CentOS配置靜態IPCentOS
- linux靜態ip 配置Linux
- windows 新增和刪除靜態路由Windows路由
- centos7 永久新增靜態路由CentOS路由
- Linux 設定靜態路由表Linux路由
- 網路拓撲例項12:靜態路由實現路由負載分擔路由負載
- 網站偽靜態配置網站
- Linux中配置靜態IPLinux