VLAN is a logical grouping of devices that breaks the physical boundaries among them. This means that the devices connected to different #Switch or in different network can still able to be treated as a single group. It abstracts the network grouping and allows hosts to be treated as a single group based on their business role.
We can apply access rules and provision services to the users of same or similar responsibilities without the need to change the topology of the network or changing the IP Address. Furthermore, VLAN can also create their own Broadcast Domain# without the help from Network Layer Network Device (modern #Switch and #Router). Basically, we could assign the hosts in a subnet# to be in the same VLAN. By using VLAN, we could have different broadcast domains even in a single switch so that broadcast flooding affects only those in the same grouping. If a link needs to handle more than one VLAN, #VLAN Trunking will be used.
We can configure VLAN statically# and dynamically (using Network Management System (NMS)#, grouping based on the Media Access Control Address (MAC) of the device).
Note: Avoid assigning devices into VLAN 1 as it is the default management interface for all switches which introduces several security risks as it is the default interface to send out advertisements of Cisco Discovery Protocol (CDP) and VLAN Trunking Protocol (VTP). Change the default VLAN to any VLAN other than VLAN 1.
When it comes to deleting a VLAN, the best practice is to move the assigned port or the VLAN member interface to default VLAN 1 before the deletion. This way, the interface will still visible to the system after the deletion of VLAN, otherwise it will be assigned to none of the VLAN, and it is hard to track down those that are not.
Since VLAN practically isolates devices in different VLANs, there is a need of routing in order for one device to communicate with other device reside in different VLAN. A naive approach would be to have separate links for each VLAN connected to a Router, and we can see that it will not scale well. Instead, we could utilise the capability of a modern router to divide a physical interface into multiple logical interfaces. After that, define the VLAN Trunking# standard used and its VLAN number using the command encapsulation {standard} {vlan-number}
, and its subsequent subnet network address for the VLAN.