![](/images/new-backgrounds/1168457/1684579x1.webp)
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 | Adds VLANs, with identifiers ranging from 2 to 1001. | |
| Example: | For details about this command and additional |
| parameters that can be set, see the Cisco IOS | |
|
| |
| Router(vlan)# vlan 2 media ethernet name | Switching Services Command Reference. |
| VLAN0002 |
|
| Router(vlan)# vlan 3 media ethernet name |
|
|
| |
| Router(vlan)# |
|
Step 3 |
|
|
exit | Updates the VLAN database, propagates it throughout | |
|
| the administrative domain, and returns to privileged |
| Example: | EXEC mode. |
| Router(vlan)# exit |
|
| Router# |
|
|
|
|
Cisco 1800 Series Integrated Services Routers (Fixed) Software Configuration Guide
|
| ||
|
|