LAB VLANs Configuraci贸n de ip en los pc: Pc0 Ip address: Mask: Defaul gatewey: Class: Pc2 Ip address: Mask: Defaul gatewey: Class:
192.168.5.10 255.255.255.0 192.168.5.1 C 192.168.6.11 255.255.255.0 192.168.5.1 C
Pc1 Ip address: Mask: Defaul gatewey: Class: Pc3 Ip address: Mask: Defaul gatewey: Class:
Configuraci贸n del switch: Switch>enable Apagado del switch para configurar la tabla de enrutamiento Switch#vlan database % Warning: It is recommended to configure VLAN from config mode, as VLAN database mode is being deprecated. Please consult user documentation for configuring VTP/VLAN in config mode. Entramos a la table del switch Switch(vlan)#vlan 10 name A VLAN 10 modified: Name: A Switch(vlan)#vlan 20 name B VLAN 20 added: Name: B Switch(vlan)#exit APPLY completed. Exiting.... Creamos dos vlans y les damos nombre a cada una Switch#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Entramos a la terminal de configuracion Switch(config)#interface fastethernet 0/2 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 10 Switch(config-if)#interface fastethernet 0/3 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 10
192.168.5.11 255.255.255.0 192.168.6.1 C 192.168.6.11 255.255.255.0 192.168.6.1 C