A virtual LAN (VLAN) is a broadcast domain created by switches. VLANs are a convenient way to connect ports from different switches and different buildings onto the same network and broadcast domain, preventing the need for a complex system of subnets.
Learn how to configure a VLAN in this step-by-step, automated, 15-minute demo. Expert David Davis walks you through the steps you'll need to configure your routers and switches, set up and assign the trunk ports, and perform the necessary tests to get traffic moving across your VLAN successfully. (Click the play button to begin the video.) You can view the configuration commands David uses in the video at the bottom of this page.
Router commands Interface fastethernet 4.1 Encapsulation dot1q 10 Interface fastethernet 4.2 Encapsulation dot1q 20 Interface fastethernet 4 No shutdown Show ip interface brief Show vlans Switch commands Interface
fastethernet 2/0 Switchport access vlan 10 No shutdown Interface fastethernet 5/0 Switchport access vlan 20 No shutdown Interface vlan 10 Ip address x.x.x.x y.y.y.y No shutdown Interface vlan 20 Ip address x.x.x.x y.y.y.y No shutdown Show vlan brief Show interfaces switchport Show ip interface brief Show int trunk