Configuring Vlans In Global Configuration Mode - Cisco Catalyst 4500 series Administration Manual

Hide thumbs Also See for Catalyst 4500 series:
Table of Contents

Advertisement

VLANs

Configuring VLANs in Global Configuration Mode

If the switch is in VTP server or transparent mode (see the
page
VLANs in global and config-vlan configuration modes, the VLAN configuration is saved in the vlan.dat
files, not the running-config or startup-config files. To display the VLAN configuration, enter the show
vlan command.
If the switch is in VLAN transparent mode, use the copy running-config startup-config command to
save the VLAN configuration to the startup-config file. After you save the running configuration as the
startup configuration, the show running-config and show startup-config commands display the VLAN
configuration.
When the switch boots, if the VTP domain name and VTP mode in the startup-config and vlan.dat files
Note
do not match, the switch uses the configuration in the vlan.dat file.
You use the interface configuration command mode to define the port membership mode and add and
remove ports from a VLAN. The results of these commands are written to the running-config file, and
you can display the contents of the file by entering the show running-config command.
User-configured VLANs have unique IDs from 1 to 4094. To create a VLAN, enter the vlan command
with an unused ID. To verify whether a particular ID is in use, enter the show vlan id ID command
modify a VLAN, enter the vlan command for an existing VLAN.
See the
assigned when you create a VLAN. If you do not use the media keyword when specifying the VLAN
type, the VLAN is an Ethernet VLAN.
To create a VLAN, perform this task:
Command
Step 1
Switch# configure terminal
Step 2
Switch(config)# vlan vlan_ID
Switch(config-vlan)#
Step 3
Switch(config-vlan)# end
Step 4
Switch# show vlan [id
vlan_name
When you create or modify an Ethernet VLAN, note the following:
Software Configuration Guide—Release IOS XE 3.6.0E and IOS 15.2(2)E
16-6
16-7), you can configure VLANs in global and VLAN configuration modes. When you configure
"VLAN Default Configuration" section on page 16-4
name]
|
Purpose
Enters global configuration mode.
Adds an Ethernet VLAN.
You cannot delete the default VLANs for these media types:
Note
Ethernet VLAN 1 and FDDI or Token Ring VLANs 1002 to
1005.
When you delete a VLAN, any LAN interfaces configured as
access ports assigned to that VLAN become inactive. They
remain associated with the VLAN (and thus inactive) until you
assign them to a new VLAN.
Use the no keyword to delete a VLAN.
When the prompt shows Switch(config-vlan)#; you are in
vlan-configuration mode. If you want to change any of the parameters
for the newly created VLAN, use this mode.
Returns to enable mode from vlan-configuration mode.
Verifies the VLAN configuration.
Chapter 16
Configuring VLANs, VTP, and VMPS
"VLAN Trunking Protocol" section on
for the list of default parameters that are
To
.
OL_28731-01

Advertisement

Table of Contents
loading

Table of Contents