赞
踩
首先进行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的环回路由器接口和路由表
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的环回路由器接口和路由表
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的环回路由器接口和路由表
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的环回路由器接口和路由表
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的环回路由器接口和路由表
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
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
全网可达
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。