192.168.0.0/24, ma vengono usate subnet diverse (/26 per le LAN e /30 per i link seriali).
Con RIPv1 (classful) la mask non viene propagata → rischio di interpretazioni errate e routing non affidabile.
La rete è “lineare” con 3 router:
Router0 ↔ Router1 ↔ Router2.
Le LAN sono in /26 (più host), i collegamenti tra router in /30 (punto-punto).
192.168.0.1 → 192.168.0.129).
La topologia usa un unico blocco 192.168.0.0/24 con VLSM: tre LAN /26 e due seriali /30.
| Elemento | Rete | Uso |
|---|---|---|
| LAN Router0 | 192.168.0.0/26 |
PC0, PC1 – gateway 192.168.0.62 |
| LAN Router1 | 192.168.0.64/26 |
PC2, PC3 – gateway 192.168.0.126 |
| LAN Router2 | 192.168.0.128/26 |
PC4, PC5 – gateway 192.168.0.190 |
| Seriale R0↔R1 | 192.168.0.192/30 |
punto-punto (host tipici: .193 e .194) |
| Seriale R1↔R2 | 192.168.0.196/30 |
punto-punto (host tipici: .197 e .198) |
192.168.0.64/26 → gateway 192.168.0.126).
In VLSM, un gateway “giusto ma nella subnet sbagliata” equivale a gateway errato.
network è corretto usare l’indirizzo di rete
(es. 192.168.0.0, 192.168.0.192). Con RIPv2 la mask viene propagata, quindi il routing resta coerente anche in VLSM.
no auto-summary. Poi indica le reti direttamente connesse da annunciare.
auto-summary è attivo di default.
In una rete con VLSM questo può causare annunci “aggregati” indesiderati. In laboratorio lo disattiviamo per
vedere chiaramente tutte le subnet nella routing table.
enable
conf t
router rip
version 2
network 192.168.0.0
network 192.168.0.192
no auto-summary
end
wr
192.168.0.0/26 e la seriale 192.168.0.192/30.
Senza version 2 e no auto-summary il comportamento può non essere coerente con VLSM.
enable
conf t
router rip
version 2
network 192.168.0.64
network 192.168.0.192
network 192.168.0.196
no auto-summary
end
wr
enable
conf t
router rip
version 2
network 192.168.0.128
network 192.168.0.196
no auto-summary
end
wr
192.168.0.128/26 e la seriale 192.168.0.196/30.
show ip route.
Esempio:
R 192.168.0.128/26 [120/2] via 192.168.0.194
show ip route → verifica rotte R e presenza delle maskshow ip protocols → verifica RIP v2, reti annunciate e timershow run | section router rip → controlla version 2 e no auto-summary192.168.0.1 verso 192.168.0.129192.168.0.130 verso 192.168.0.65version 2 su un router: verifica con show ip protocols.no auto-summary: puoi vedere annunci aggregati e rotte non attese in VLSM.show ip int brief (stato up/up) e cavi seriali/DCE.network con show run | section router rip.192.168.0.62, 192.168.0.126, 192.168.0.190).router rip + version 2 + network delle reti direttamente connesse.no auto-summary per evitare aggregazioni automatiche e vedere tutte le subnet.show ip route (rotte R con mask), show ip protocols, ping end-to-end.