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