

Worth noting: We could have configured all the above interfaces as access ports using interface range command as shown below: Switch(config-if)#int range fa0/1-4 Switch(config-if)#switchport access vlan 20 Switch(config-if)#switchport access vlan 10 Switch Interface fa0/5 will be configured as trunk port, as it will be used to carry traffic between the two VLANs via the router. Here, interfaces fa 0/1 and fa 0/2 are assigned to VLAN 10 while interfaces fa 0/3 and fa 0/4 are assigned to VLAN 20. So in our case, we’ll configure switch interfaces fa 0/1 through fa 0/4 as access ports to connect to our PCs.

This port can carry traffic of multiple VLANs.
#How to configure vlan on cisco switch step by step Pc#
These ports are configured for switch ports that connect to devices with a normal network card, for example a PC in a network. An access port is assigned to a single VLAN.Remember each VLAN is viewed as separate broadcast domain.Īnd just before you configure, have in mind that switch ports could be either access or trunk. Create 2 VLANs on the switch: VLAN 10 and VLAN 20. In Cisco Packet Tracer, create the network topology as shown below:Ģ.

We’ll then proceed and configure a router to enable communication between the two VLANs. For this tutorial, we’ll configure 2 VLANs on a switch. VLANs are configured on switches by placing some interfaces into one broadcast domain and some interfaces into another. For this reason, to move packets from one VLAN to another, we have to use a router or a layer 3 switch. We treat each VLAN as a separate subnet or broadcast domain. VLANs have similar characteristics with those of physical LANs, only that with VLANs, you can logically group hosts even if they are physically located on separate LAN segments. But just before get into configurations, let’s have a brief overview of what’s a VLAN.Ī Virtual LAN ( VLAN) is simply a logical LAN, just as its name suggests. Welcome to this tutorial! This is a simple step by step guide of configuring VLAN and interVLAN routing on a Cisco switch.
