Cisco Systems C819HG4GVK9 Verify Your VLAN Configuration, Assigns a port to the VLAN, 12-7

Models: C819GUK9

1 196
Download 196 pages 51.42 Kb
Page 145
Image 145
Specifies the switch port that you want to assign

Chapter 12 Configuring a LAN with DHCP and VLANs

 

 

Configuration Tasks

 

DETAILED STEPS

 

 

 

 

 

 

 

 

Command

Purpose

Step 1

 

 

 

interface switch port id

Specifies the switch port that you want to assign

 

Example:

to the VLAN.

 

 

 

 

Router(config)# interface FastEthernet 2

 

 

 

Router(config-if)#

 

 

Step 2

 

 

 

switchport access vlan vlan-id

Assigns a port to the VLAN.

 

Example:

 

 

 

Router(config-if)# switchport access vlan 2

 

 

 

Router(config-if)#

 

 

Step 3

 

 

 

end

Exits interface mode and returns to privileged

 

Example:

EXEC mode.

 

 

 

 

Router(config-if)# end

 

 

 

Router#

 

 

 

 

 

 

Verify Your VLAN Configuration

Use the following commands to view your VLAN configuration.

show—Entered from VLAN database mode. Displays summary configuration information for all configured VLANs.

show vlan-switch—Entered from privileged EXEC mode. Displays detailed configuration information for all configured VLANs.

 

 

Cisco 819 Integrated Services Routers Software Configuration Guide

 

 

 

 

 

 

OL-23590-02

 

 

12-7

 

 

 

 

 

Page 145
Image 145
Cisco Systems C819HG4GVK9 Verify Your VLAN Configuration, Specifies the switch port that you want to assign, to the VLAN