Chapter 12 Configuring a LAN with DHCP and VLANs

Configuration Tasks

DETAILED STEPS

 

Command

 

Purpose

Step 1

 

 

 

vlan ?

 

Enters VLAN configuration mode.

 

Example:

 

 

 

Router# config t

 

 

Router(config)# vlan database?

 

 

WORD

ISL VLAN IDs 1-4094

 

 

accounting

VLAN accounting configuration

 

 

ifdescr

VLAN subinterface ifDescr

 

 

Router(config)# vlan 2

 

Step 2

 

 

 

ISL VLAN ID

 

Adds VLANs, with identifiers ranging from

 

 

 

1 to 4094.

 

Example:

 

For details about this command and additional

 

Router(config)#vlan 2

parameters that can be set, see Cisco IOS Switching

 

Router(config-vlan)#

Services Command Reference.

Step 3

 

 

 

exit

 

Updates the VLAN database, propagates it throughout

 

Example:

 

the administrative domain, and returns to global

 

 

configuration mode.

 

Router(config-vlan)# exit

 

 

Router(config)#

 

 

 

 

 

Assign a Switch Port to a VLAN

Perform these steps to assign a switch port to a VLAN, beginning in global configuration mode:

SUMMARY STEPS

1.interface switch port id

2.switchport access vlan vlan-id

3.end

 

Cisco 819 Integrated Services Routers Software Configuration Guide

12-6

OL-23590-02

Page 144
Image 144
Cisco Systems C819GUK9, C819HG4GVK9 manual Assign a Switch Port to a Vlan, Example, Switchport access vlan vlan-id End, 12-6