Roteamento estatico
-
Upload
jaejaneiro-ntl -
Category
Education
-
view
296 -
download
1
description
Transcript of Roteamento estatico
Roteamento
Estático
José Janeiro
S0/0/0
192.168.10.0 192.168.30.0 192.168.50.0
192.168.20.0 192.168.40.0
R1 R2 R3
PC1 PC2 PC3 PC4 PC5
S0/0/0DCE
S0/0/1DCE
S0/0/0
F0/0 F0/0 F0/0
F0/1 F0/1 F0/1
Topologia de Rede
Roteamento EstáticoJosé Janeiro
Configuração na linha de comandos (CLI)R1(config)#interface FastEthernet0/0R1(config-if)#ip address 192.168.10.1 255.255.255.0R1(config-if)#no shutdownR1(config-if)#exit
R1(config)#interface Serial 0/0/0R1(config-if)#ip address 192.168.20.1 255.255.255.0R1(config-if)#no shutdownR1(config-if)#exit
Rede
192.168.10.0
192.168.20.0
Interface
FastEthernet0/0
Serial 0/0/0
Tabela Roteamento R1
Tabela de Roteamento (R1)
C 192.168.10.0/24 is directly connected, FastEthernet0/0
C 192.168.20.0/24 is directly connected, Serial0/0/0
S0/0/0
R1
F0/0
192.168.10.0
.1
.1
192.168.20.0
Roteamento EstáticoJosé Janeiro
Redes Remotas
192.168.30.0
192.168.40.0
192.168.50.0
Endereço Próximo Salto
192.168.20.2
192.168.20.2
192.168.20.2
Comando Rede Remota Máscara de Rede Endereço Próximo Salto
ip route192.168.30.0192.168.40.0192.168.50.0
255.255.255.0192.168.20.2
(Interface Serial 0/0/0 do Roteador R2)
Configuração de rotas estáticas
S0/0/0
192.168.20.0R1
F0/0
192.168.10.0
.1
.2
.1 S0/0/0
R2
Roteamento EstáticoJosé Janeiro
S0/0/0
192.168.10.0 192.168.50.0
192.168.20.0 192.168.40.0R1
R2 R3
PC1 PC4 PC5
S0/0/0DCE
S0/0/1DCE
S0/0/0
F0/0 F0/0
F0/1 F0/1
R1(config)#ip route 192.168.30.0 255.255.255.0 192.168.20.2
Configuração na linha de comandos (CLI)
S 192.168.30.0/24 [1/0] via 192.168.20.2
Tabela de Roteamento (R1)
Rede
192.168.10.0
192.168.20.0
192.168.30.0
Interface
FastEthernet0/0
Serial 0/0/0
Serial 0/0/0
Tabela Roteamento R1
PC3192.168.30.0PC2
F0/1
F0/0
.2
Roteamento EstáticoJosé Janeiro
Rede
192.168.10.0
192.168.20.0
192.168.30.0
192.168.40.0
Interface
FastEthernet0/0
Serial 0/0/0
Serial 0/0/0
Serial 0/0/0
Tabela Roteamento R1
S0/0/0
192.168.10.0 192.168.50.0
192.168.20.0 192.168.40.0R1
R2 R3
PC1 PC4 PC5
S0/0/0DCE
F0/0 F0/0
F0/1 F0/1
PC3192.168.30.0PC2
F0/1
F0/0
.2S0/0/1DCE
S0/0/0
R1(config)#ip route 192.168.30.0 255.255.255.0 192.168.20.2
Configuração na linha de comandos (CLI)
R1(config)#ip route 192.168.40.0 255.255.255.0 192.168.20.2
S 192.168.30.0/24 [1/0] via 192.168.20.2
Tabela de Roteamento (R1)
S 192.168.40.0/24 [1/0] via 192.168.20.2
Roteamento EstáticoJosé Janeiro
S0/0/0
192.168.10.0
192.168.20.0 192.168.40.0R1
R2 R3
PC1 PC4
S0/0/0DCE
S0/0/1DCE
S0/0/0
F0/0
F0/1
R1(config)#ip route 192.168.30.0 255.255.255.0 192.168.20.2
Configuração na linha de comandos (CLI)
R1(config)#ip route 192.168.40.0 255.255.255.0 192.168.20.2
R1(config)#ip route 192.168.50.0 255.255.255.0 192.168.20.2
S 192.168.30.0/24 [1/0] via 192.168.20.2
Tabela de Roteamento (R1)
S 192.168.40.0/24 [1/0] via 192.168.20.2
S 192.168.50.0/24 [1/0] via 192.168.20.2
PC3192.168.30.0PC2
F0/1
F0/0
.2
192.168.50.0PC5
F0/1
F0/0
Rede
192.168.10.0
192.168.20.0
192.168.30.0
192.168.40.0
192.168.50.0
Interface
FastEthernet0/0
Serial 0/0/0
Serial 0/0/0
Serial 0/0/0
Serial 0/0/0
Tabela Roteamento R1
Roteamento EstáticoJosé Janeiro
S0/0/0
192.168.10.0 192.168.30.0 192.168.50.0
192.168.20.0 192.168.40.0R1
R2 R3
PC1 PC2 PC3 PC4 PC5
S0/0/0DCE
S0/0/1DCE
S0/0/0
F0/0 F0/0 F0/0
F0/1 F0/1 F0/1
Rede
192.168.10.0
192.168.20.0
192.168.30.0
192.168.40.0
192.168.50.0
Interface
FastEthernet0/0
Serial 0/0/0
Serial 0/0/0
Serial 0/0/0
Serial 0/0/0
Tabela Roteamento R1
R1(config)#ip route 192.168.30.0 255.255.255.0 192.168.20.2
Configuração na linha de comandos (CLI)
R1(config)#ip route 192.168.40.0 255.255.255.0 192.168.20.2
R1(config)#ip route 192.168.50.0 255.255.255.0 192.168.20.2
R1(config-if)#ip address 192.168.10.0 255.255.255.0
R1(config-if)#ip address 192.168.20.0 255.255.255.0
S 192.168.30.0/24 [1/0] via 192.168.20.2
Tabela de Roteamento (R1)
S 192.168.40.0/24 [1/0] via 192.168.20.2
S 192.168.50.0/24 [1/0] via 192.168.20.2
C 192.168.10.0/24 is directly connected, FastEthernet0/0
C 192.168.20.0/24 is directly connected, Serial0/0/0
Roteamento EstáticoJosé Janeiro
Configuração na linha de comandos (CLI)R2(config)#interface FastEthernet0/0R2(config-if)#ip address 192.168.30.1 255.255.255.0R2(config-if)#no shutdownR2(config-if)#exit
R2(config)#interface Serial 0/0/0R2(config-if)#ip address 192.168.20.1 255.255.255.0R2(config-if)#no shutdownR2(config-if)#clocrate 64000R2(config-if)#exit
R2(config)#interface Serial 0/0/1R2(config-if)#ip address 192.168.40.1 255.255.255.0R2(config-if)#no shutdownR2(config-if)#clockrate 64000R2(config-if)#exit
Tabela de Roteamento (R2)
C 192.168.30.0/24 is directly connected, FastEthernet0/0
C 192.168.20.0/24 is directly connected, Serial0/0/0/0
C 192.168.40.0/24 is directly connected, Serial0/0/1
192.168.30.0
S0/0/1
R2
F0/0
.1
S0/0/0.1
192.168.20.0 192.168.40.0
.1
Rede
192.168.30.0
192.168.20.0
192.168.40.0
Interface
FastEthernet0/0
Serial 0/0/0
Serial 0/0/1
Tabela Roteamento R2
Roteamento EstáticoJosé Janeiro
Redes Remotas
192.168.10.0
192.168.50.0
Endereço Próximo Salto
192.168.20.1
192.168.40.2
Comando Rede Remota Máscara de Rede Endereço Próximo Salto
ip route
192.168.10.0
192.168.50.0
255.255.255.0
192.168.20.1(Interface Serial 0/0/0 do
Roteador R1)
192.168.40.2(Interface Serial 0/0/0 do
Roteador R3)
Configuração de rotas estáticas
192.168.30.0
S0/0/1
R2
F0/0
.2S0/0/0
.1192.168.20.0 192.168.40.0
.1
R3R1
Roteamento EstáticoJosé Janeiro
S0/0/0
192.168.50.0
192.168.20.0 192.168.40.0
R1R2 R3
PC4 PC5
S0/0/0DCE
S0/0/1DCE
S0/0/0
F0/0
F0/1
R2(config)#ip route 192.168.10.0 255.255.255.0 192.168.20.1
Configuração na linha de comandos (CLI)
S 192.168.10.0/24 [1/0] via 192.168.20.1
Tabela de Roteamento (R2)
192.168.10.0PC1
F0/0
F0/1
PC3192.168.30.0PC2
F0/1
F0/0
.1Rede
192.168.10.0
192.168.20.0
192.168.30.0
192.168.40.0
Interface
Serial 0/0/0
Serial 0/0/0
FastEthernet0/0
Serial 0/0/1
Tabela Roteamento R2
Roteamento EstáticoJosé Janeiro
S0/0/0
192.168.10.0
192.168.20.0 192.168.40.0
R1 R2 R3
PC1 PC4
S0/0/0DCE
S0/0/1DCE
S0/0/0
F0/0
F0/1
PC3192.168.30.0PC2
F0/1
F0/0
.2
192.168.50.0PC5
F0/1
F0/0
Rede
192.168.10.0
192.168.20.0
192.168.30.0
192.168.40.0
192.168.50.0
Interface
Serial 0/0/0
Serial 0/0/0
FastEthernet0/0
Serial 0/0/1
Serial 0/0/1
Tabela Roteamento R2
R2(config)#ip route 192.168.10.0 255.255.255.0 192.168.20.1
Configuração na linha de comandos (CLI)
R2(config)#ip route 192.168.50.0 255.255.255.0 192.168.40.2
S 192.168.10.0/24 [1/0] via 192.168.20.1
Tabela de Roteamento (R2)
S 192.168.50.0/24 [1/0] via 192.168.40.2
Roteamento EstáticoJosé Janeiro
S0/0/0
192.168.10.0
192.168.20.0 192.168.40.0
R1 R2 R3
PC1 PC4
S0/0/0DCE
S0/0/1DCE
S0/0/0
F0/0
F0/1
PC3192.168.30.0PC2
F0/1
F0/0
192.168.50.0PC5
F0/1
F0/0
Rede
192.168.10.0
192.168.20.0
192.168.30.0
192.168.40.0
192.168.50.0
Interface
Serial 0/0/0
Serial 0/0/0
FastEthernet0/0
Serial 0/0/1
Serial 0/0/1
Tabela Roteamento R2
R2(config)#ip route 192.168.10.0 255.255.255.0 192.168.20.1
Configuração na linha de comandos (CLI)
R2(config)#ip route 192.168.50.0 255.255.255.0 192.168.40.2
R2(config-if)#ip addresss 192.168.20.0 255.255.255.0
R2(config-if)#ip address 192.168.30.0 255.255.255.0
R2(config-if)#ip address 192.168.40.0 255.255.255.0
S 192.168.10.0/24 [1/0] via 192.168.20.1
Tabela de Roteamento (R2)
S 192.168.50.0/24 [1/0] via 192.168.40.2
C 192.168.20.0/24 is directly connected, Serial0/0/0
C 192.168.30.0/24 is directly connected, FastEthernet0/0
C 192.168.40.0/24 is directly connected, Serial0/0/1
Roteamento EstáticoJosé Janeiro
Rede
192.168.50.0
192.168.40.0
Interface
FastEthernet0/0
Serial 0/0/0
Tabela Roteamento R3
Configuração na linha de comandos (CLI)R3(config)#interface FastEthernet0/0R3(config-if)#ip address 192.168.50.1 255.255.255.0R3(config-if)#no shutdownR3(config-if)#exit
R3(config)#interface Serial 0/0/0R3(config-if)#ip address 192.168.40.2 255.255.255.0R3(config-if)#no shutdownR3(config-if)#exit
Tabela de Roteamento (R3)
C 192.168.50.0/24 is directly connected, FastEthernet0/0
C 192.168.40.0/24 is directly connected, Serial0/0/0
S0/0/0
R3
F0/0
192.168.50.0
.2192.168.40.0
Roteamento EstáticoJosé Janeiro
Redes Remotas
192.168.10.0
192.168.20.0
192.168.30.0
Endereço Próximo Salto
192.168.40.1
192.168.40.1
192.168.40.1
Comando Rede Remota Máscara de Rede Endereço Próximo Salto
ip route192.168.10.0192.168.20.0192.168.30.0
255.255.255.0192.168.40.1
(Interface Serial 0/0/1 do Roteador R2)
Configuração de rotas estáticas
S0/0/0
R3
F0/0
192.168.50.0
.2192.168.40.0
.1
S0/0/1
R2
Roteamento EstáticoJosé Janeiro
R3(config)#ip route 192.168.10.0 255.255.255.0 192.168.40.1
Configuração na linha de comandos (CLI)
S 192.168.10.0/24 [1/0] via 192.168.40.1
Tabela de Roteamento (R3)
Rede
192.168.50.0
192.168.40.0
192.168.10.0
Interface
FastEthernet0/0
Serial 0/0/0
Serial 0/0/0
Tabela Roteamento R3
S0/0/0
192.168.50.0
192.168.20.0 192.168.40.0
R1 R2R3
PC4 PC5
S0/0/0DCE
S0/0/1DCE
S0/0/0
F0/0
F0/1
PC3192.168.30.0PC2
F0/1
F0/0
.1
192.168.10.0PC1
F0/0
F0/1
Roteamento EstáticoJosé Janeiro
S0/0/0
192.168.20.0 192.168.40.0
R1 R2R3
PC4 PC5
S0/0/0DCE
S0/0/1DCE
S0/0/0
F0/0
F0/1
PC3PC2
F0/1
F0/0
.1
192.168.10.0PC1
F0/0
F0/1
192.168.50.0192.168.30.0
R3(config)#ip route 192.168.20.0 255.255.255.0 192.168.40.1
R3(config)#ip route 192.168.10.0 255.255.255.0 192.168.40.1
Configuração na linha de comandos (CLI)
S 192.168.20.0/24 [1/0] via 192.168.40.1
S 192.168.10.0/24 [1/0] via 192.168.40.1
Tabela de Roteamento (R3)
Rede
192.168.50.0
192.168.40.0
192.168.10.0
192.168.20.0
Interface
FastEthernet0/0
Serial 0/0/0
Serial 0/0/0
Serial 0/0/0
Tabela Roteamento R3
Roteamento EstáticoJosé Janeiro
S0/0/0
192.168.10.0 192.168.50.0
192.168.20.0 192.168.40.0
R1 R2R3
PC1 PC4 PC5
S0/0/0DCE
S0/0/1DCE
S0/0/0
F0/0 F0/0
F0/1 F0/1
PC3192.168.30.0PC2
F0/1
F0/0
.1Rede
192.168.50.0
192.168.40.0
192.168.10.0
192.168.20.0
192.168.30.0
Interface
FastEthernet0/0
Serial 0/0/0
Serial 0/0/0
Serial 0/0/0
Serial 0/0/0
Tabela Roteamento R3
R3(config)#ip route 192.168.30.0 255.255.255.0 192.168.40.1
Configuração na linha de comandos (CLI)
R3(config)#ip route 192.168.20.0 255.255.255.0 192.168.40.1
R3(config)#ip route 192.168.10.0 255.255.255.0 192.168.40.1
S 192.168.30.0/24 [1/0] via 192.168.40.1
Tabela de Roteamento (R3)
S 192.168.20.0/24 [1/0] via 192.168.40.1
S 192.168.10.0/24 [1/0] via 192.168.40.1
Roteamento EstáticoJosé Janeiro
S0/0/0
192.168.10.0 192.168.50.0
192.168.20.0 192.168.40.0
R1 R2R3
PC1 PC4 PC5
S0/0/0DCE
S0/0/1DCE
S0/0/0
F0/0 F0/0
F0/1 F0/1
PC3192.168.30.0PC2
F0/1
F0/0
Rede
192.168.50.0
192.168.40.0
192.168.10.0
192.168.20.0
192.168.30.0
Interface
FastEthernet0/0
Serial 0/0/0
Serial 0/0/0
Serial 0/0/0
Serial 0/0/0
Tabela Roteamento R3
R3(config)#ip route 192.168.30.0 255.255.255.0 192.168.40.1
Configuração na linha de comandos (CLI)
R3(config)#ip route 192.168.20.0 255.255.255.0 192.168.40.1
R3(config)#ip route 192.168.10.0 255.255.255.0 192.168.40.1
S 192.168.30.0/24 [1/0] via 192.168.40.1
Tabela de Roteamento (R3)
S 192.168.20.0/24 [1/0] via 192.168.40.1
S 192.168.10.0/24 [1/0] via 192.168.40.1
R3(config-if)#ip address 192.168.50.1 255.255.255.0
R3(config-if)#ip address 192.168.40.2 255.255.255.0
C 192.168.50.0/24 is directly connected, FastEthernet0/0
C 192.168.40.0/24 is directly connected, Serial0/0/0
Roteamento EstáticoJosé Janeiro
R1: Output do comando show ip route
R1: Configuração Roteamento Estático
R1(config)#interface FastEthernet0/0R1(config-if)#ip address 192.168.10.1 255.255.255.0R1(config-if)#no shutdownR1(config-if)#exitR1(config)#interface Serial 0/0/0R1(config-if)#ip address 192.168.20.1 255.255.255.0R1(config-if)#no shutdownR1(config-if)#exitR1(config-if)#ip route 192.168.30.0 255.255.255.0 192.168.20.2R1(config-if)#ip route 192.168.40.0 255.255.255.0 192.168.20.2R1(config-if)#ip route 192.168.50.0 255.255.255.0 192.168.20.2
Roteamento EstáticoJosé Janeiro
R2: Configuração Roteamento Estático
R2(config)#interface FastEthernet0/0R2(config-if)#ip address 192.168.30.1 255.255.255.0R2(config-if)#no shutdownR2(config-if)#exitR2(config)#interface Serial 0/0/0R2(config-if)#ip address 192.168.20.1 255.255.255.0R2(config-if)#no shutdownR2(config-if)#clocrate 64000R2(config-if)#exitR2(config)#interface Serial 0/0/1R2(config-if)#ip address 192.168.40.1 255.255.255.0R2(config-if)#no shutdownR2(config-if)#clockrate 64000R2(config-if)#exitR2(config)#ip route 192.168.10.0 255.255.255.0 192.168.20.1R2(config)#ip route 192.168.50.0 255.255.255.0 192.168.40.2
R2: Output do comando show ip route
Roteamento EstáticoJosé Janeiro
Roteamento EstáticoJosé Janeiro
R3: Output do comando show ip route
R3: Configuração Roteamento Estático
R3(config)#interface FastEthernet0/0R3(config-if)#ip address 192.168.50.1 255.255.255.0R3(config-if)#no shutdownR3(config-if)#exitR3(config)#interface Serial 0/0/0R3(config-if)#ip address 192.168.40.2 255.255.255.0R3(config-if)#no shutdownR3(config-if)#exitR3(config-if)#ip route 192.168.10.0 255.255.255.0 192.168.40.1R3(config-if)#ip route 192.168.20.0 255.255.255.0 192.168.40.1R3(config-if)#ip route 192.168.30.0 255.255.255.0 192.168.40.1
Roteamento EstáticoJosé Janeiro
Exercícios
Exercício 1
Utilizando o software de simulação de redes crie e configure a topologia de rede da presente aula.
Exercício 2
Utilizando o software de simulação de redes crie e configure a topologia de rede fornecida pelo professor.
Roteamento EstáticoJosé Janeiro
• • A matéria teórica em formato PDF
• • Assista o vídeo sobre roteamento estático no endereço youtube:
www.youtube.com/jaejaneiro
Para seu estudo consulte também:
10-07-2011
José Afonso Esteves Janeiro