0% found this document useful (0 votes)
12 views

Cisco Assign 1

VLANs create broadcast domains by logically segmenting switch ports. Switches can assign ports to different VLANs to separate broadcast traffic between them while still allowing communication. To configure VLANs, administrators first define the VLAN in global configuration mode and assign it a name. They then place individual ports into the correct VLAN by specifying the access VLAN in interface configuration mode. This isolates broadcast traffic for that VLAN while enabling communication between ports in the same VLAN.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Cisco Assign 1

VLANs create broadcast domains by logically segmenting switch ports. Switches can assign ports to different VLANs to separate broadcast traffic between them while still allowing communication. To configure VLANs, administrators first define the VLAN in global configuration mode and assign it a name. They then place individual ports into the correct VLAN by specifying the access VLAN in interface configuration mode. This isolates broadcast traffic for that VLAN while enabling communication between ports in the same VLAN.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

1. What is VLAN?

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.

2. How to configure VLANs?


To create a VLAN, first enter global configuration mode to run the following commands. Configuration to create VLAN 2 SwitchA(config)#configure terminal SwitchA(config)#vlan 2 SwitchA(config)#vlan 2 name marketing SwitchA(config)#exit (enter in global configuration mode) (defining the vlan 2) (assigning the name marketing to vlan 2) (exit from vlan 2)

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)

You might also like