197
R1 R2
F0/0 172.16.0.0/28 F0/0
r1# router rip
network 172.16.0.0
redistribute connected
redistribute static
!
ip route 10.0.0.0 255 .255.255.0 Null0
r2# router rip
network 172.16.0.0
redistribute connected
!
ip route 172.16.1.0 255.255.255.0 FastEthernet 0/0
ip route 192.168.3.0 255.255.255.0 172.16.0.1
192.168.1.0/28 192.168 .2.0/28
r1#show ip route
.. .. ..
Gateway of last resort is not set
172 .16.0.0/16 is variably subnetted , 2 subnets, 2 masks
R 172.16.1.0/24 [120/1] via 172.16.0.2, 00:00:18, FastEthernet 0/0
C 172.16.0.0/28 is directly connected , FastEthernet0/0
192 .168.1.0/28 is subnetted, 2 subnets
R 192.168.2.0/28 [120/1] via 172.16.0.2, 00:00:18, FastEthernet 0/0
C 192.168.1.0/28 is directly connected , FastEthernet0/1
10 .0.0.0/24 is subnetted , 1 subnets
S 10.0.0.0/24 is directly connected , Null0
F0/1 F0/1
r2#show ip route
.. .. ..
Gateway of last resort is not set
172 .16.0.0/16 is variably subnetted , 2 subnets, 2 masks
S 172.16.1.0/24 is directly connected , FastEthernet 0/0
C 172.16.0.0/28 is directly connected , FastEthernet 0/0
192 .168.1.0/28 is subnetted, 2 subnets
R 192.160.1.0/28 [120/1] via 172 .16.0.1, 00:00:18, FastEthernet0/0
C 192.168.2.0/28 is directly connected , FastEthernet 0/1
S 192.160.3.0/28 [1/0] via 172.16.0.1
10 .0.0.0/24 is subnetted, 1 subnets
R 10.0.0.0/24 [120/1] via 172.16.0.1, 00:00:18, FastEthernet 0/0
Рисунок 17.2 – Перераспределение присоединенных и статических
маршрутов в протокол RIP