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.

  • ravi

    it’s nice

  • Moodi

    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.

    • Devin Ryan

      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

    • Devin Ryan

      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

  • Technical78

    gud

  • Majid_majd2003

    ho 2 vlan an on port