1、三)路由器基本路由协议的配置(静态、RIP、OSPF) Rip 拓扑图 路由器上 路由器下 PC左 PC右 E0/0 S0/0 S0/0 E0/0 相关参数: PC左 ip 192.168.1.2 默认网关192.168.1.1 路由器上 e0/0--------192.168.1.1 S0/0 --------------10..0.0.1 路由器下 S0/0 --------10.0.0.2 E0/0 --------202.102.192.1 PC 右 ip -----
2、202.102.192.68 在路由器上 配置rip Summary : Enabled Hostroutes : Enabled Maximum number of balanced paths : 8 Update time : 30 sec(s) Timeout time : 180 sec(s) Suppress time : 120 sec(s) Garbage-collect time : 120 sec(s) upda
3、te output delay : 20(ms) output count : 3 TRIP retransmit time : 5 sec(s) TRIP response packets retransmit count : 36 Silent interfaces : None Default routes : Disabled Verify-source : Enabled Networks : 202.102.192.0 19
4、2.168.1.0 Configured peers : None Triggered updates sent : 0 Number of routes changes : 0 Number of replies to queries : 0 Networks : 10.0.0.0 202.102.192.0 router--up]display ip routing-table Routing Tables: Public Destinations : 9 Route
5、s : 9 Destination/Mask Proto Pre Cost NextHop Interface 10.0.0.0/24 Direct 0 0 10.0.0.1 S0/0 10.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0 10.0.0.2/32 Direct 0 0 10.0.0.2 S0/0 127.0.0.0/8
6、 Direct 0 0 127.0.0.1 InLoop0 127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0 192.168.1.0/24 Direct 0 0 192.168.1.1 Eth0/0 192.168.1.1/32 Direct 0 0 127.0.0.1 InLoop0 192.168.2.1/32 Direct 0 0
7、 127.0.0.1 InLoop0 202.102.192.0/24 RIP 100 1 10.0.0.2 S0/0 Ping 一下,可以Ping通 PC左PingPC右 [router--up]ping 202.102.192.68 PING 202.102.192.68: 56 data bytes, press CTRL_C to break Reply from 202.102.192.68: bytes=56 Sequence=1 ttl=127 t
8、ime=26 ms Reply from 202.102.192.68: bytes=56 Sequence=2 ttl=127 time=24 ms Reply from 202.102.192.68: bytes=56 Sequence=3 ttl=127 time=25 ms Reply from 202.102.192.68: bytes=56 Sequence=4 ttl=127 time=25 ms Reply from 202.102.192.68: bytes=56 Sequence=5 ttl=127 time=26 ms -
9、 202.102.192.68 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 24/25/26 ms 路由器下上的 rip [router=down]display ip routing-table Routing Tables: Public Destinations : 8 Routes : 8 Destinatio
10、n/Mask Proto Pre Cost NextHop Interface 10.0.0.0/24 Direct 0 0 10.0.0.2 S0/0 10.0.0.1/32 Direct 0 0 10.0.0.1 S0/0 10.0.0.2/32 Direct 0 0 127.0.0.1 InLoop0 127.0.0.0/8 Direct 0
11、0 127.0.0.1 InLoop0 127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0 192.168.1.0/24 RIP 100 1 10.0.0.1 S0/0 202.102.192.0/24 Direct 0 0 202.102.192.1 Eth0/0 202.102.192.1/32 Direct 0 0 127.0.0.1
12、 InLoop0 结果,可以ping通 [router=down]ping 192.168.1.2 PING 192.168.1.2: 56 data bytes, press CTRL_C to break Reply from 192.168.1.2: bytes=56 Sequence=1 ttl=127 time=25 ms Reply from 192.168.1.2: bytes=56 Sequence=2 ttl=127 time=24 ms Reply from 192.168.1.2: bytes=56 Seque
13、nce=3 ttl=127 time=25 ms Reply from 192.168.1.2: bytes=56 Sequence=4 ttl=127 time=25 ms Reply from 192.168.1.2: bytes=56 Sequence=5 ttl=127 time=25 ms --- 192.168.1.2 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 24/24/25 ms






