Cisco WS-C2960S-24PD-L Software Guide - Page 247
Deleting a VLAN from the Database, Assigning Static-Access Ports to a VLAN
View all Cisco WS-C2960S-24PD-L manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 247 highlights
Chapter 8 Configuring VLANs VLANs in the VTP Database Deleting a VLAN from the Database When you delete a VLAN from a switch that is in VTP server mode, the VLAN is removed from all switches in the VTP domain. When you delete a VLAN from a switch that is in VTP transparent mode, the VLAN is deleted only on that specific switch. You cannot delete the default VLANs for the different media types: Ethernet VLAN 1 and FDDI or Token Ring VLANs 1002 to 1005. Caution When you delete a VLAN, any ports assigned to that VLAN become inactive. They remain associated with the VLAN (and thus inactive) until you assign them to a new VLAN. Beginning in privileged EXEC mode, follow these steps to delete a VLAN on the switch: Step 1 Step 2 Step 3 Command vlan database no vlan vlan-id exit Step 4 show vlan brief Purpose Enter VLAN configuration mode. Remove the VLAN by using the VLAN ID. Update the VLAN database, propagate it throughout the administrative domain, and return to privileged EXEC mode. Verify the VLAN removal. Assigning Static-Access Ports to a VLAN By default, all ports are static-access ports assigned to VLAN 1, which is the default management VLAN. If you are assigning a port on a cluster member switch to a VLAN, first log in to the member switch by using the privileged EXEC rcommand command. For more information on how to use this command, refer to the switch command reference. Beginning in privileged EXEC mode, follow these steps to assign a port to a VLAN in the VTP database: Step 1 Step 2 Command configure terminal interface interface Step 3 Step 4 Step 5 Step 6 switchport mode access switchport access vlan 3 exit show interface interface-id switchport Purpose Enter global configuration mode. Enter interface configuration mode, and define the interface to be added to the VLAN. Define the VLAN membership mode for this port. Assign the port to the VLAN. Return to privileged EXEC mode. Verify the VLAN configuration. In the display, check the Operation Mode, Access Mode VLAN, and the Priority for Untagged Frames fields. 78-6511-08 Catalyst 2900 Series XL and Catalyst 3500 Series XL Software Configuration Guide 8-25