Cisco 2950 Switch: Create a VLAN

The commands for creating a VLAN vary from one switch model to another. VLANs in a 2950 switch are configured in a manner similar to configuring an interface. This configuration is substantially different than a 2900 switch.


To create two VLANs on a 2950 switch, one with ID 5 and the name “engineering” and the other with ID 8 and the name “mydesk,” use these commands:

2950# config t
2950(config)# vlan 5
2950(config-vlan)# name engineering
2950(config-vlan)# exit
2950(config)# vlan 8
2950(config-vlan)# name mydesk

In the 2950, the “vlan database” command is being phased out. It will still work, but a warning will be given. The commands above are the preferred way to configure VLANs now and in the future (until Cisco changes it again).

The Conversation

Follow the reactions below and share your own thoughts.

6 Responses to “Cisco 2950 Switch: Create a VLAN”

  1. March 03, 2009 at 4:24 am, ravi said:

    it’s nice

    Reply

  2. July 21, 2009 at 6:59 pm, Moodi said:

    how do i take a port out of vlan

    My Setup is such

    Port Name Status Vlan Duplex Speed Type
    Fa0/1 connection to name connected 100 full 100 10/100BaseTX
    Fa0/2 connection to name connected 100 full 100 10/100BaseTX
    Fa0/22 connection to loca notconnect 1 full 100 10/100BaseTX
    Fa0/23 connection to loca notconnect 1 full 100 10/100BaseTX
    Fa0/24 connected 100 a-half a-10 10/100BaseTX
    Gi0/1 connected 100 full 100 10/100/1000BaseTX
    Gi0/2 notconnect 1 auto auto 10/100/1000BaseTX

    I want Gi0/2 to be part of 100 not 1

    How would i go about doing that.

    Reply

    • September 19, 2009 at 3:39 pm, Devin Ryan said:

      In order to change the which vlan the port is on execute the following command:
      2950# config t
      2950(config)# int Fi0/1
      2950(config-if)# switchport mode access
      2950(config-if)# switchport access vlan 100
      2950(config-if)# exit
      2950(config)#exit

      Reply

    • September 19, 2009 at 3:40 pm, Devin Ryan said:

      In order to change the which vlan the port is on execute the following command:
      2950# config t
      2950(config)# int Gi0/1
      2950(config-if)# switchport mode access
      2950(config-if)# switchport access vlan 100
      2950(config-if)# exit
      2950(config)#exit

      Reply

  3. July 16, 2010 at 5:41 am, Technical78 said:

    gud

    Reply

  4. January 20, 2011 at 8:36 am, Majid_majd2003 said:

    ho 2 vlan an on port

    Reply

Leave a Reply