Cisco 2950 Switch: Create a VLAN

Contributor Icon Contributed by CISSP06 Date Icon July 28, 2006  
Tag Icon Tagged: Cisco switch

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 name ‘engineering’ and the other with id 8 and 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 ;-)

Previous recipe | Next recipe |
 
  • 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.
  • 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
  • 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
blog comments powered by Disqus