Sei sulla pagina 1di 3

AADIR UN PUERTO ETHERNET A UNA VLAN

Para configurar un puerto Ethernet o FastEthernet para que sea parte de una determinada VLAN.

Switch# configure Terminal
Switch(config)#interface FastEthernet*0/01
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan *20

Para verificar si la interface FastEthernet0/01 ya se encuentra en la VLAN *20 con el siguiente
comando.

Switch#sh vlan brief

--- 20 nombre_VLAN active Fa*0/1 (puerto agregado a la VLAN *20) ---
NOTA: *0/01 y *20 pueden variar dependiendo de los requerimientos.
COMO SE CONFIGURA UNA VLAN

Se deben seguir estos 4 pasos:
1.- Eliminar todas las VLAN definidas previamente.

Switch#delete flash: vlan.dat
Switch#erase startup-config
Switch#reload

2.- comando para ingresar al modo de configuracin global
Switch#configure terminal

3.- Configurar el ID que tendr la VLAN. (Ingresar el siguiente comando VLAN y el ID de la VLAN es
20).
Switch(config)#vlan 20

4.- Configurar el nombre que tendr la VLAN con el comando name e ingresar el nombre que tendr
la VLAN.
Switch(config-vlan)#name nombre_VLAN






CONFIGURACION DE NOMBRE, CONTRASEAS Y GUARDAR
CONFIGURACION
Switch>enable
Switch#config term
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname S1
S1(config)#enable secret (CONTRASEA)
S1(config)#no ip domain-lookup
S1(config)#line console 0
S1(config-line)#password (contrasea)
S1(config-line)#login
S1(config-line)#line vty 0 15
S1(config-line)#password (contrasea)
S1(config-line)#login
S1(config-line)#end
S1#copy running-config startup-config

---Destination filename [startup-config]? ---
---Building configuration... ---
CREACION DE VLAN Y NOMBRES
SERVIDOR(config)#vlan (numero de la vlan)
SERVIDOR(config-vlan)#name (nombre de la vlan)
SERVIDOR(config-vlan)#end
ASIGNACION DE VLANS EN LOS PUERTOS
SERVIDOR(config)#interface range f0/(rango del puerto ejem. "2-5" )
SERVIDOR(config-if-range)#switchport access vlan (nmero de la vlan)
ASIGNACION DE IP A CADA VLAN
SERVIDOR(config)#interface vlan (nmero de la vlan)
---%LINK-5-CHANGED: Interface Vlan10, changed state to up ---
---%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to up ---
SERVIDOR (config-if)#ip address (ip ejem. 172.17.10.10 y mascara de red ejem.
255.255.255.0)
SERVIDOR(config-if)#no shutdown


ASIGNACION DE GATEWAY DE LA VLAN
SERVIDOR(config)#ip default-gateway (ip del gateway ejem. 172.17.10.1)
---Enter configuration commands, one per line. End with CNTL/Z. ---
CREACION DE LA VLAN 99 ASIGNACION DE PUERTOS
SERVIDOR(config)#vlan 99
SERVIDOR(config-vlan)#name (nombre de la vlan)
SERVIDOR(config)#interface vlan 99

---%LINK-5-CHANGED: Interface Vlan99, changed state to up---

SERVIDOR(config-if)#
SERVIDOR(config-if)#ip address (ip y mascara de red de la vlan)
SERVIDOR(config-if)#
SERVIDOR(config)#interface range f0//rango de los puertos)
SERVIDOR(config-if-range)#switchport access vlan 99
Configurando trunk en switch
Switch>enable
Switch#configure terminal
Switch(config)#interface fastEthernet 0/1
Switch(config-if)#switchport mode trunk

Configuracion de la velocidad

Switch(config)#interface fastethernet 0/9
Switch(config-if)#duplex full
Switch(config-if)#speed 100

Potrebbero piacerti anche