Cisco Systems 1800 manual Configure VLANs, Command Purpose, Example

Page 5

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

 

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

 

 

red-vlan

 

 

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

 

OL-6426-02

5-5

 

 

 

Image 5
Contents Configuring a LAN with Dhcp and VLANs Configuration Tasks Configure DhcpVLANs Ip domain name nameIp dhcp pool name Ip dhcp excluded-address low-addressImport all Domain-name domainVerify Your Dhcp Configuration Configuration ExampleRouter# show ip dhcp import Router# show ip dhcp poolExample Configure VLANsCommand Purpose Verify Your Vlan Configuration Vlan Router# show vlan-switchOL-6426-02
Related manuals
Manual 85 pages 32.54 Kb Manual 25 pages 31.42 Kb