Estrutura física da rede com laboratórios: A, B e C
Cada PC terá acesso a um departamento diferente nos laboratórios.
Criação das VLANs
- SWITCH-LAB-A > CLI
- Entrando no terminal:
Switch>enable Switch#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# - Definindo os nomes da VLANs (departamentos):
Switch(config)#vlan 10 Switch(config-vlan)#name departamento_a Switch(config-vlan)#exit Switch(config)#vlan 20 Switch(config-vlan)#name departamento_b Switch(config-vlan)#exit Switch(config)#vlan 30 Switch(config-vlan)#name departamento_c Switch(config-vlan)# - Verificando as VLANs criadas e nomeadas:
Switch>show vlan brief VLAN Name Status Ports ------ -------------------------------- --------- ------------------------------- ... 10 departamento_a active 20 departamento_b active 30 departamento_c active ... - Vinculando as VLANs às interfaces
Switch(config)#interface Fa0/1 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 10 Switch(config-if)#exit - Após realizar esse processo nas interfaces Fa0/2 e Fa0/3, ficou assim
VLAN Name Status Ports ------ -------------------------------- --------- ------------------------------- ... 10 departamento_a active Fa0/1 20 departamento_b active Fa0/2 30 departamento_c active Fa0/3 ...
- Entrando no terminal:
- SWITCH-LAB-B > CLI
- Verificando as VLANs
Switch#show vlan brief VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- 1 default active Fa0/6, Fa0/7, Fa0/8, Fa0/9 Fa0/10, Fa0/11, Fa0/12, Fa0/13 Fa0/14, Fa0/15, Fa0/16, Fa0/17 Fa0/18, Fa0/19, Fa0/20, Fa0/21 Fa0/22, Fa0/23, Fa0/24 1002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active Switch# - Executei os passos 1.1, 1.2, 1.3, 1.4 e 1.5 anteriores
Switch#show vlan brief VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- ... 10 departamento_a active Fa0/1 20 departamento_b active Fa0/2 30 departamento_c active Fa0/3 ...
- Verificando as VLANs
- SWITCH-LAB-C: Repeti aqui os passos 1.1, 1.2, 1.3, 1.4 e 1.5.
Switch#show vlan brief VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- ... 10 departamento_a active Fa0/1 20 departamento_b active Fa0/2 30 departamento_c active Fa0/3 ... - Testando a conectividade com IPs estáticos
Esses testes foram feitos entre o PC-1LAB-A (193.65.0.1) com:Cisco Packet Tracer PC Command Line 1.0 C:\>ping 193.65.0.7 Ping statistics for 193.65.0.7: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), C:\>ping 193.65.0.4 Ping statistics for 193.65.0.4: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), C:\>ping 193.65.0.3 Ping statistics for 193.65.0.3: Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),- PC-1LAB-C: 193.65.0.7 (Conectou) (Essa conectividade indica que os Switches já estão trabalhando no modo Trunk por padrão.)
- PC-1LAB-B: 193.65.0.4 (conectou)
- PC-3LAB-A: 193.65.0.3 (Falhou)
Esses resultados sugerem que há conexão entre dispositivos no mesmo departamento. Mas não há conexão entre dispositivos em departamentos distintos; ou seja, sugere que os departamentos não estão desconectados ainda.