Cisco Assign 1
Cisco Assign 1
Virtual LAN or VLAN is a broadcast domain created by switches. Normally, it is a router creating that broadcast domain. With VLANs, a switch can create the broadcast domain. This works by putting some switch ports in a VLAN other than one, the default VLAN. All ports in a single VLAN are in a single broadcast domain. Because switches can talk to each other, some ports on switch A can be in VLAN 10 and other ports on switch B can be in VLAN 10. Broadcasts between these devices will not be seen on any other port in any other VLAN, other than 10. However, these devices can all communicate because they are on the same VLAN. Without additional configuration, they would not be able to communicate with any other devices, not in their VLAN.
Configuration to create VLAN 3 SwitchA(config)#configure terminal SwitchA(config)#vlan 3 SwitchA(config)#vlan 3 name management to vlan 3) SwitchA(config)#exit (exit from vlan 3) (enter in global configuration mode) (defining the vlan 3) (assigning the name management
Now assigning the ports 2 and 3 to VLAN 2, it must be done from the interface mode. Enter the following commands to add port 2 and 3 to VLAN 2.
SwitchA(config)#configure terminal SwitchA(config)#interface fastethernet 0/2 SwitchA(config-if)#switchport access vlan 2 SwitchA(config-if)#exit (enter in global configuration mode) (select the Ethernet 0 of port 2) (allot the membership of vlan 2) (exit from interface 2)