Step 1:
- Basic Overview of Network for Vlan Configuration
- We will be placing Host 2 and 4 into vlan 20 and Host 1 and 3 into vlan 10

Step 2:
-
I like to start out using the Show Vlan command as below. these are the defaults, its also good practise to check especially if its an older router who knows what configurations will be on them.
Type the Below:
enable, enter
Show vlan, enter

Step 3:
-
Lets place Hosts 1 and 3 into VLAN 10 with the below commands
We firstly create the vlan ID's then we connect to the interfaces and apply the vlans to the interface -
Lets place Hosts 2 and 4 into VLAN 20 with the below commands
Type the below:
enable, enter
configure terminal, enter
vlan 10, enter
exit, enter
interface fastethernet 1/0/1, enter
switchport access vlan 10, enter
exit, enter
interface fasthethernet 1/0/3, enter
switchport access vlan 10, enter
exit, enter
vlan 20, enter
exit, enter
interface fastethernet 1/0/2, enter
switchport access vlan 20, enter
exit, enter
interface fastethernet 1/0/4, enter
switchport access vlan 20, enter
exit, enter
Ctrl Z

Step 4:
-
Lets Test our Vlan Configuration by running the show vlan command
Type the below:
enable, enter
show vlan, enter
Note - Remember to save you configurations
