Chapter 5 Configuring a LAN with DHCP and VLANs

Configure VLANs

Configure VLANs

Perform these steps to configure VLANs on your router, beginning in global configuration mode:

 

Command

 

 

Purpose

Step 1

 

 

 

 

vlan ?

 

 

Enters VLAN configuration mode.

 

Example:

 

 

 

 

Router# config t

 

 

 

Router(config)#vlan ?

 

 

WORD

ISL VLAN IDs 1-4094

 

 

accounting

VLAN accounting configuration

 

 

ifdescr

VLAN subinterface ifDescr

 

 

Router(config)#vlan

 

 

Step 2

 

 

 

 

ISL VLAN ID

 

 

Adds VLANs, with identifiers ranging from

 

Example:

 

 

1- 4094.

 

 

 

 

 

Router(config)#vlan

2

For details about this command and additional

 

parameters that can be set, see the Cisco IOS

 

Router(config-vlan)#

 

 

 

 

 

Switching Services Command Reference.

Step 3

 

 

 

 

exit

 

 

Updates the VLAN database, propagates it throughout

 

 

 

 

the administrative domain, and returns to global

 

Example:

 

 

configuration mode.

 

Router(config-vlan)#exit

 

 

Router(config)#

 

 

 

 

 

 

 

Verify Your VLAN Configuration

Use the following commands to view your VLAN configuration.

show—Entered from VLAN database mode. Displays summary configuration information for all configured VLANs.

show vlan-switch—Entered from privileged EXEC mode. Displays detailed configuration information for all configured VLANs.

Router# vlan database

Router(vlan)# show

VLAN ISL Id: 1

Name: default

Media Type: Ethernet

VLAN 802.10 Id: 100001

State: Operational

MTU: 1500

Translational Bridged VLAN: 1002

Translational Bridged VLAN: 1003

VLAN ISL Id: 1002

Name: fddi-default

Media Type: FDDI

VLAN 802.10 Id: 101002

State: Operational

MTU: 1500

Bridge Type: SRB

Book Title

 

OL-xxxxx-xx

5-5

 

 

 

Page 67
Image 67
Cisco Systems OL-6426-02 manual Configure VLANs, Verify Your Vlan Configuration, Vlan ?, Example