Assigning Static-Access Ports To A Vlan - Cisco ME 3400G-2CS - Ethernet Access Switch Software Configuration Manual

Ethernet access switch
Hide thumbs Also See for ME 3400G-2CS - Ethernet Access Switch:
Table of Contents

Advertisement

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.
When you delete a VLAN, any ports assigned to that VLAN become inactive. They remain associated
Caution
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:
Switch# configure terminal
Switch(config)# vlan 20
Switch(config-vlan)# name test20
Switch(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:
Switch(config)# vlan 2000
Switch(config-vlan)# end
Switch# copy running-config startup config

Assigning Static-Access Ports to a VLAN

You can assign a static-access port to a VLAN.
If you assign an interface to a VLAN that does not exist, the new VLAN is created. (See the
Note
or Modifying an Ethernet VLAN" section on page
Beginning in privileged EXEC mode, follow these steps to assign a port to a VLAN in the VLAN
database:
Command
Step 1
configure terminal
Step 2
interface interface-id
Step 3
no shutdown
Step 4
switchport mode access
Step 5
switchport access vlan vlan-id
Step 6
end
Step 7
show running-config interface interface-id
Step 8
show interfaces interface-id switchport
Step 9
copy running-config startup-config
Cisco ME 3400 Ethernet Access Switch Software Configuration Guide
11-10
11-9.)
Purpose
Enter global configuration mode
Enter the interface to be added to the VLAN.
Enable the port, if necessary. By default, UNIs are disabled, and
NNIs are enabled.
Define the VLAN membership mode for the port (Layer 2 access
port).
Assign the port to a VLAN. Valid VLAN IDs are 1 to 4094.
Return to privileged EXEC mode.
Verify the VLAN membership mode of the interface.
Verify your entries in the Administrative Mode and the Access Mode
VLAN fields of the display.
(Optional) Save your entries in the configuration file.
Chapter 11
Configuring VLANs
"Creating
78-17058-01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents