Configuración VLAN en switch Edge-Core ES3526XA y ES3528M-PoE

Ingresar al switch con usuario administrador (preferentemente por ssh):
ssh

Vty-0#

ingresamos al modo de configuración:
Vty-0#config
Vty-0(config)#

ingresar vlan database:
Vty-0(config)#vlan database
Vty-0(config-vlan)#

para crear la VLAN (ej: vlan 10 con el nombre DATA), ingresar:
Vty-0(config-vlan)#vlan 10 name DATA media ethernet state active
Vty-0(config-vlan)#

Para asignar un puerto a la VLAN:

  1. NO TRUNK ###########
    En caso de que sea un puerto NO trunk:
    1) Cambiar el mode del puerto a access (ej: del puerto 13 al 18) :
    Vty-0(config)#interface ethernet 1/13-18
    Vty-0(config-if)#switchport mode access
    Vty-0(config-if)#

2)Asignarlo a la VLAN correspondiente (ej: para asignarlo a la VLAN 10):
Vty-0(config-if)#switchport allowed vlan add 10 untagged

Estos dos siguientes pasos no son necesarios para el modelo ES3528M-PoE
Vty-0(config-if)#switchport native vlan 10
Vty-0(config-if)#switchport allowed vlan remove 1

3) Verificar que quedó en la VLAN correspondiente(10) y no en la VLAN 1(por defecto)
Vty-0(config-if)#exit
Vty-0(config)#exit
Vty-0#show interfaces switchport ethernet 1/13
Information of Eth 1/13
Broadcast Threshold: Enabled, scale:8K level:8 bits/second
Multicast Threshold: Disabled
Unicast Threshold: Disabled
LACP Status: Disabled
Ingress Rate Limit: Disabled, scale:8M level:10
Egress Rate Limit: Disabled, scale:8M level:10
VLAN Membership Mode: Access
Ingress Rule: Enabled
Acceptable Frame Type: All frames
Native VLAN: 10
Priority for Untagged Traffic: 0
GVRP Status: Disabled
Allowed VLAN: 10(u),
Forbidden VLAN:
Private-VLAN Mode: NONE
Private-VLAN Mapping: NONE
802.1Q-tunnel Status: Disable
802.1Q-tunnel Mode: NORMAL
802.1Q-tunnel TPID: 8100(Hex)
Vty-0#

  1. TRUNK ###########
    En caso de que sea un puerto trunk:

1) Cambiar el mode del puerto a trunk :
Vty-0#configure
Vty-0(config)#interface ethernet 1/26 #para el puerto 26
Vty-0(config-if)#switchport mode trunk

2)Asignarlo a la VLAN correspondiente:
Vty-0(config-if)#switchport allowed vlan add 10 tagged # para la VLAN 10

3) Verificar que quedó en la VLAN correspondiente(10)
Vty-0(config-if)#exit
Vty-0(config)#exit
Vty-0#show interfaces switchport ethernet 1/26
Information of Eth 1/26
Broadcast Threshold: Enabled, scale:8K level:8 bits/second
Multicast Threshold: Disabled
Unicast Threshold: Disabled
LACP Status: Disabled
Ingress Rate Limit: Disabled, scale:8M level:10
Egress Rate Limit: Disabled, scale:8M level:10
VLAN Membership Mode: Trunk
Ingress Rule: Enabled
Acceptable Frame Type: All frames
Native VLAN: 1
Priority for Untagged Traffic: 0
GVRP Status: Disabled
Allowed VLAN: 1(t), 10(t), 20(t),
Forbidden VLAN:
Private-VLAN Mode: NONE
Private-VLAN Mapping: NONE
802.1Q-tunnel Status: Disable
802.1Q-tunnel Mode: NORMAL
802.1Q-tunnel TPID: 8100(Hex)

Para verificar que las VLANs quedaron bien:

Vty-0(config-if)#exit
Vty-0(config)#exit
Vty-0#show vlan
Default VLAN ID : 1

VLAN ID: 1
Type: Static
Name: DefaultVlan
Status: Active
Ports/Port Channels: Eth1/ 1(S) Eth1/ 2(S) Eth1/ 3(S) Eth1/ 4(S) Eth1/ 5(S)
Eth1/ 6(S) Eth1/19(S) Eth1/20(S) Eth1/21(S) Eth1/22(S)
Eth1/23(S) Eth1/24(S) Eth1/25(S) Eth1/26(S)

VLAN ID: 10
Type: Static
Name: DATA
Status: Active
Ports/Port Channels: Eth1/13(S) Eth1/14(S) Eth1/15(S) Eth1/16(S) Eth1/17(S)
Eth1/18(S) Eth1/26(S)

VLAN ID: 20
Type: Static
Name: VOIP
Status: Active
Ports/Port Channels: Eth1/ 7(S) Eth1/ 8(S) Eth1/ 9(S) Eth1/10(S) Eth1/11(S)
Eth1/12(S) Eth1/26(S)

Para guardar los cambios en la flash (por ejemplo en el archivo cureVlan.cfg):
Vty-0#copy running-config file
Destination configuration file name: cureVlan.cfg
Write to FLASH Programming.
Write to FLASH finish.
Success.
Vty-0#

Para que se levante la configuración guardad en este archivo, cuando el switch vuelva a encender, desde la interfaz web, hay que ir a:
Home-> System-> File Management-> Set Start-Up

Ahí cambiaremos solamente al archivo *.cfg que esté selecionado por el nuestro.

Guide VLan VoIP.pdf (380 KB) Pablo García, 09/28/2016 06:13 PM