Q1.pkt
, Q2_Estrela.pkt
, Q3_Anel.pkt
, Q4_MalhaParcial.pkt
, Q5_Hibrida.pkt
.PC0
e Laptop0
(ou Printer0
).2960
(ex.: Switch0
).2911
(ex.: R1
).PC0
→ Desktop > IP Configuration192.168.1.10
| Mask: 255.255.255.0
| Gateway: 192.168.1.1
Laptop0
→ IP: 192.168.1.11
| Mask: 255.255.255.0
| Gateway: 192.168.1.1
R1
(interface para LAN):enable
conf t
interface g0/0
ip address 192.168.1.1 255.255.255.0
no shutdown
end
wr
PC0
(Desktop > Command Prompt): ping 192.168.1.11
PC0
: ping 192.168.1.1
Q1.pkt
+ nota com função de cada dispositivo (host, intermediário, gateway).Switch0
(2960) e PC0…PC3
.PCx
↔ Switch0
: Copper Straight-Through.PC0
: IP 192.168.10.10
/ Mask 255.255.255.0
PC1
: IP 192.168.10.11
/ Mask 255.255.255.0
PC2
: IP 192.168.10.12
/ Mask 255.255.255.0
PC3
: IP 192.168.10.13
/ Mask 255.255.255.0
PC0
→ ping 192.168.10.11
e ping 192.168.10.12
.Q2_Estrela.pkt
+ nota com pings e V/D.Switch0…Switch3
(2960) em círculo.PC0…PC3
(um PC em cada switch).PC0
: 192.168.20.10
PC1
: 192.168.20.11
PC2
: 192.168.20.12
PC3
: 192.168.20.13
255.255.255.0
| Sem gateway.PC0
→ ping 192.168.20.12
.Q3_Anel.pkt
+ nota com observações sobre STP e prints.R1
, R2
, R3
(ex.: 2911), Switch1…3
, PC0…PC5
(2 PCs por LAN).PC0
→ IP 192.168.1.10
/ Mask 255.255.255.0
/ GW 192.168.1.1
PC1
→ IP 192.168.1.11
/ Mask 255.255.255.0
/ GW 192.168.1.1
PC2
→ 192.168.2.10
… GW 192.168.2.1
PC3
→ 192.168.2.11
… GW 192.168.2.1
PC4
→ 192.168.3.10
… GW 192.168.3.1
PC5
→ 192.168.3.11
… GW 192.168.3.1
enable
conf t
interface g0/0 ! LAN1
ip address 192.168.1.1 255.255.255.0
no shutdown
interface g0/1 ! p/ R2
ip address 10.0.12.1 255.255.255.252
no shutdown
interface g0/2 ! p/ R3
ip address 10.0.13.1 255.255.255.252
no shutdown
end
wr
enable
conf t
interface g0/0 ! LAN2
ip address 192.168.2.1 255.255.255.0
no shutdown
interface g0/1 ! p/ R1
ip address 10.0.12.2 255.255.255.252
no shutdown
interface g0/2 ! p/ R3
ip address 10.0.23.1 255.255.255.252
no shutdown
end
wr
enable
conf t
interface g0/0 ! LAN3
ip address 192.168.3.1 255.255.255.0
no shutdown
interface g0/1 ! p/ R1
ip address 10.0.13.2 255.255.255.252
no shutdown
interface g0/2 ! p/ R2
ip address 10.0.23.2 255.255.255.252
no shutdown
end
wr
conf t
router rip
version 2
no auto-summary
network 192.168.1.0
network 10.0.0.0
end
wr
conf t
router rip
version 2
no auto-summary
network 192.168.2.0
network 10.0.0.0
end
wr
conf t
router rip
version 2
no auto-summary
network 192.168.3.0
network 10.0.0.0
end
wr
PC0
→ ping 192.168.2.10
e ping 192.168.3.10
.PC3
→ ping 192.168.1.10
.show ip route
(ver rotas RIP).Q4_MalhaParcial.pkt
+ nota com pings e show ip route
.192.168.1.1 / 255.255.255.0
(LAN1)10.0.12.1 / 255.255.255.252
(link com R2)192.168.2.1 / 255.255.255.0
(LAN2)10.0.12.2 / 255.255.255.252
(com R1)10.0.23.1 / 255.255.255.252
(com R3)192.168.3.1 / 255.255.255.0
(LAN3)10.0.23.2 / 255.255.255.252
(com R2)192.168.1.10/24
e 192.168.1.11/24
, GW 192.168.1.1192.168.2.10/24
e 192.168.2.11/24
, GW 192.168.2.1192.168.3.10/24
e 192.168.3.11/24
, GW 192.168.3.1192.168.2.0
Mask 255.255.255.0
Next Hop 10.0.12.2
192.168.3.0
Mask 255.255.255.0
Next Hop 10.0.12.2
192.168.1.0
Mask 255.255.255.0
Next Hop 10.0.12.1
192.168.3.0
Mask 255.255.255.0
Next Hop 10.0.23.2
192.168.1.0
Mask 255.255.255.0
Next Hop 10.0.23.1
192.168.2.0
Mask 255.255.255.0
Next Hop 10.0.23.1
ping 192.168.2.10
e ping 192.168.3.10
ping 192.168.1.10
show ip route
em cada roteador: verá rotas com S (Static)Observação: Como não existe o enlace R1–R3, todo tráfego entre eles passa pelo R2 (2 saltos).
Antes de habilitar RIP, remova as rotas estáticas (mesma tela, Remove), senão elas terão prioridade.
Garanta RIP v2 e desative a sumarização automática:
router rip
version 2
no auto-summary
192.168.1.0
10.0.12.0
192.168.2.0
10.0.12.0
10.0.23.0
192.168.3.0
10.0.23.0
show ip route
(rotas com R), show ip protocols
.ping 192.168.1.1
(gateway local)ping 10.0.12.2
(vizinho R2)ping 10.0.23.2
(vizinho R3)ping 192.168.2.10
e 192.168.3.10
SwitchCore1
, SwitchCore2
(2960).SwitchA
, SwitchB
(2960).PC0…PC5
(distribua 3 em cada switch de acesso).SwitchCore1
↔ SwitchCore2
(Crossover/Auto).SwitchA
↔ ambos os Core
e SwitchB
↔ ambos os Core
(Crossover/Auto).PC0
= .10
, PC1
= .11
, PC2
= .12
… PC5
= .15
.PC0 → PC4
).RCore1
e RCore2
, crie duas VLANs (ou duas LANs em switches independentes) e configure roteamento entre VLANs via roteadores (ou SVI se usar switch L3).ping
entre sub-redes.Q5_Hibrida.pkt
+ nota com pings e observações.google.com
) em endereços IP que os computadores usam para localizar servidores.