5-5
Cisco Secure Router 520 Series Software Configuration Guide
OL-14210-01
Chapter 5 Configuring a LAN with DHCP and VLANs
Configure VLANs
Message Sent
BOOTREPLY 0
DHCPOFFER 0
DHCPACK 0
DHCPNAK 0
Router#
Configure VLANs
Perform these steps to configure VLANs on your router, beginning in privileged EXEC mode:
Command Purpose
Step 1 vlan database
Example:
Router# vlan database
Router(vlan)#
Enters VLAN configuration mode.
Step 2 vlan vlan-id [media type] [name vlan-name]
Example:
Router(vlan)# vlan 2 media ethernet name
VLAN0002
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)#
Adds VLANs, with identifiers ranging from 2 to
1001.
For details about this command and additional
parameters that can be set, see the Cisco IOS
Switching Services Command Reference.
Step 3 exit
Example:
Router(vlan)# exit
Router#
Updates the VLAN database, propagates it
throughout the administrative domain, and returns
to privileged EXEC mode.