静态路由实验

简介: 首先进行IP的划分,这里一共有7条链路,路由上上必须具备两个环回地址,5个路由器一共10个环回地址,17个IP地址再加上两个(全0和全1),一共19个在2^4到, 2^5中,所以借5位。

一、拓扑图、要求

faf18f64b9604db49d33300f30756e7e.png

二、分析过程

首先进行IP的划分,这里一共有7条链路,路由上上必须具备两个环回地址,5个路由器一共10个环回地址

,17个IP地址再加上两个(全0和全1),一共19个在2^4到, 2^5中,所以借5位。

192.168.1.0 /24

192.168.1.00000 000/29

子网 , 有效的主机 , 广播地址

192.168.1.0 , 192.168.1.1 到 192.168.1.6 , 192.168.1.7

192.168.1.8 , 192.168.1.9 到 192.168.1.14 , 192.168.1.15

192.168.1.16 , 192.168.1.17 到 192.168.1.22 , 192.168.1.23

192.168.1.24 , 192.168.1.25 到 192.168.1.30 , 192.168.1.31

192.168.1.32 , 192.168.1.33 到 192.168.1.38 , 192.168.1.39

192.168.1.40 , 192.168.1.41 到 192.168.1.46 , 192.168.1.47

192.168.1.48 , 192.168.1.49 到 192.168.1.54 , 192.168.1.55

192.168.1.56 , 192.168.1.57 到 192.168.1.62 , 192.168.1.63

192.168.1.64 , 192.168.1.65 到 192.168.1.70 , 192.168.1.71

192.168.1.72 , 192.168.1.73 到 192.168.1.78 , 192.168.1.79

192.168.1.80 , 192.168.1.81 到 192.168.1.86 , 192.168.1.87

192.168.1.88 , 192.168.1.89 到 192.168.1.94 , 192.168.1.95

192.168.1.96 , 192.168.1.97 到 192.168.1.102 , 192.168.1.103

192.168.1.104 , 192.168.1.105 到 192.168.1.110 , 192.168.1.111

192.168.1.112 , 192.168.1.113 到 192.168.1.118 , 192.168.1.119

192.168.1.120 , 192.168.1.121 到 192.168.1.126 , 192.168.1.127

192.168.1.128 , 192.168.1.129 到 192.168.1.134 , 192.168.1.135

192.168.1.136 , 192.168.1.137 到 192.168.1.142 , 192.168.1.143

192.168.1.144 , 192.168.1.145 到 192.168.1.150 , 192.168.1.151


192.168.1.152 , 192.168.1.153 到 192.168.1.158 , 192.168.1.159

然后开始配IP


三、配置路由器

R1的环回路由器接口和路由表

90306255e489411d8ff2717df94d83dc.png

    192.168.1.8/29  Static  60   0          RD   192.168.1.1     GigabitEthernet
0/0/0
   192.168.1.16/29  Static  60   0          RD   192.168.1.1     GigabitEthernet
0/0/0
   192.168.1.24/29  Static  60   0          RD   192.168.1.1     GigabitEthernet
0/0/0
   192.168.1.72/29  Static  60   0          RD   192.168.1.50    GigabitEthernet
0/0/1
   192.168.1.80/29  Static  60   0          RD   192.168.1.50    GigabitEthernet
0/0/1
   192.168.1.88/29  Static  60   0          RD   192.168.1.50    GigabitEthernet
0/0/1
   192.168.1.96/29  Static  60   0          RD   192.168.1.50    GigabitEthernet
0/0/1
  192.168.1.104/29  Static  60   0          RD   192.168.1.50    GigabitEthernet
0/0/1
  192.168.1.112/29  Static  60   0          RD   192.168.1.50    GigabitEthernet
0/0/1
  192.168.1.120/29  Static  60   0          RD   192.168.1.50    GigabitEthernet
0/0/1
  192.168.1.128/29  Static  60   0          RD   192.168.1.50    GigabitEthernet
0/0/1

R2的环回路由器接口和路由表

aa7551d435cd4371a7af3c19d15d570a.png

192.168.1.32/29  Static  60   0          RD   192.168.1.2     GigabitEthernet
0/0/0
   192.168.1.40/29  Static  60   0          RD   192.168.1.2     GigabitEthernet
0/0/0
   192.168.1.48/29  Static  60   0          RD   192.168.1.2     GigabitEthernet
0/0/0
   192.168.1.56/29  Static  60   0          RD   192.168.1.26    GigabitEthernet
