Mudanças entre as edições de "IER60808 2017-2"

De MediaWiki do Campus São José
Ir para navegação Ir para pesquisar
Linha 51: Linha 51:
  
 
== Laboratório sobre roteamento em NetKit ==
 
== Laboratório sobre roteamento em NetKit ==
 +
 +
:Laboratório a ser montado no netkit juntamente com o professor
 +
 +
Configurar a rede abaixo com os seguintes prefixos:
 +
 +
* SN1 : 200.10.1.0/24
 +
* SN2 : 200.10.2.0/24
 +
* SN3 : 200.10.3.0/24
 +
* SN4 : 200.10.4.0/24
 +
* SN5 : 200.10.5.0/24
 +
* SN6 : 200.10.6.0/24
 +
* SN7 : 200.10.7.0/24
 +
* SN8 : 200.10.8.0/24
 +
 +
Instalar rota para que pacotes vindos de H1 para H2 passem por R1, R3 e R2. O retorno deve ser via R2 e R1. Teste a rota com o comando ping.
 +
 +
[[Image:LabRoteamento-RCO1-2017-1.png]]
 +
 +
<code>
 +
# Global attributes: these values are obtained automatically from menu General->Preferences
 +
 +
H1[type]=generic
 +
H2[type]=generic
 +
 +
R1[type]=generic
 +
R2[type]=generic
 +
R3[type]=generic
 +
 +
 +
H1[eth0]=SN1:ip=200.10.1.1/24
 +
H2[eth0]=SN8:ip=200.10.8.1/24
 +
 +
R1[eth0]=SN1:ip=200.10.1.254/24
 +
R1[eth1]=SN4:ip=200.10.4.1/24
 +
R1[eth2]=SN2:ip=200.10.2.1/24
 +
 +
 +
R2[eth0]=SN8:ip=200.10.8.254/24
 +
R2[eth1]=SN4:ip=200.10.4.2/24
 +
R2[eth2]=SN7:ip=200.10.7.1/24
 +
 +
R3[eth0]=SN2:ip=200.10.2.2/24
 +
R3[eth1]=SN7:ip=200.10.7.2/24
 +
 +
#######################################
 +
## COMANDOS DE ESTABELECIMENTO DE TOTAS
 +
#######################################
 +
 +
#H1
 +
#route add default gw 200.10.1.254
 +
 +
#H2
 +
#route add default gw 200.10.8.254
 +
 +
#R1
 +
#echo 1 > /proc/sys/net/ipv4/ip_forward
 +
#echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
 +
#echo 0 > /proc/sys/net/ipv4/conf/eth0/rp_filter
 +
#echo 0 > /proc/sys/net/ipv4/conf/eth1/rp_filter
 +
#echo 0 > /proc/sys/net/ipv4/conf/eth2/rp_filter
 +
#route add -net 200.10.8.0 netmask 255.255.255.0 gw 200.10.2.2 dev eth2
 +
 +
#R2
 +
#echo 1 > /proc/sys/net/ipv4/ip_forward
 +
#echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
 +
#echo 0 > /proc/sys/net/ipv4/conf/eth0/rp_filter
 +
#echo 0 > /proc/sys/net/ipv4/conf/eth1/rp_filter
 +
#echo 0 > /proc/sys/net/ipv4/conf/eth2/rp_filter
 +
#route add -net 200.10.1.0 netmask 255.255.255.0 gw 200.10.4.1 dev eth1
 +
 +
#R3
 +
#echo 1 > /proc/sys/net/ipv4/ip_forward
 +
#echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
 +
#echo 0 > /proc/sys/net/ipv4/conf/eth0/rp_filter
 +
#echo 0 > /proc/sys/net/ipv4/conf/eth1/rp_filter
 +
#echo 0 > /proc/sys/net/ipv4/conf/eth2/rp_filter
 +
#route add -net 200.10.8.0 netmask 255.255.255.0 gw 200.10.7.1 dev eth1
 +
</syntaxhighlight>
  
 
= Diário de Aulas =
 
= Diário de Aulas =

Edição das 15h54min de 2 de agosto de 2017

Dados Importantes

Professor: Juliano de Souza
Email: juliano.souza@ifsc.edu.br,
Atendimento paralelo: 5as 13:30h - 14:30h - Sala de Prof. Telecomunicações II
Atendimento paralelo: 6as 17:30h - 18:30h - Sala de Prof. Telecomunicações II

Material de Apoio

Manuais e outros


Bibliografia

