Laborat rio de Switch utilizando VLANs
VLAN10 (ADMINISTRATIVO)
PC01
PC02
PC03
Endereço IP: 192.168.167.2
Endereço IP: 192.168.167.3
Endereço IP: 192.168.167.4
Mascara: 255.255.255.0
Mascara: 255.255.255.0
Mascara: 255.255.255.0
Gatwey: 192.168.167.1
Gatwey: 192.168.167.1
Gatwey: 192.168.167.1
=====================================================================================
VLAN20 (SUPORTE)
PC04
PC05
PC06
Endereço IP: 192.168.167.5
Endereço IP: 192.168.167.6
Endereço IP: 192.168.167.7
Mascara: 255.255.255.0
Mascara: 255.255.255.0
Mascara: 255.255.255.0
Gatwey: 192.168.167.1
Gatwey: 192.168.167.1
Gatwey: 192.168.167.1
Etapa 1 – Atribuir nome ao Switch
Switch> enable
SWA#
Switch(config)# hostname SWA
Switch# configure terminal
Etapa 2 - Criar e nomear duas VLANs
Digite os seguintes comandos para criar e nomear duas VLANs:
2960:
SWA# vlan database
SWA(vlan)# vlan 20 name Suporte
SWA(vlan)# vlan 10 name Administrativo
SWA(vlan)# exit
---------------------------------------------------------------------------------------------------------------------------------------------1924:
SWA# config terminal
SWA(config)# vlan 20 name Suporte
SWA(config)# vlan 10 name Administrativo
SWA(config)# exit
=======================================================================================
Etapa 3 - Atribuir portas à VLAN 10
A atribuição de portas às VLANs precisa ser realizada a partir do modo de interface. Digite os seguintes comandos para adicionar as portas 0/1 até 0/3 à VLAN 10:
2960:
SWA# configure terminal
SWA(config-if)# switchport mode access
SWA(config)# interface fastethernet 0/1
SWA(config-if)# switchport access vlan 10
SWA(config-if)# switchport mode access
SWA(config-if)# interface fastethernet 0/3
COMENTÁRIOS: é uma recomendação da
Cisco para colocar as portas onde temos computadores ou endpoints como acesso.
SWA(config-if)# switchport mode access
SWA(config-if)# switchport access vlan 10
SWA(config-if)# switchport