0/0/1
   192.168.1.64/29  Static  60   0          RD   192.168.1.26    GigabitEthernet
0/0/1
   192.168.1.72/29  Static  60   0          RD   192.168.1.26    GigabitEthernet
0/0/1
   192.168.1.96/29  Static  60   0          RD   192.168.1.26    GigabitEthernet
0/0/1
                    Static  60   0          RD   192.168.1.2     GigabitEthernet
0/0/0
  192.168.1.104/29  Static  60   0          RD   192.168.1.26    GigabitEthernet
0/0/1
                    Static  60   0          RD   192.168.1.2     GigabitEthernet
0/0/0
  192.168.1.128/29  Static  60   0          RD   192.168.1.2     GigabitEthernet
0/0/0
                    Static  60   0          RD   192.168.1.26    GigabitEthernet
0/0/1

R3的环回路由器接口和路由表

fbee0a34f26140a3bc0c2836f05a258f.png

 192.168.1.0/29  Static  60   0          RD   192.168.1.49    GigabitEthernet
0/0/0
    192.168.1.8/29  Static  60   0          RD   192.168.1.73    GigabitEthernet
0/0/1
                    Static  60   0          RD   192.168.1.49    GigabitEthernet
0/0/0
   192.168.1.16/29  Static  60   0          RD   192.168.1.49    GigabitEthernet
0/0/0
                    Static  60   0          RD   192.168.1.73    GigabitEthernet
0/0/1
   192.168.1.24/29  Static  60   0          RD   192.168.1.73    GigabitEthernet
0/0/1
   192.168.1.32/29  Static  60   0          RD   192.168.1.49    GigabitEthernet
0/0/0
   192.168.1.40/29  Static  60   0          RD   192.168.1.49    GigabitEthernet
0/0/0
   192.168.1.56/29  Static  60   0          RD   192.168.1.73    GigabitEthernet
0/0/1
   192.168.1.64/29  Static  60   0          RD   192.168.1.73    GigabitEthernet
0/0/1
  192.168.1.112/29  Static  60   0          RD   192.168.1.106   GigabitEthernet
0/0/2
  192.168.1.120/29  Static  60   0          RD   192.168.1.106   GigabitEthernet
0/0/2
  192.168.1.128/29  Static  100  0          RD   192.168.1.106   GigabitEthernet
0/0/2

R4的环回路由器接口和路由表

9e2c89f674ac4d89b7f8f85af69be04f.png

   192.168.1.0/29  Static  60   0          RD   192.168.1.25    GigabitEthernet
0/0/0
    192.168.1.8/29  Static  60   0          RD   192.168.1.25    GigabitEthernet
0/0/0
   192.168.1.16/29  Static  60   0          RD   192.168.1.25    GigabitEthernet
0/0/0
   192.168.1.24/29  Direct  0    0           D   192.168.1.26    GigabitEthernet
0/0/0
   192.168.1.26/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
   192.168.1.31/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
   192.168.1.48/29  Static  60   0          RD   192.168.1.74    GigabitEthernet
0/0/1
   192.168.1.80/29  Static  60   0          RD   192.168.1.74    GigabitEthernet
0/0/1
   192.168.1.88/29  Static  60   0          RD   192.168.1.74    GigabitEthernet
0/0/1
   192.168.1.96/29  Static  60   0          RD   192.168.1.74    GigabitEthernet
0/0/1
  192.168.1.104/29  Static  60   0          RD   192.168.1.74    GigabitEthernet
0/0/1
  192.168.1.112/29  Static  60   0          RD   192.168.1.74    GigabitEthernet
0/0/1
  192.168.1.120/29  Static  60   0          RD   192.168.1.74    GigabitEthernet
0/0/1
  192.168.1.128/29  Static  60   0          RD   192.168.1.74    GigabitEthernet
0/0/1

R5的环回路由器接口和路由表

c29c7149502c4b208442d455e93d084c.png

192.168.1.0/29  Static  60   0          RD   192.168.1.105   GigabitEthernet
0/0/0
    192.168.1.8/29  Static  60   0          RD   192.168.1.104   GigabitEthernet
0/0/0
   192.168.1.16/29  Static  60   0          RD   192.168.1.104   GigabitEthernet
0/0/0
   192.168.1.24/29  Static  60   0          RD   192.168.1.105   GigabitEthernet
0/0/0
   192.168.1.32/29  Static  60   0          RD   192.168.1.104   GigabitEthernet
0/0/0
   192.168.1.40/29  Static  60   0          RD   192.168.1.104   GigabitEthernet
