[CCNA] Basic VLAN Configuration

In this lab we will configure a Cisco Catalyst 2950 with three new VLANs. Also, we will then use the available Cisco IOS show commands to verify the configuration.

Basic VLAN

  • Create and Configure VLANs and Names on Switch:
SW1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
SW1(config)#vlan 10
SW1(config-vlan)#name Admin
SW1(config-vlan)#exit
SW1(config)#vlan 20
SW1(config-vlan)#name Sales
SW1(config-vlan)#exit
SW1(config)#vlan 30
SW1(config-vlan)#name Engineering
SW1(config-vlan)#exit
SW1(config)#
  • Check your configuration:
SW1(config)#do show vlan brief

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/1, Fa0/2, Fa0/3, Fa0/4
                                                Fa0/5, Fa0/6, Fa0/7, Fa0/8
                                                Fa0/9, Fa0/10, Fa0/11, Fa0/12
                                                Fa0/13, Fa0/14, Fa0/15, Fa0/16
                                                Fa0/17, Fa0/18, Fa0/19, Fa0/20
                                                Fa0/21, Fa0/22, Fa0/23, Fa0/24
                                                Gig1/1, Gig1/2
10   Admin                            active    
20   Sales                            active    
30   Engineering                      active    
1002 fddi-default                     active    
1003 token-ring-default               active    
1004 fddinet-default                  active    
1005 trnet-default                    active    
SW1(config)#
  • Assign a switchport to a VLAN:
SW1(config)#int fa0/1
SW1(config-if)#switchport access vlan 10
SW1(config-if)#switchport mode access 
SW1(config-if)#
SW1(config-if)#int fa0/2
SW1(config-if)#switchport access vlan 20
SW1(config-if)#switchport mode access 
SW1(config-if)#int fa0/3
SW1(config-if)#switchport access vlan 30
SW1(config-if)#switchport mode access
SW1(config-if)#
  • Check the configuration after assigning the ports:
SW1(config)#do show vlan brief

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/4, Fa0/5, Fa0/6, Fa0/7
                                                Fa0/9, Fa0/10, Fa0/11, Fa0/8
                                                Fa0/13, Fa0/14, Fa0/15, Fa0/12
                                                Fa0/17, Fa0/18, Fa0/19, Fa0/16
                                                Fa0/21, Fa0/22, Fa0/23, Fa0/20
                                                Fa0/24, Gig1/1, Gig1/2
10   Admin                            active    Fa0/1
20   Sales                            active    Fa0/2
30   Engineering                      active    Fa0/3
1002 fddi-default                     active    
1003 token-ring-default               active    
1004 fddinet-default                  active    
1005 trnet-default                    active    
SW1(config)#

I hope this been informative for you, enjoy !

Advertisements

Tagged: , ,

Leave a Reply :

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: