VLANs Basic Configuration
In this exercise, we dove into the world of Virtual LANs (VLANs), a critical technology for segmenting networks and improving performance, security, and manageability.
Our Lab Environment
The first step was to configure the PCs and set the default gateway in each VLAN. Below we configured PC 1.
The next step was to make three connections between R1 and SW1. To connect a switch to a router we used a straight through cable.
The next step was to configure the connections/interfaces on the router to correspond with the appropriate VLANS. I added the default gateway of each VLAN to their own interface.
To confirm everything was properly configured we used the command #do show ip interface brief
The next step was to configure the interfaces of the switch to the appropriate VLANS. In the example below we will configure the appropriate interfaces to VLAN10. In this example I utilized the commands #switchport mode access then #switchport access vlan 10
Key Concept: Access Ports belong to a single VLAN
Get Marcus - Security Projects’s stories in your inbox
Join Medium for free to get updates from this writer.
After configuring the rest of our VLANS the next step was to confirm our configuration with the command #do show vlan brief
The next step was to change the name of our vlans. Once in the configuration terminal all I had to do was type the VLAN name I wanted to change, such as VLAN 10 then #name ENGINEERING — this would change VLAN 10s name to ENGINEERING
The final step was to test connectivity via pinging PCs in different VLANS
LAB Summary
In this lab, we successfully implemented VLAN segmentation on a network. We configured PCs and their default gateways, established physical connections between the router and switch, and then configured the router interfaces to support inter-VLAN routing. Crucially, we assigned switch ports to specific VLANs using access ports, effectively isolating traffic between them. We verified our configuration using commands like show ip interface brief and show vlan brief, and finally, tested connectivity by pinging between PCs in different VLANs. This hands-on experience demonstrated the practical steps involved in creating and managing VLANs, highlighting their importance in network organization and traffic management.





