日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

静态路由练习题二

發布時間:2024/2/28 编程问答 24 豆豆
生活随笔 收集整理的這篇文章主要介紹了 静态路由练习题二 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

靜態路由練習

  • 一、需求:
  • 二、思路
  • 三、命令實例
    • 1.R4
    • 2.R2
    • R3
  • 四、 連通性能測試
  • 五、總結

一、需求:

R3的測試地址與R4的測試地址連通

二、思路

  • 首先配置各個端口的IP和R3與R4的測試地址
  • 然后每個路由器手動獲取剩余不在路由表例的IP
  • 進行連接性測試

三、命令實例

1.R4

The device is running!<Huawei>undo ter mo Info: Current terminal monitor is off. <Huawei>sys Enter system view, return user view with Ctrl+Z. [Huawei]sysname R4 [R4]int e0/0/0 [R4-Ethernet0/0/0]ip add 10.1.1.2 24 [R4-Ethernet0/0/0]q [R4]int LoopBack 0 [R4-LoopBack0]ip add 192.168.1.10 24 [R4-LoopBack0]q [R4]ip route-static 10.1.2.0 24 10.1.1.3 #手動獲取10.1.2.0網段的IP [R4]ip route-static 172.16.1.0 24 10.1.1.3 #手動獲取172.16.1.0網段的IP Info: The destination address and mask of the configured static route mismatched , and the static route 172.16.1.0/24 was generated.

2.R2

The device is running!<Huawei>undo ter mo Info: Current terminal monitor is off. <Huawei>sys Enter system view, return user view with Ctrl+Z. [Huawei]sysn [Huawei]sysname R2 [R2]int e0/0/0 [R2-Ethernet0/0/0]ip add 10.1.1.3 24 [R2-Ethernet0/0/0]int e0/0/1 [R2-Ethernet0/0/1]ip add 10.1.2.3 24 [R2-Ethernet0/0/1]q [R2]ip route-static 192.168.1.0 24 10.1.1.2 #手動獲取192.168.1.0網段的IP Info: The destination address and mask of the configured static route mismatched , and the static route 192.168.1.0/24 was generated. [R2]ip route-static 172.16.1.0 24 10.1.2.4 #手動獲取172.16.1.0網段的IP Info: The destination address and mask of the configured static route mismatched , and the static route 172.16.1.0/24 was generated.

R3

The device is running!<Huawei>undo ter mo Info: Current terminal monitor is off. <Huawei>sys Enter system view, return user view with Ctrl+Z. [Huawei]sysn R3 [R3]int e0/0/0 [R3-Ethernet0/0/0]ip add 10.1.2.4 24 [R3-Ethernet0/0/0]q [R3]int loopb 0 [R3-LoopBack0]ip add 172.16.1.10 24 [R3-LoopBack0]q [R3]ip route-static 10.1.1.0 24 10.1.2.3 #手動獲取10.1.1.0網段的IP [R3]ip route-static 192.168.1.0 24 10.1.2.3 #手動獲取1192.168.1.0網段的IP Info: The destination address and mask of the configured static route mismatched , and the static route 192.168.1.0/24 was generated.

四、 連通性能測試

R4測試地址主動連接R3測試地址

[R4]ping -a 192.168.1.10 172.16.1.10PING 172.16.1.10: 56 data bytes, press CTRL_C to breakReply from 172.16.1.10: bytes=56 Sequence=1 ttl=254 time=60 msReply from 172.16.1.10: bytes=56 Sequence=2 ttl=254 time=30 msReply from 172.16.1.10: bytes=56 Sequence=3 ttl=254 time=60 msReply from 172.16.1.10: bytes=56 Sequence=4 ttl=254 time=50 msReply from 172.16.1.10: bytes=56 Sequence=5 ttl=254 time=60 ms--- 172.16.1.10 ping statistics ---5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max = 30/52/60 ms

R3測試地址主動連接R4測試地址

[R3]ping -a 172.16.1.10 192.168.1.10PING 192.168.1.10: 56 data bytes, press CTRL_C to breakReply from 192.168.1.10: bytes=56 Sequence=1 ttl=254 time=100 msReply from 192.168.1.10: bytes=56 Sequence=2 ttl=254 time=50 msReply from 192.168.1.10: bytes=56 Sequence=3 ttl=254 time=60 msReply from 192.168.1.10: bytes=56 Sequence=4 ttl=254 time=60 msReply from 192.168.1.10: bytes=56 Sequence=5 ttl=254 time=70 ms--- 192.168.1.10 ping statistics ---5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max = 50/68/100 ms

五、總結

靜態路由雖然不難,但是也是重要的知識點之一,需牢記,所以多做實驗,熟記于心。

總結

以上是生活随笔為你收集整理的静态路由练习题二的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。