Vamos ajudar o nosso amigo analista a descascar este abacaxi.
Endereçar todas as interfaces
Habilitar o OSPF
Anunciar as redes com suas devidas áreas
Criar o link virtual.
Simples né?
Building configuration...
!
hostname R0
!
ip subnet-zero
!
interface Serial1/0
ip address 192.168.0.1 255.255.255.0
serial restart-delay 0
!
interface Serial1/1
ip address 10.0.0.1 255.0.0.0
serial restart-delay 0
!
router ospf 100
log-adjacency-changes
area 1 virtual-link 192.168.0.2
network 10.0.0.0 0.255.255.255 area 0
network 192.168.0.0 0.0.0.255 area 1
!
ip classless
!
End
R1#sh run
Building configuration...
!
hostname R1
!
ip subnet-zero
!
!
interface Serial1/0
ip address 192.168.0.2 255.255.255.0
serial restart-delay 0
!
interface Serial1/1
ip address 172.16.0.2 255.255.0.0
serial restart-delay 0
!
router ospf 100
log-adjacency-changes
area 1 virtual-link 192.168.0.1
network 172.16.0.0 0.0.255.255 area 3
network 192.168.0.0 0.0.0.255 area 1
!
ip classless
!
!
end
R4#sh run
Building configuration...
!
hostname R4
!
ip subnet-zero
!
!
interface Serial1/0
ip address 10.0.0.2 255.0.0.0
serial restart-delay 0
!
!
!
router ospf 102
log-adjacency-changes
network 10.0.0.0 0.255.255.255 area 0
!
!
end
R5#sh run
Building configuration...
!
hostname R5
!
ip subnet-zero
!
!
!
interface Serial1/0
ip address 172.16.0.1 255.255.0.0
serial restart-delay 0
!
!
router ospf 200
log-adjacency-changes
network 172.16.0.0 0.0.255.255 area 3
!
ip classless
!
!
End
Tabela de Roteamento
R1#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
C 172.16.0.0/16 is directly connected, Serial1/1
O 10.0.0.0/8 [110/128] via 192.168.0.1, 00:16:34, Serial1/0
C 192.168.0.0/24 is directly connected, Serial1/0
R5# sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
C 172.16.0.0/16 is directly connected, Serial1/0
O IA 10.0.0.0/8 [110/192] via 172.16.0.2, 00:17:06, Serial1/0
O IA 192.168.0.0/24 [110/128] via 172.16.0.2, 00:17:11, Serial1/0
R4#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
O IA 172.16.0.0/16 [110/192] via 10.0.0.1, 00:17:18, Serial1/0
C 10.0.0.0/8 is directly connected, Serial1/0
O IA 192.168.0.0/24 [110/128] via 10.0.0.1, 00:17:18, Serial1/0
R0#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
O IA 172.16.0.0/16 [110/128] via 192.168.0.2, 00:17:58, Serial1/0
C 10.0.0.0/8 is directly connected, Serial1/1
C 192.168.0.0/24 is directly connected, Serial1/0
Entrada da tabela de roteamento ospf do roteador R0
R0#sh ip ospf border-routers
OSPF Process 100 internal Routing Table
Codes: i - Intra-area route, I - Inter-area route
i 192.168.0.2 [64] via 192.168.0.2, Serial1/0, ABR, Area 0, SPF 12
i 192.168.0.2 [64] via 192.168.0.2, Serial1/0, ABR, Area 1, SPF 12
Estado atual do link virtual do OSPF no Roteador R1
R1#sh ip ospf virtual-links
Virtual Link OSPF_VL3 to router 192.168.0.1 is up
Run as demand circuit
DoNotAge LSA allowed.
Transit area 1, via interface Serial1/0, Cost of using 64
Transmit Delay is 1 sec, State POINT_TO_POINT,
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:01
Adjacency State FULL (Hello suppressed)
Index 1/3, retransmission queue length 0, number of retransmission 1
First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)
Last retransmission scan length is 1, maximum is 1
Last retransmission scan time is 0 msec, maximum is 0 msec
Bom pessoal nas próximas postagens iremos fazer vídeo-aulas mostrando como configurar tudo o que foi mostrado até agora sobre OSPF.
Nota: Iremos iniciar novas séries de postagens tratando sobre: matemática aplicada a redes de computadores e vbscript.








