Configuring VLANs

Configuring VLANs

By default, all ports on a switch are in VLAN 1. We can verify this by entering the show vlan command from the IOS activation mode of a switch:

Default VLAN

In the picture above, you can see that all 24 switch ports are in the same VLAN, ie VLAN 1.

To create a VLAN and assign a switch port to the VLAN, two steps are required:

Create a Vlan with the global mode control VLAN NUMBER

Link a port to the VLAN by using two interface subcommands. The first command is the access command for switchport mode. This command indicates that the interface is an access interface. The second command is the switchport access vlan NUMBER command. This command assigns the interface to a VLAN.

Here is an example of the assignment of VLAN 2 to the interface:

Create a Vlan

The first command (vlan 2) created VLAN 2. We then called the Fa0 / 1 subinterface mode and configured the interface as an access interface to VLAN 2. To verify this, we can use the show vlan command:

You can Check out Video :

You can Download Project File Pkt From here for version 7.1

Post a Comment (0)
Previous Post Next Post