Para pesquisar o acervo das bibliotecas do IFSC:

Softwares

  • Netkit: possibilita criar experimentos com redes compostas por máquinas virtuais Linux
  • IPKit: um simulador de encaminhamento IP (roda direto dentro do navegador)

Curiosidades

Trabalhos, Avaliações e Conceitos

Laboratório sobre roteamento em NetKit

Laboratório a ser montado no netkit juntamente com o professor

Configurar a rede abaixo com os seguintes prefixos:

  • SN1 : 200.10.1.0/24
  • SN2 : 200.10.2.0/24
  • SN3 : 200.10.3.0/24
  • SN4 : 200.10.4.0/24
  • SN5 : 200.10.5.0/24
  • SN6 : 200.10.6.0/24
  • SN7 : 200.10.7.0/24
  • SN8 : 200.10.8.0/24

Instalar rota para que pacotes vindos de H1 para H2 passem por R1, R3 e R2. O retorno deve ser via R2 e R1. Teste a rota com o comando ping.

LabRoteamento-RCO1-2017-1.png

  1. Global attributes: these values are obtained automatically from menu General->Preferences

H1[type]=generic H2[type]=generic

R1[type]=generic R2[type]=generic R3[type]=generic


H1[eth0]=SN1:ip=200.10.1.1/24 H2[eth0]=SN8:ip=200.10.8.1/24

R1[eth0]=SN1:ip=200.10.1.254/24 R1[eth1]=SN4:ip=200.10.4.1/24 R1[eth2]=SN2:ip=200.10.2.1/24


R2[eth0]=SN8:ip=200.10.8.254/24 R2[eth1]=SN4:ip=200.10.4.2/24 R2[eth2]=SN7:ip=200.10.7.1/24

R3[eth0]=SN2:ip=200.10.2.2/24 R3[eth1]=SN7:ip=200.10.7.2/24

    1. COMANDOS DE ESTABELECIMENTO DE TOTAS
  1. H1
  2. route add default gw 200.10.1.254
  1. H2
  2. route add default gw 200.10.8.254
  1. R1
  2. echo 1 > /proc/sys/net/ipv4/ip_forward
  3. echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
  4. echo 0 > /proc/sys/net/ipv4/conf/eth0/rp_filter
  5. echo 0 > /proc/sys/net/ipv4/conf/eth1/rp_filter
  6. echo 0 > /proc/sys/net/ipv4/conf/eth2/rp_filter
  7. route add -net 200.10.8.0 netmask 255.255.255.0 gw 200.10.2.2 dev eth2
  1. R2
  2. echo 1 > /proc/sys/net/ipv4/ip_forward
  3. echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
  4. echo 0 > /proc/sys/net/ipv4/conf/eth0/rp_filter
  5. echo 0 > /proc/sys/net/ipv4/conf/eth1/rp_filter
  6. echo 0 > /proc/sys/net/ipv4/conf/eth2/rp_filter
  7. route add -net 200.10.1.0 netmask 255.255.255.0 gw 200.10.4.1 dev eth1
  1. R3
  2. echo 1 > /proc/sys/net/ipv4/ip_forward
  3. echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
  4. echo 0 > /proc/sys/net/ipv4/conf/eth0/rp_filter
  5. echo 0 > /proc/sys/net/ipv4/conf/eth1/rp_filter
  6. echo 0 > /proc/sys/net/ipv4/conf/eth2/rp_filter
  7. route add -net 200.10.8.0 netmask 255.255.255.0 gw 200.10.7.1 dev eth1

</syntaxhighlight>

Diário de Aulas

Aula Data Horas Conteúdo Recursos
1 31/7 2 Apresentação da disciplina, Revisão conceitos básicos de redes.
2 2/8 2
3 7/8 2
4 9/8 2
5 14/8 2
6 16/8 2
7 21/8 2
8 23/8 2
9 28/8 2
10 30/8 2
11 4/9 2
12 6/9 2
13 11/9 2
14 13/9 2
15 18/9 2
16 20/9 2
17 25/9 2
18 27/9 2
19 2/10 2
20 4/10 2
21 9/10 2
22 11/10 2
23 16/10 2
24 18/10 2
25 23/10 2
26 25/10 2
27 30/10 2
28 1/11 2
29 6/11 2
30 8/11 2
31 13/11 2
32 20/11 2
33 22/11 2
34 27/11 2
35 29/11 2
36 4/12 2
37 6/12 2
38 11/12 2
39 13/12 2
40 18/12 2
TOTAL 80