Chapter 5 Configuring a LAN with DHCP and VLANs

Configure VLANs

MessageSent

BOOTREPLY0

DHCPOFFER0

DHCPACK0

DHCPNAK0

Router#

Configure VLANs

Perform these steps to configure VLANs on your router, beginning in privileged EXEC mode:

 

Command

Purpose

Step 1

 

 

vlan database

Enters VLAN configuration mode.

 

Example:

 

 

Router# vlan database

 

 

Router(vlan)#

 

Step 2

 

 

vlan vlan-id [media type] [name vlan-name]

Adds VLANs, with identifiers ranging from 2 to

 

 

1001.

 

Example:

For details about this command and additional

 

 

 

Router(vlan)# vlan 2 media ethernet name

parameters that can be set, see the Cisco IOS

 

VLAN0002

Switching Services Command Reference.

 

VLAN 2 added:

 

 

 

Name: VLAN0002

 

 

Media type: ETHERNET

 

 

Router(vlan)# vlan 3 media ethernet name

 

 

red-vlan

 

 

VLAN 3 added:

 

 

Name: red-vlan

 

 

Media type: ETHERNET

 

 

Router(vlan)#

 

Step 3

 

 

exit

Updates the VLAN database, propagates it

 

 

throughout the administrative domain, and returns

 

Example:

to privileged EXEC mode.

 

Router(vlan)# exit

 

 

Router#

 

 

 

 

Cisco Secure Router 520 Series Software Configuration Guide

 

OL-14210-01

5-5

 

 

 

Page 61
Image 61
Cisco Systems 520 series manual Configure VLANs, Vlan database, Vlan vlan-id media type name vlan-name