Roteamento estatico

895 views

Published on

Configuração de roteamento estático utilizando três roteadores Cisco.

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
895
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
41
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Roteamento estatico

  1. 1. Roteamento Estático José Janeiro
  2. 2. José Janeiro Roteamento Estático jaejaneiro@gmail.com Topologia de Rede 192.168.20.0 S0/0/0 F0/0 R1 S0/0/1 S0/0/0 DCE DCE F0/0 R2 F0/1 PC1 192.168.10.0 192.168.40.0 S0/0/0 F0/0 R3 F0/1 PC2 F0/1 PC3 192.168.30.0 PC4 PC5 192.168.50.0
  3. 3. Roteamento Estático José Janeiro jaejaneiro@gmail.com Estudo do Roteamento Estático no Roteador R1
  4. 4. José Janeiro Roteamento Estático R1 .1 jaejaneiro@gmail.com Tabela Roteamento R1 192.168.20.0 Rede FastEthernet0/0 192.168.20.0 F0/0 .1 Interface 192.168.10.0 S0/0/0 Serial 0/0/0 192.168.10.0 Configuração na linha de comandos (CLI) Tabela de Roteamento (R1) R1(config)#interface FastEthernet0/0 R1(config-if)#ip address 192.168.10.1 255.255.255.0 R1(config-if)#no shutdown R1(config-if)#exit C 192.168.10.0/24 is directly connected, FastEthernet0/0 R1(config)#interface Serial 0/0/0 R1(config-if)#ip address 192.168.20.1 255.255.255.0 R1(config-if)#no shutdown R1(config-if)#exit C 192.168.20.0/24 is directly connected, Serial0/0/0
  5. 5. José Janeiro Roteamento Estático R1 jaejaneiro@gmail.com Redes Remotas S0/0/0 .2 S0/0/0 F0/0 .1 R2 192.168.30.0 192.168.20.2 192.168.20.2 192.168.50.0 .1 Endereço Próximo Salto 192.168.40.0 192.168.20.0 192.168.20.2 192.168.10.0 Configuração de rotas estáticas Comando Rede Remota ip route 192.168.30.0 192.168.40.0 192.168.50.0 Máscara de Rede Endereço Próximo Salto 255.255.255.0 192.168.20.2 (Interface Serial 0/0/0 do Roteador R2)
  6. 6. José Janeiro Roteamento Estático jaejaneiro@gmail.com Tabela Roteamento R1 192.168.20.0 R1 S0/0/0 192.168.40.0 .2 R2 F0/0 S0/0/0 DCE F0/0 F0/1 S0/0/1 DCE F0/1 PC1 192.168.10.0 Rede Interface 192.168.10.0 FastEthernet0/0 F0/0 192.168.20.0 Serial 0/0/0 F0/1 192.168.30.0 Serial 0/0/0 R3 PC2 PC3 192.168.30.0 S0/0/0 PC5 PC4 192.168.50.0 Configuração na linha de comandos (CLI) Tabela de Roteamento (R1) R1(config)#ip route 192.168.30.0 255.255.255.0 192.168.20.2 S 192.168.30.0/24 [1/0] via 192.168.20.2
  7. 7. José Janeiro Roteamento Estático jaejaneiro@gmail.com Tabela Roteamento R1 192.168.20.0 R1 192.168.40.0 F0/0 S0/0/0 DCE F0/0 F0/1 S0/0/1 DCE F0/1 PC1 192.168.10.0 PC2 PC3 192.168.30.0 Rede Interface 192.168.10.0 FastEthernet0/0 F0/0 192.168.20.0 Serial 0/0/0 F0/1 192.168.30.0 Serial 0/0/0 192.168.40.0 S0/0/0 .2 R2 Serial 0/0/0 R3 S0/0/0 PC5 PC4 192.168.50.0 Configuração na linha de comandos (CLI) Tabela de Roteamento (R1) R1(config)#ip route 192.168.30.0 255.255.255.0 192.168.20.2 S 192.168.30.0/24 [1/0] via 192.168.20.2 R1(config)#ip route 192.168.40.0 255.255.255.0 192.168.20.2 S 192.168.40.0/24 [1/0] via 192.168.20.2
  8. 8. José Janeiro Roteamento Estático jaejaneiro@gmail.com Tabela Roteamento R1 192.168.20.0 R1 192.168.40.0 F0/1 192.168.10.0 FastEthernet0/0 F0/0 192.168.20.0 Serial 0/0/0 F0/1 192.168.30.0 Serial 0/0/0 Serial 0/0/0 Serial 0/0/0 R3 S0/0/1 DCE F0/1 PC1 192.168.10.0 Interface 192.168.50.0 F0/0 S0/0/0 DCE F0/0 Rede 192.168.40.0 S0/0/0 .2 R2 PC2 PC3 192.168.30.0 S0/0/0 PC5 PC4 192.168.50.0 Configuração na linha de comandos (CLI) Tabela de Roteamento (R1) R1(config)#ip route 192.168.30.0 255.255.255.0 192.168.20.2 S 192.168.30.0/24 [1/0] via 192.168.20.2 R1(config)#ip route 192.168.40.0 255.255.255.0 192.168.20.2 S 192.168.40.0/24 [1/0] via 192.168.20.2 R1(config)#ip route 192.168.50.0 255.255.255.0 192.168.20.2 S 192.168.50.0/24 [1/0] via 192.168.20.2
  9. 9. José Janeiro Roteamento Estático jaejaneiro@gmail.com Tabela Roteamento R1 192.168.20.0 R1 192.168.40.0 192.168.10.0 FastEthernet0/0 F0/0 192.168.20.0 Serial 0/0/0 F0/1 192.168.30.0 Serial 0/0/0 Serial 0/0/0 192.168.50.0 F0/0 S0/0/0 DCE F0/0 F0/1 Serial 0/0/0 R3 S0/0/1 DCE S0/0/0 F0/1 PC1 192.168.10.0 Interface 192.168.40.0 S0/0/0 Rede R2 PC2 PC3 192.168.30.0 PC5 PC4 192.168.50.0 Configuração na linha de comandos (CLI) Tabela de Roteamento (R1) R1(config)#ip route 192.168.30.0 255.255.255.0 192.168.20.2 S 192.168.30.0/24 [1/0] via 192.168.20.2 R1(config)#ip route 192.168.40.0 255.255.255.0 192.168.20.2 S 192.168.40.0/24 [1/0] via 192.168.20.2 R1(config)#ip route 192.168.50.0 255.255.255.0 192.168.20.2 S 192.168.50.0/24 [1/0] via 192.168.20.2 R1(config-if)#ip address 192.168.10.0 255.255.255.0 C 192.168.10.0/24 is directly connected, FastEthernet0/0 R1(config-if)#ip address 192.168.20.0 255.255.255.0 C 192.168.20.0/24 is directly connected, Serial0/0/0
  10. 10. Roteamento Estático José Janeiro jaejaneiro@gmail.com Estudo do Roteamento Estático no Roteador R2
  11. 11. José Janeiro Roteamento Estático 192.168.20.0 .1 R2 jaejaneiro@gmail.com Tabela Roteamento R2 192.168.40.0 .1 Rede Configuração na linha de comandos (CLI) R2(config)#interface FastEthernet0/0 R2(config-if)#ip address 192.168.30.1 255.255.255.0 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#interface Serial 0/0/0 R2(config-if)#ip address 192.168.20.1 255.255.255.0 R2(config-if)#no shutdown R2(config-if)#clocrate 64000 R2(config-if)#exit R2(config)#interface Serial 0/0/1 R2(config-if)#ip address 192.168.40.1 255.255.255.0 R2(config-if)#no shutdown R2(config-if)#clockrate 64000 R2(config-if)#exit Serial 0/0/0 192.168.40.0 192.168.30.0 FastEthernet0/0 192.168.20.0 F0/0 .1 Interface 192.168.30.0 S0/0/1 S0/0/0 Serial 0/0/1 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
  12. 12. José Janeiro Roteamento Estático jaejaneiro@gmail.com Redes Remotas R2 192.168.40.0 R1 .1 S0/0/1 S0/0/0 .2 R3 Endereço Próximo Salto 192.168.10.0 192.168.20.1 192.168.50.0 192.168.20.0 192.168.40.2 F0/0 .1 192.168.30.0 Configuração de rotas estáticas Comando Rede Remota Máscara de Rede 192.168.10.0 ip route 192.168.20.1 255.255.255.0 192.168.50.0 Endereço Próximo Salto (Interface Serial 0/0/0 do Roteador R1) 192.168.40.2 (Interface Serial 0/0/0 do Roteador R3)
  13. 13. José Janeiro Roteamento Estático jaejaneiro@gmail.com Tabela Roteamento R2 192.168.20.0 R2 R1 .1 S0/0/0 192.168.40.0 S0/0/0 DCE R3 S0/0/1 DCE S0/0/0 Rede Interface 192.168.10.0 Serial 0/0/0 F0/1 PC1 192.168.10.0 F0/0 F0/0 192.168.20.0 Serial 0/0/0 F0/1 F0/1 192.168.30.0 FastEthernet0/0 192.168.40.0 F0/0 Serial 0/0/1 PC2 PC3 192.168.30.0 PC5 PC4 192.168.50.0 Configuração na linha de comandos (CLI) Tabela de Roteamento (R2) R2(config)#ip route 192.168.10.0 255.255.255.0 192.168.20.1 S 192.168.10.0/24 [1/0] via 192.168.20.1
  14. 14. José Janeiro Roteamento Estático jaejaneiro@gmail.com Tabela Roteamento R2 192.168.20.0 192.168.40.0 R1 S0/0/0 R2 S0/0/0 DCE S0/0/1 DCE .2 R3 S0/0/0 Rede Interface 192.168.10.0 Serial 0/0/0 PC1 192.168.10.0 F0/0 192.168.20.0 Serial 0/0/0 F0/1 F0/1 192.168.30.0 FastEthernet0/0 Serial 0/0/1 192.168.50.0 F0/1 F0/0 192.168.40.0 F0/0 Serial 0/0/1 PC2 PC3 192.168.30.0 PC5 PC4 192.168.50.0 Configuração na linha de comandos (CLI) Tabela de Roteamento (R2) R2(config)#ip route 192.168.10.0 255.255.255.0 192.168.20.1 S 192.168.10.0/24 [1/0] via 192.168.20.1 R2(config)#ip route 192.168.50.0 255.255.255.0 192.168.40.2 S 192.168.50.0/24 [1/0] via 192.168.40.2
  15. 15. José Janeiro Roteamento Estático jaejaneiro@gmail.com Tabela Roteamento R2 192.168.20.0 R1 S0/0/0 192.168.40.0 R2 S0/0/0 DCE Rede S0/0/1 DCE S0/0/0 Interface 192.168.10.0 R3 Serial 0/0/0 PC1 192.168.10.0 F0/0 192.168.20.0 Serial 0/0/0 F0/1 F0/1 192.168.30.0 FastEthernet0/0 Serial 0/0/1 192.168.50.0 F0/1 F0/0 192.168.40.0 F0/0 Serial 0/0/1 PC2 PC3 192.168.30.0 PC5 PC4 192.168.50.0 Configuração na linha de comandos (CLI) Tabela de Roteamento (R2) R2(config)#ip route 192.168.10.0 255.255.255.0 192.168.20.1 S 192.168.10.0/24 [1/0] via 192.168.20.1 R2(config)#ip route 192.168.50.0 255.255.255.0 192.168.40.2 S 192.168.50.0/24 [1/0] via 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 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
  16. 16. Roteamento Estático José Janeiro jaejaneiro@gmail.com Estudo do Roteamento Estático no Roteador R3
  17. 17. José Janeiro Roteamento Estático 192.168.40.0 .2 jaejaneiro@gmail.com Tabela Roteamento R3 R3 Rede FastEthernet0/0 192.168.40.0 F0/0 Interface 192.168.50.0 S0/0/0 Serial 0/0/0 192.168.50.0 Configuração na linha de comandos (CLI) Tabela de Roteamento (R3) R3(config)#interface FastEthernet0/0 R3(config-if)#ip address 192.168.50.1 255.255.255.0 R3(config-if)#no shutdown R3(config-if)#exit C 192.168.50.0/24 is directly connected, FastEthernet0/0 R3(config)#interface Serial 0/0/0 R3(config-if)#ip address 192.168.40.2 255.255.255.0 R3(config-if)#no shutdown R3(config-if)#exit C 192.168.40.0/24 is directly connected, Serial0/0/0
  18. 18. José Janeiro Roteamento Estático R2 S0/0/1 .2 R3 S0/0/0 F0/0 Redes Remotas Endereço Próximo Salto 192.168.10.0 192.168.40.1 192.168.20.0 192.168.40.0 .1 jaejaneiro@gmail.com 192.168.40.1 192.168.30.0 192.168.40.1 192.168.50.0 Configuração de rotas estáticas Comando Rede Remota ip route 192.168.10.0 192.168.20.0 192.168.30.0 Máscara de Rede Endereço Próximo Salto 255.255.255.0 192.168.40.1 (Interface Serial 0/0/1 do Roteador R2)
  19. 19. José Janeiro Roteamento Estático jaejaneiro@gmail.com Tabela Roteamento R3 192.168.20.0 R1 S0/0/0 192.168.40.0 F0/0 S0/0/0 DCE F0/0 F0/1 S0/0/1 DCE F0/1 PC1 192.168.10.0 Rede Interface 192.168.50.0 FastEthernet0/0 F0/0 192.168.40.0 Serial 0/0/0 F0/1 192.168.10.0 Serial 0/0/0 R3 R2 .1 PC2 PC3 192.168.30.0 S0/0/0 PC5 PC4 192.168.50.0 Configuração na linha de comandos (CLI) Tabela de Roteamento (R3) R3(config)#ip route 192.168.10.0 255.255.255.0 192.168.40.1 S 192.168.10.0/24 [1/0] via 192.168.40.1
  20. 20. José Janeiro Roteamento Estático jaejaneiro@gmail.com Tabela Roteamento R3 192.168.20.0 192.168.40.0 S0/0/0 Interface 192.168.50.0 FastEthernet0/0 F0/0 192.168.40.0 Serial 0/0/0 F0/1 192.168.10.0 Serial 0/0/0 Serial 0/0/0 R3 R2 .1 F0/0 S0/0/0 DCE F0/0 F0/1 S0/0/1 DCE F0/1 PC1 192.168.10.0 Rede 192.168.20.0 R1 PC2 PC3 192.168.30.0 S0/0/0 PC5 PC4 192.168.50.0 Configuração na linha de comandos (CLI) Tabela de Roteamento (R3) R3(config)#ip route 192.168.10.0 255.255.255.0 192.168.40.1 S 192.168.10.0/24 [1/0] via 192.168.40.1 R3(config)#ip route 192.168.20.0 255.255.255.0 192.168.40.1 S 192.168.20.0/24 [1/0] via 192.168.40.1
  21. 21. José Janeiro Roteamento Estático jaejaneiro@gmail.com Tabela Roteamento R3 192.168.20.0 192.168.40.0 192.168.50.0 FastEthernet0/0 F0/0 192.168.40.0 Serial 0/0/0 F0/1 192.168.10.0 Serial 0/0/0 Serial 0/0/0 Serial 0/0/0 R3 R2 .1 F0/0 S0/0/0 DCE F0/0 F0/1 S0/0/1 DCE F0/1 PC1 192.168.10.0 Interface 192.168.30.0 S0/0/0 Rede 192.168.20.0 R1 PC2 PC3 192.168.30.0 S0/0/0 PC5 PC4 192.168.50.0 Configuração na linha de comandos (CLI) Tabela de Roteamento (R3) R3(config)#ip route 192.168.10.0 255.255.255.0 192.168.40.1 S 192.168.10.0/24 [1/0] via 192.168.40.1 R3(config)#ip route 192.168.20.0 255.255.255.0 192.168.40.1 S 192.168.20.0/24 [1/0] via 192.168.40.1 R3(config)#ip route 192.168.30.0 255.255.255.0 192.168.40.1 S 192.168.30.0/24 [1/0] via 192.168.40.1
  22. 22. José Janeiro Roteamento Estático jaejaneiro@gmail.com Tabela Roteamento R3 192.168.20.0 192.168.40.0 192.168.50.0 FastEthernet0/0 F0/0 192.168.40.0 Serial 0/0/0 F0/1 192.168.10.0 Serial 0/0/0 Serial 0/0/0 Serial 0/0/0 R3 R2 F0/0 S0/0/0 DCE F0/0 F0/1 S0/0/1 DCE F0/1 PC1 192.168.10.0 Interface 192.168.30.0 S0/0/0 Rede 192.168.20.0 R1 PC2 PC3 192.168.30.0 S0/0/0 PC5 PC4 192.168.50.0 Configuração na linha de comandos (CLI) Tabela de Roteamento (R3) R3(config)#ip route 192.168.10.0 255.255.255.0 192.168.40.1 S 192.168.10.0/24 [1/0] via 192.168.40.1 R3(config)#ip route 192.168.20.0 255.255.255.0 192.168.40.1 S 192.168.20.0/24 [1/0] via 192.168.40.1 R3(config)#ip route 192.168.30.0 255.255.255.0 192.168.40.1 S 192.168.30.0/24 [1/0] via 192.168.40.1 R3(config-if)#ip address 192.168.40.2 255.255.255.0 R3(config-if)#ip address 192.168.50.1 255.255.255.0 C 192.168.40.0/24 is directly connected, Serial0/0/0 C 192.168.50.0/24 is directly connected, FastEthernet0/0
  23. 23. Roteamento Estático R1: Configuração Roteamento Estático R1(config)#interface FastEthernet0/0 R1(config-if)#ip address 192.168.10.1 255.255.255.0 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#interface Serial 0/0/0 R1(config-if)#ip address 192.168.20.1 255.255.255.0 R1(config-if)#no shutdown R1(config-if)#exit R1(config-if)#ip route 192.168.30.0 255.255.255.0 192.168.20.2 R1(config-if)#ip route 192.168.40.0 255.255.255.0 192.168.20.2 R1(config-if)#ip route 192.168.50.0 255.255.255.0 192.168.20.2 R1: Output do comando show ip route José Janeiro jaejaneiro@gmail.com
  24. 24. Roteamento Estático R2: Configuração Roteamento Estático R2(config)#interface FastEthernet0/0 R2(config-if)#ip address 192.168.30.1 255.255.255.0 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#interface Serial 0/0/0 R2(config-if)#ip address 192.168.20.1 255.255.255.0 R2(config-if)#no shutdown R2(config-if)#clocrate 64000 R2(config-if)#exit R2(config)#interface Serial 0/0/1 R2(config-if)#ip address 192.168.40.1 255.255.255.0 R2(config-if)#no shutdown R2(config-if)#clockrate 64000 R2(config-if)#exit R2(config)#ip route 192.168.10.0 255.255.255.0 192.168.20.1 R2(config)#ip route 192.168.50.0 255.255.255.0 192.168.40.2 R2: Output do comando show ip route José Janeiro jaejaneiro@gmail.com
  25. 25. Roteamento Estático R3: Configuração Roteamento Estático R3(config)#interface FastEthernet0/0 R3(config-if)#ip address 192.168.50.1 255.255.255.0 R3(config-if)#no shutdown R3(config-if)#exit R3(config)#interface Serial 0/0/0 R3(config-if)#ip address 192.168.40.2 255.255.255.0 R3(config-if)#no shutdown R3(config-if)#exit R3(config-if)#ip route 192.168.10.0 255.255.255.0 192.168.40.1 R3(config-if)#ip route 192.168.20.0 255.255.255.0 192.168.40.1 R3(config-if)#ip route 192.168.30.0 255.255.255.0 192.168.40.1 R3: Output do comando show ip route José Janeiro jaejaneiro@gmail.com
  26. 26. José Janeiro Roteamento Estático jaejaneiro@gmail.com 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.
  27. 27. Roteamento Estático José Janeiro jaejaneiro@gmail.com Para seu estudo consulte também: • • A matéria teórica em formato PDF • • Assista o vídeo sobre roteamento estático no endereço youtube: www.youtube.com/jaejaneiro 10-07-2011 José Afonso Esteves Janeiro

×