0/0/0
   192.168.1.48/29  Static  60   0          RD   192.168.1.105   GigabitEthernet
0/0/0
   192.168.1.56/29  Static  60   0          RD   192.168.1.104   GigabitEthernet
0/0/0
   192.168.1.64/29  Static  60   0          RD   192.168.1.104   GigabitEthernet
0/0/0
   192.168.1.72/29  Static  60   0          RD   192.168.1.105   GigabitEthernet
0/0/0
   192.168.1.80/29  Static  60   0          RD   192.168.1.105   GigabitEthernet
0/0/0
   192.168.1.88/29  Static  60   0          RD   192.168.1.105   GigabitEthernet
0/0/0

R5DHCP

62fbf760945a4b499b5f313a16cd2135.png

f90e10bc1b2644da952689973827d687.png

测试

PC>ping 192.168.1.9
Ping 192.168.1.9: 32 data bytes, Press Ctrl_C to break
Request timeout!
From 192.168.1.9: bytes=32 seq=2 ttl=252 time=63 ms
From 192.168.1.9: bytes=32 seq=3 ttl=252 time=62 ms
From 192.168.1.9: bytes=32 seq=4 ttl=252 time=63 ms
From 192.168.1.9: bytes=32 seq=5 ttl=252 time=62 ms
--- 192.168.1.9 ping statistics ---
  5 packet(s) transmitted
  4 packet(s) received
  20.00% packet loss
  round-trip min/avg/max = 0/62/63 ms
PC>ping 192.168.1.57
Ping 192.168.1.57: 32 data bytes, Press Ctrl_C to break
From 192.168.1.57: bytes=32 seq=1 ttl=253 time=63 ms
From 192.168.1.57: bytes=32 seq=2 ttl=253 time=47 ms
From 192.168.1.57: bytes=32 seq=3 ttl=253 time=47 ms
From 192.168.1.57: bytes=32 seq=4 ttl=253 time=46 ms
From 192.168.1.57: bytes=32 seq=5 ttl=253 time=47 ms
--- 192.168.1.57 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 46/50/63 ms
PC>ping 192.168.1.33
Ping 192.168.1.33: 32 data bytes, Press Ctrl_C to break
From 192.168.1.33: bytes=32 seq=1 ttl=253 time=62 ms
From 192.168.1.33: bytes=32 seq=2 ttl=253 time=47 ms
From 192.168.1.33: bytes=32 seq=3 ttl=253 time=31 ms
From 192.168.1.33: bytes=32 seq=4 ttl=253 time=47 ms
From 192.168.1.33: bytes=32 seq=5 ttl=253 time=32 ms
--- 192.168.1.33 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 31/43/62 ms
PC>
PC>ping 192.168.1.81
Ping 192.168.1.81: 32 data bytes, Press Ctrl_C to break
From 192.168.1.81: bytes=32 seq=1 ttl=254 time=47 ms
From 192.168.1.81: bytes=32 seq=2 ttl=254 time=46 ms
From 192.168.1.81: bytes=32 seq=3 ttl=254 time=16 ms
From 192.168.1.81: bytes=32 seq=4 ttl=254 time=47 ms
From 192.168.1.81: bytes=32 seq=5 ttl=254 time=47 ms
--- 192.168.1.81 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 16/40/47 ms

全网可达

相关文章
|
2月前
|
网络架构
静态路由 网络实验
本文介绍了如何通过配置静态路由实现不同网络设备间的通信,包括网络拓扑图、设备IP配置、查看路由表信息、配置静态路由和测试步骤。通过在路由器上设置静态路由,使得不同子网内的设备能够互相通信。
静态路由 网络实验
|
6月前
|
负载均衡 网络协议 网络架构
静态路由 及其 实验操作
静态路由 及其 实验操作
|
6月前
|
网络架构
静态路由实验
静态路由实验
|
6月前
|
网络虚拟化
三层交换实验
三层交换实验
|
6月前
|
网络虚拟化 网络架构
单臂路由实验
单臂路由实验
|
6月前
|
网络协议 网络架构
|
网络协议 网络虚拟化 网络架构
路由协议实验
路由协议实验
287 0
路由协议实验
|
安全 网络安全 网络架构
Cisco—静态路由小实验
Cisco—静态路由小实验
138 0
Cisco—静态路由小实验
|
网络架构
静态路由|说明&实验
静态路由|说明&实验
静态路由|说明&实验
|
网络架构
eNSP | 静态路由配置实验
eNSP | 静态路由配置实验
eNSP | 静态路由配置实验