In questo laboratorio costruiamo un dominio OSPF in Area 0 con 4 router collegati
tra loro tramite
reti di transito (/27) e con 4 LAN utente (/24).
show ip route e permettere ping end-to-end
tra le LAN.
La topologia prevede 4 LAN /24 e 4 collegamenti di transito /27 (wildcard OSPF
0.0.0.31).
I router usano interfacce GigabitEthernet.
| Elemento | Rete | Note |
|---|---|---|
| LAN Router0 | 192.168.10.0/24 |
Gateway tipico 192.168.10.254 |
| LAN Router1 | 192.168.20.0/24 |
Gateway tipico 192.168.20.254 |
| LAN Router2 | 10.20.20.0/24 |
Gateway tipico 10.20.20.254 |
| LAN Router3 | 10.10.12.0/24 |
Gateway tipico 10.10.12.254 |
| Transito R0↔R1 | 87.27.210.32/27 |
host tipici .33 e .34 |
| Transito R0↔R3 | 151.27.240.32/27 |
host tipici .33 e .34 |
| Transito R1↔R2 | 45.12.56.32/27 |
host tipici .33 e .34 |
| Transito R3↔R2 | 32.12.2.32/27 |
host tipici .33 e .34 |
192.168.10.254, 192.168.20.254, 10.20.20.254,
10.10.12.254).
network si usa la coppia
rete + wildcard mask (non la subnet mask). Esempio: per una /27 la wildcard è
0.0.0.31.
10) e inserisci le reti da pubblicare
in Area 0.
Le interfacce che “matchano” i comandi network entreranno nel dominio OSPF e tenteranno
di formare neighbor.
show ip ospf interface brief e
show ip ospf neighbor.
enable
conf t
router ospf 10
network 192.168.10.0 0.0.0.255 area 0
network 87.27.210.32 0.0.0.31 area 0
network 151.27.240.32 0.0.0.31 area 0
end
wr
192.168.10.0/24
e su due reti di transito /27.
enable
conf t
router ospf 10
network 192.168.20.0 0.0.0.255 area 0
network 45.12.56.32 0.0.0.31 area 0
network 87.27.210.32 0.0.0.31 area 0
end
wr
192.168.20.0/24 a
due transiti /27
(verso Router0 e Router2).
enable
conf t
router ospf 10
network 10.20.20.0 0.0.0.255 area 0
network 32.12.2.32 0.0.0.31 area 0
network 45.12.56.32 0.0.0.31 area 0
end
wr
10.20.20.0/24 e i
transiti /27
verso Router1 e Router3.
enable
conf t
router ospf 10
network 10.10.12.0 0.0.0.255 area 0
network 32.12.2.32 0.0.0.31 area 0
network 151.27.240.32 0.0.0.31 area 0
end
wr
10.10.12.0/24 e i
transiti /27
verso Router0 e Router2.
show ip ospf neighbor → i neighbor devono risultare in stato
FULLshow ip ospf interface brief → interfacce incluse in OSPF e area
Esempio:
O 10.10.12.0/24 [110/4] via 87.27.210.34
show ip route → verifica rotte O e next-hopshow ip ospf neighbor → neighbor in stato FULLshow ip protocols → riepilogo routing e processishow run | section router ospf → controlla le
network ... area 0192.168.10.x verso 10.20.20.x192.168.20.x verso 10.10.12.xnetwork ... wildcard area 0.show ip ospf neighbor),
poi ricontrolla la routing table.router ospf 10 + network rete wildcard area 0.
show ip ospf neighbor → i neighbor devono risultare
FULL.