Specifications

7-8
Cisco MWR 2941 Mobile Wireless Edge Router Release 3.5 Software Configuration Guide, Cisco IOS Release 15.1(3)MR
OL-26895-01
Chapter 7 Configuring VLANs
Creating and Modifying VLANs
To delete a VLAN, use the no vlan vlan-id global configuration command. You cannot delete VLAN 1
or 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.
To return the VLAN name to the default settings, use the no name or no mtu VLAN configuration
command.
This example shows how to create Ethernet VLAN 20, name it test20, and add it to the VLAN database:
Router# configure terminal
Router(config)# vlan 20
Router(config-vlan)# name test20
Router(config-vlan)# end
This example shows how to create a new extended-range VLAN with all default characteristics, enter
config-vlan mode, and save the new VLAN in the switch startup configuration file:
Router(config)# vlan 2000
Router(config-vlan)# end
Router# copy running-config startup config
Assigning Static-Access Ports to a VLAN
You can assign a static-access port to a VLAN.
Note If you assign an interface to a VLAN that does not exist, the new VLAN is created. (See the “Creating
or Modifying an Ethernet VLAN” section on page 7-7.)
Beginning in privileged EXEC mode, follow these steps to assign a port to a VLAN in the VLAN
database:
Step 4
mtu mtu-size (Optional) Change the MTU size.
Step 5
end Return to privileged EXEC mode.
Step 6
show vlan {name vlan-name | id vlan-id} Verify your entries. The name option is valid only for VLAN IDs 1 to
1005.
Step 7
copy running-config startup config (Optional) Save the configuration in the switch startup configuration
file.
Command Purpose
Command Purpose
Step 1
configure terminal Enter global configuration mode
Step 2
interface interface-id Enter the interface to be added to the VLAN.
Step 3
no shutdown Enable the port, if necessary. By default, UNIs and ENIs are
disabled, and NNIs are enabled.
Step 4
switchport mode access Define the VLAN membership mode for the port (Layer 2 access
port).