Depois de algum tempo… Está aí as configurações de endereçamento IP, roteamento estático e dinâmico com OSPF na topologia citada.
ROUTER FOZ
Router(config)# hostname FOZ
! CONFIGURAÇÕES DE INTERFACES
! Obs: Interface loopback é uma interface de software (sempre ativa)
FOZ(config)# interface loopback 0
FOZ(config-if)# ip address 192.168.1.1 255.255.255.0
!
FOZ(config)# interface loopback 1
FOZ(config-if)# ip address 192.168.2.1 255.255.255.0
!
FOZ(config)# interface serial 1/0
FOZ(config-if)# ip address 10.0.10.1 255.255.255.252
FOZ(config-if)# clock rate 4032000
FOZ(config-if)# no shutdown
FOZ(config-if)# exit
!
! CONFIGURAÇÕES DE ROTEAMENTO
! Obs: Rota padrão para qualquer destino que não conste na tabela de roteamento, ou seja, tudo que não tenha uma rota especificada sai pela interface 10.0.10.2
!
FOZ(config)# ip route 0.0.0.0 0.0.0.0 10.0.10.2
!
! Obs: O número 100 abaixo corresponde ao processo OSPF, esse número tem significado local não influenciando no roteamento em si, não confundir com AS !(Autonomous System)
!
FOZ(config)# router ospf 100
FOZ(config-router)# network 10.0.10.0 0.0.0.3 area 1
FOZ(config-router)# end
!
FOZ# copy running-config startup-config
!
ROUTER CASCAVEL
Router(config)# hostname CASCAVEL
!
CASCAVEL(config)# interface serial 1/0
CASCAVEL(config-if)# ip address 10.0.10.2 255.255.255.252
CASCAVEL(config-if)# no shutdown
!
CASCAVEL(config)# interface serial 2/0
CASCAVEL(config-if)# ip address 10.0.20.1 255.255.255.252
CASCAVEL(config-if)# clock rate 4032000
CASCAVEL(config-if)# no shutdown
CASCAVEL(config-if)# exit
!
CONFIGURAÇÕES DE ROTEAMENTO
!
Obs: Rotas estáticas: por padrão sempre são escolhidas na comutação pois tem maior prioridade ou a menor métrica do que qualquer protocolo de roteamento
!
CASCAVEL(config)# ip route 192.168.1.0 255.255.255.0 10.0.10.1
CASCAVEL(config)# ip route 192.168.2.0 255.255.255.0 10.0.10.1
!
Obs: O comando redistribute static irá informar os vizinhos sobre rotas estáticas instaladas localmente
!
CASCAVEL(config)# router ospf 100
CASCAVEL(config-router)# redistribute static
CASCAVEL(config-router)# network 10.0.10.0 0.0.0.3 area 1
CASCAVEL(config-router)# network 10.0.20.0 0.0.0.3 area 1
CASCAVEL(config-router)# end
!
CASCAVEL# copy running-config startup-config
!
ROUTER CURITIBA
Router(config)# hostname CURITIBA
!
CURITIBA(config)# interface serial 1/0
CURITIBA(config-if)# ip address 10.0.20.2 255.255.255.252
CURITIBA(config-if)# no shutdown
!
CURITIBA(config)# interface serial 2/0
CURITIBA(config-if)# ip address 10.0.30.1 255.255.255.252
CURITIBA(config-if)# clock rate 4032000
CURITIBA(config-if)# no shutdown
!
CURITIBA(config)# interface serial 3/0
CURITIBA(config-if)# ip address 10.0.40.1 255.255.255.252
CURITIBA(config-if)# clock rate 4032000
CURITIBA(config-if)# no shutdown
!
CURITIBA(config)# interface serial 4/0
CURITIBA(config-if)# ip address 10.0.70.1 255.255.255.252
CURITIBA(config-if)# clock rate 4032000
CURITIBA(config-if)# no shutdown
CURITIBA(config-if)# exit
!
CURITIBA(config)# router ospf 100
CURITIBA(config-router)# network 10.0.20.0 0.0.0.3 area 1
CURITIBA(config-router)# network 10.0.30.0 0.0.0.3 area 0
CURITIBA(config-router)# network 10.0.40.0 0.0.0.3 area 0
CURITIBA(config-router)# network 10.0.70.0 0.0.0.3 area 0
CURITIBA(config-router)# end
!
CURITIBA# copy running-config startup-config
ROUTER SP
Router(config)# hostname SP
!
SP(config)# interface serial 1/0
SP(config-if)# ip address 10.0.30.2 255.255.255.252
SP(config-if)# no shutdown
!
SP(config)# interface serial 2/0
SP(config-if)# ip address 10.0.50.1 255.255.255.252
SP(config-if)# clock rate 4032000
SP(config-if)# no shutdown
!
SP(config)# router ospf 100
SP(config-router)# network 10.0.30.0 0.0.0.3 area 0
SP(config-router)# network 10.0.50.0 0.0.0.3 area 0
SP(config-router)# end
!
SP# copy running-config startup-config
!
ROUTER BH
Router(config)# hostname BH
!
BH(config)# interface serial 1/0
BH(config-if)# ip address 10.0.70.2 255.255.255.252
BH(config-if)# no shutdown
!
BH(config)# interface serial 2/0
BH(config-if)# ip address 10.0.80.1 255.255.255.252
BH(config-if)# clock rate 4032000
BH(config-if)# no shutdown
!
BH(config)# router ospf 100
BH(config-router)# network 10.0.70.0 0.0.0.3 area 0
BH(config-router)# network 10.0.80.0 0.0.0.3 area 0
BH(config-router)# end
!
BH# copy running-config startup-config
!
ROUTER RJ
Router(config)# hostname RJ
!
RJ(config)# interface serial 1/0
RJ(config-if)# ip address 10.0.40.2 255.255.255.252
RJ(config-if)# no shutdown
!
RJ(config)# interface serial 2/0
RJ(config-if)# ip address 10.0.60.1 255.255.255.252
RJ(config-if)# clock rate 4032000
RJ(config-if)# no shutdown
!
RJ(config)# router ospf 100
RJ(config-router)# network 10.0.40.0 0.0.0.3 area 0
RJ(config-router)# network 10.0.60.0 0.0.0.3 area 0
RJ(config-router)# end
!
RJ# copy running-config startup-config
!
ROUTER BRASILIA
Router(config)# hostname BRASILIA
!
BRASILIA(config)# interface serial 1/0
BRASILIA(config-if)# ip address 10.0.90.1 255.255.255.252
BRASILIA(config-if)# clock rate 4032000
BRASILIA(config-if)# no shutdown
!
BRASILIA(config)# interface serial 2/0
BRASILIA(config-if)# ip address 10.0.50.2 255.255.255.252
BRASILIA(config-if)# no shutdown
!
BRASILIA(config)# interface serial 3/0
BRASILIA(config-if)# ip address 10.0.60.2 255.255.255.252
BRASILIA(config-if)# no shutdown
!
BRASILIA(config)# interface serial 4/0
BRASILIA(config-if)# ip address 10.0.80.2 255.255.255.252
BRASILIA(config-if)# no shutdown
BRASILIA(config-if)# exit
!
BRASILIA(config)# router ospf 100
BRASILIA(config-router)# network 10.0.50.0 0.0.0.3 area 0
BRASILIA(config-router)# network 10.0.60.0 0.0.0.3 area 0
BRASILIA(config-router)# network 10.0.80.0 0.0.0.3 area 0
BRASILIA(config-router)# network 10.0.90.0 0.0.0.3 area 2
BRASILIA(config-router)# end
!
BRASILIA# copy running-config startup-config
!
ROUTER MANAUS
Router(config)# hostname MANAUS
!
MANAUS(config)# interface serial 1/0
MANAUS(config-if)# ip address 10.0.90.2 255.255.255.252
MANAUS(config-if)# no shutdown
!
MANAUS(config)# interface serial 2/0
MANAUS(config-if)# ip address 10.0.100.1 255.255.255.252
MANAUS(config-if)# clock rate 4032000
MANAUS(config-if)# no shutdown
MANAUS(config-if)# exit
!
MANAUS(config)# ip route 192.168.3.0 255.255.255.0 10.0.100.2
MANAUS(config)# ip route 192.168.4.0 255.255.255.0 10.0.100.2
!
MANAUS(config)# router ospf 100
MANAUS(config-router)# redistribute static
MANAUS(config-router)# network 10.0.90.0 0.0.0.3 area 2
MANAUS(config-router)# network 10.0.100.0 0.0.0.3 area 2
MANAUS(config-router)# end
!
MANAUS# copy running-config startup-config
!
ROUTER MIAMI
Router(config)# hostname MIAMI
!
MIAMI(config)# interface loopback 0
MIAMI(config-if)# ip address 192.168.3.1 255.255.255.0
!
MIAMI(config)# interface loopback 1
MIAMI(config-if)# ip address 192.168.4.1 255.255.255.0
!
MIAMI(config)# interface serial 1/0
MIAMI(config-if)# ip address 10.0.100.2 255.255.255.252
MIAMI(config-if)# no shutdown
!
MIAMI(config)# ip route 0.0.0.0 0.0.0.0 10.0.100.1
!
MIAMI(config)# router ospf 100
MIAMI(config-router)# network 10.0.100.0 0.0.0.3 area 2
MIAMI(config-router)# end
!
MIAMI# copy running-config startup-config
!
É isso aí… Rede convergida com OSPF agora é só partir para configuração MPLS, o que demandará muito papiro!