Cisco Systems OL-6426-02 Benutzerhandbuch

Seite von 196
 
5-5
Book Title
OL-xxxxx-xx
Chapter 5      Configuring a LAN with DHCP and VLANs
  Configure VLANs
Configure VLANs
Perform these steps to configure VLANs on your router, beginning in global configuration mode:
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.
Router# vlan database
Router(vlan)# show
  VLAN ISL Id: 1
    Name: default
    Media Type: Ethernet
    VLAN 802.10 Id: 100001
    State: Operational
    MTU: 1500
    Translational Bridged VLAN: 1002
    Translational Bridged VLAN: 1003
  VLAN ISL Id: 1002
    Name: fddi-default
    Media Type: FDDI
    VLAN 802.10 Id: 101002
    State: Operational
    MTU: 1500
    Bridge Type: SRB
Command
Purpose
Step 1
vlan ?
Example:
Router# config t
Router(config)#vlan ?
WORD        ISL VLAN IDs 1-4094
accounting  VLAN accounting configuration
ifdescr     VLAN subinterface ifDescr
Router(config)#vlan
Enters VLAN configuration mode.
Step 2
ISL VLAN ID
Example:
Router(config)#vlan 2
Router(config-vlan)#
Adds VLANs, with identifiers ranging from 
1- 4094.
For details about this command and additional 
parameters that can be set, see the 
Step 3
exit
Example:
Router(config-vlan)#exit
Router(config)#
Updates the VLAN database, propagates it throughout 
the administrative domain, and returns to global 
configuration mode.