In questo laboratorio costruiamo una rete “lineare” con 3 router: Router0 ↔ Router1 ↔ Router2. Ogni router ha una LAN locale (classe C privata), mentre i collegamenti tra router sono link seriali in /30.
192.168.0.1 →
192.168.2.1).
La topologia usa tre LAN /24 e due collegamenti seriali /30:
| Elemento | Rete | Uso |
|---|---|---|
| LAN Router0 | 192.168.0.0/24 |
PC0, PC1 – gateway 192.168.0.254 |
| LAN Router1 | 192.168.1.0/24 |
PC2, PC3 – gateway 192.168.1.254 |
| LAN Router2 | 192.168.2.0/24 |
PC4, PC5 – gateway 192.168.2.254 |
| Seriale R0↔R1 | 200.100.50.0/30 |
punto-punto (2 host) |
| Seriale R1↔R2 | 200.100.60.0/30 |
punto-punto (2 host) |
192.168.0.254).
Un gateway errato è la causa più comune di ping falliti.
network è didatticamente corretto
usare l’indirizzo di rete
(es. 192.168.0.0) e non un IP host (es. 192.168.0.2), anche se in alcuni
simulatori può “passare lo stesso”.
enable
conf t
router rip
network 192.168.0.0
network 200.100.50.0
end
wr
192.168.0.0/24 e il link 200.100.50.0/30.
Se dimentichi la seriale, Router1 non riceve gli update.
enable
conf t
router rip
network 192.168.1.0
network 200.100.50.0
network 200.100.60.0
end
wr
200.100.60.0 oppure 200.100.50.0.
enable
conf t
router rip
network 192.168.2.0
network 200.100.60.0
end
wr
192.168.2.0/24 e il link 200.100.60.0/30.
show ip route.
Esempio:
R 192.168.2.0/24 [120/2] via 200.100.50.2
show ip route → verifica rotte R e next-hopshow ip protocols → verifica reti annunciate e timer RIPshow run | section router rip → controlla rapidamente i
network
192.168.0.1 verso 192.168.2.1192.168.2.2 verso 192.168.1.1show ip int brief (stato up/up) e cavi seriali/DCE.
show run | section router rip.
192.168.x.254).router rip + network delle reti direttamente connesse.show ip route (rotte R), show ip protocols,
ping end-to-end.network, gateway PC errato, /30
configurate male.