1 / 16

Exercícios de Roteamento BackBone IP

Exercícios de Roteamento BackBone IP. Nome dos Alunos. Pacote Quagga. Utilitários: zebra: deamon de integração com o S.O. TCP 2601 ripd: implementa o protocolo RIP TCP 2602 ospfd: implementa o protocolo OSPF TCP 2604 bgpd: implementa o protocolo BGP TCP 2605. Instalação do Quagga.

Download Presentation

Exercícios de Roteamento BackBone IP

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Exercícios de RoteamentoBackBone IP Nome dos Alunos

  2. Pacote Quagga • Utilitários: • zebra: deamon de integração com o S.O. • TCP 2601 • ripd: implementa o protocolo RIP • TCP 2602 • ospfd: implementa o protocolo OSPF • TCP 2604 • bgpd: implementa o protocolo BGP • TCP 2605

  3. Instalação do Quagga • PASSO 1: descompacte os arquivos • tar -xzf quagga-XXXX • PASSO 2: cheque a configuração • cd quagga-XXXX • ./configure • PASSO 3: compile os deamons • make

  4. Inicialização dos Serviços • Inicialização Zebra • cd zebra • ./zebra -u labredes -g labredes -f zebra.conf.sample • telnet 2601 • Inicialização do Serviço RIP • cd ripd • ./ripd -u labredes -g labredes -f ripd.conf.sample • telnet 2602 • enable • configure terminal

  5. Exercício 1: BGP 12.0.0.0/24 12.0.1.0/24 11.0.0.0/24 11.0.1.0/24 15.0.0.0/24 15.0.1.0/24 16.0.0.0/24 16.0.1.0/24 AS2 AS1 AS5 AS6 peer transit 2 1 5 6 Ponto de Troca (IXP/ PTT) peer peer 14.0.0.0/24 14.0.1.0/24 13.0.0.0/24 13.0.1.0/24 17.0.0.0/24 17.0.1.0/24 18.0.0.0/24 18.0.1.0/24 AS4 AS3 peer AS7 AS8 peer 4 3 7 8 peer transit 19.0.0.0/24 19.0.1.0/24 21.0.0.0/24 21.0.1.0/24 20.0.0.0/24 20.0.1.0/24 peer AS11 AS9 AS10 peer peer 11 9 10

  6. Arquivo de Configuração • ! • ! Zebra configuration saved from vty • ! 2007/06/14 15:24:48 • ! • hostname ospfd • password zebra • log stdout • ! • ! • router bgp 1 • bgp router-id 10.26.1235.17 • network 11.0.0.0/24 • network 11.0.1.0/24 • neighbor 10.26.135.18 remote-as 2 • neighbor 10.26.135.19 remote-as 3 • neighbor 10.26.135.20 remote-as 5 • neighbor 10.26.135.21 remote-as 7 • ! • line vty • !

  7. Entrega do Exercício 1 • Para cada bancada, crie um aquivo zip contendo os seguintes arquivos: • a) Arquivo de configuração dos dois nós da bancada • enable • config term • write • b) Tabela de rotas dos dois nós da bancada: • route -n >> rotasA.txt

  8. VConfig • Permite criar interfaces virtuais no linux que efetuam marcação com tags de VLANs: • modprobe 8021q • vlan add eth0 2 • ifconfig eth0.2 192.168.1.0 netmask 255.255.255.0 up • vlan delete eth0.2 vlan 2 switch vlan 3 trunk trunk vlan 4 eth0.4 eth0.5 eth0.2 eth0.3 eth0.3 eth0.4 vlan 5

  9. Exercício 2: RIP vlan 10 192.168.1.0/25 vlan 1 10.26.128.0/17 1 vlan 11 192.168.1.128/25 vlan 20 192.168.2.0/25 2 vlan 21 192.168.2.128/25 vlan 30 192.168.3.0/25 3 vlan 31 192.168.3.128/25

  10. Exemplo de arquivo de script #!/bin/bash if [ $# -eq 0 ]; then echo “Digite a opcao após o script” echo “1=Configurar, 2=Restaurar" exit fi if[ $1 -eq 1 ]; then echo "Configuracao de G1" vconfig eth0 add 10 vconfig eth0 add 11 ifconfig eth0.10 192.168.1.0 netmask 255.255.255.128 ifconfig eth0.11 192.168.1.128 netmask 255.255.255.128 else vconfig del eth0.10 vconfig del eth0.11 service network restart echo "Restaurar" fi

  11. Exemplo de arquivo de configuração • ! • ! Zebra configuration saved from vty • ! 2007/05/31 15:31:31 • ! • hostname ripd • password zebra • log stdout • ! • interface eth0 • ip rip authentication mode text • ip rip authentication string teste2 • ! • interface eth0.10 • ip rip authentication mode text • ip rip authentication string teste • interface eth0.11 • ip rip authentication mode text • ip rip authentication string teste • ! • router rip • redistribute kernel • redistribute static • network 0.0.0.0/0 • ! • line vty • !

  12. Entrega do Exercício 2 • Para cada bancada, crie um aquivo zip contendo os seguintes arquivos: • a) Arquivo de configuração dos dois nós da bancada • enable • config term • write • b) Tabela de rotas dos dois nós da bancada: • route -n >> rotasA.txt

  13. Exercício 3: OSPF vlan 1 10.26.128.0/17 (Área 0) Area 1 192.168.1.128/25 vlan 10 1 192.168.1.0/25 vlan 11 192.168.2.0/25 Area 2 vlan 20 2 192.168.3.128/25 vlan 21 Area 3 192.168.3.0/25 vlan 30 3 192.168.3.128/25 vlan 31

  14. Arquivo de Configuração (pares) • ! • ! Zebra configuration saved from vty • ! 2007/06/14 15:24:48 • ! • hostname ospfd • password zebra • log stdout • ! • ! • router ospf • ospf router-id 10.26.135.16 • redistribute kernel • redistribute static • network 10.26.128.0/17 area 0.0.0.0 • network 192.168.1.0/24 area 0.0.0.1 • area 0.0.0.1 range 192.168.1.0/24 • ! • line vty • !

  15. Entrega do Exercício 3 • Para cada bancada, crie um aquivo zip contendo os seguintes arquivos: • a) Arquivo de configuração dos dois nós da bancada • enable • config term • write • b) Tabela de rotas dos dois nós da bancada: • route -n >> rotasA.txt

  16. Entrega dos Exercício 2 e 3 • Envie os exercícios 2 e 3 em um único email, contendo o nome de toda a equipe. • Indique em um parágrafo no corpo do email o que você observou de vantagens do OSPF em relação ao RIP, quanto a economia de entradas na tabela de roteamento.

More Related