静态路由练习题二
靜態路由練習
- 一、需求:
- 二、思路
- 三、命令實例
- 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 msR3測試地址主動連接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五、總結
靜態路由雖然不難,但是也是重要的知識點之一,需牢記,所以多做實驗,熟記于心。
總結
 
                            
                        - 上一篇: 内存超频4600,让你的电脑秒变游戏利器
- 下一篇: hof 内存 chh:计算机大脑新宠,速
