How to Configure VLAN on Cisco Switch

A VLAN is a group of devices on one or more LANs that are configured to communicate as if they were attached to the same wire, when in fact they are located on a number of different LAN segments. Because VLANs are based on logical instead of physical connections, they are extremely flexible.
vlan0


vlan1
VLANs define broadcast domains in a Layer 2 network. A broadcast domain is the set of all devices that will receive broadcast frames originating from any device within the set. Broadcast domains are typically bounded by routers because routers do not forward broadcast frames. Layer 2 switches create broadcast domains based on the configuration of the switch. Switches are multiport bridges that allow you to create multiple broadcast domains. Each broadcast domain is like a distinct virtual bridge within a switch.
You can define one or many virtual bridges within a switch. Each virtual bridge you create in the switch defines a new broadcast domain (VLAN). Traffic cannot pass directly to another VLAN (between broadcast domains) within the switch or between two switches. To interconnect two different VLANs, you must use routers or Layer 3 switches.
Supported VLANs
VLANs are identified with a number from 1 to 4094. VLAN IDs 1002 through 1005 are reserved for Token Ring and FDDI VLANs. VLAN IDs greater than 1005 are extended-range VLANs and are not stored in the VLAN database.
Although the switch module supports a total of 1005 (normal-range and extended-range) VLANs, the number of routed ports, SVIs, and other configured features affects the use of the switch module hardware.
The switch module supports per-VLAN spanning-tree plus (PVST+) or rapid PVST+ with a maximum of 128 spanning-tree instances. One spanning-tree instance is allowed per VLAN.

VLAN Creation

FIRST METHOD *********************************************************************
Switch>ENABLE
Switch#VLAN DATABASE
% Warning: It is recommended to configure VLAN from config mode,
  as VLAN database mode is being deprecated. Please consult user
  documentation for configuring VTP/VLAN in config mode.
Switch(vlan)#
Switch(vlan)#
Switch(vlan)#VLAN 10 NAME DMZ
VLAN 10 added:
    Name: DMZ
Switch(vlan)#VLAN 20 NAME NETWORK
VLAN 20 added:
    Name: NETWORK
Switch(vlan)#
Switch(vlan)#EXIT
Switch#SHOW VLAN

SECOND METHOD
*********************************************************************
Switch>ENABLE
Switch#CONFIGURE TERMINAL
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#VLAN 10
Switch(config-vlan)#NAME DMZ
Switch(config-vlan)#VLAN 20
Switch(config-vlan)#NAME NETWORK
Switch(config-vlan)#EXIT
Switch(config)#SHOW VLAN
Switch(config)#EXIT
Switch#SHOW VLAN

Normal-Range VLANs

Normal-range VLANs are VLANs with VLAN IDs 1 to 1005. You can add, modify or remove configurations for VLANs 2 to 1001 in the VLAN database. (VLAN IDs 1 and 1002 to 1005 are automatically created and cannot be removed.)
Configurations for VLAN IDs 1 to 1005 are written to the file vlan.dat (VLAN database), and you can display them by entering the show vlan privileged EXEC command. The vlan.dat file is stored in flash memory.
This example shows how to create Ethernet VLAN 20, name it test20, and add it to the VLAN database:
Switch# configure terminal
Switch(config)# vlan 20
Switch(config-vlan)# name test20
Switch(config-vlan)# end
Switch# copy running-config startup config

Assigning Static-Access Ports to a VLAN

This example shows how to configure a port as an access port in VLAN 2:
Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. 
Switch(config)# interface fastethernet0/1 
Switch(config-if)# switchport mode access 
Switch(config-if)# switchport access vlan 2 
Switch(config-if)# end
---------------------------------------------------------------------------------------------------------
configuration of vlan on cisco switch configure vlan on cisco 1900 switch how to add vlan on cisco switch port how to check vlan configuration on cisco switch how to clear vlan on cisco switch how to configure 2950 cisco switch with vlan how to configure a management vlan on cisco switch how to configure a vlan on cisco switch how to configure a voice vlan on cisco switch how to configure dhcp on cisco switch vlan how to configure dynamic vlan on cisco switch how to configure extended vlan on cisco switch how to configure guest vlan in cisco switch how to configure inter vlan routing on cisco 3560 switch how to configure inter vlan routing on cisco 3750 switch how to configure multiple vlans on cisco switch how to configure native vlan on cisco switch how to configure private vlan on cisco switch how to configure the vlan on cisco switch how to configure two vlans on cisco switch how to configure vlan 1 on cisco switch how to configure vlan cisco 2900xl switch how to configure vlan for cisco switch how to configure vlan in cisco switch how to configure vlan in cisco switch 2960 how to configure vlan in cisco switch 2960 step by step how to configure vlan in cisco switch in gns3 how to configure vlan in cisco switch pdf how to configure vlan in cisco switch sg300 how to configure vlan in cisco switch sg300-28 how to configure vlan in cisco switch sg300-52 how to configure vlan in cisco switch step by step how to configure vlan in cisco switch video how to configure vlan interface on cisco switch step by step how to configure vlan ip address on cisco switch how to configure vlan ip on cisco switch how to configure vlan management on cisco switch how to configure vlan name on cisco switch how to configure vlan on a cisco switch step by step how to configure vlan on cisco 3500 switch how to configure vlan on cisco core switch how to configure vlan on cisco layer 2 switch how to configure vlan on cisco layer 3 switch how to configure vlan on cisco router and switch how to configure vlan on cisco switch how to configure vlan on cisco switch 2900 how to configure vlan on cisco switch 2950 how to configure vlan on cisco switch 2950 step by step how to configure vlan on cisco switch 2960 how to configure vlan on cisco switch 2960 step by step how to configure vlan on cisco switch 3550 how to configure vlan on cisco switch 3560 how to configure vlan on cisco switch 3750 how to configure vlan on cisco switch 3850 how to configure vlan on cisco switch 6500 how to configure vlan on cisco switch commands how to configure vlan on cisco switch in packet tracer how to configure vlan on cisco switch layer 3 how to configure vlan on cisco switch pdf how to configure vlan on cisco switch sf300 how to configure vlan on cisco switch sg300 how to configure vlan on cisco switch step by step how to configure vlan on cisco switch step by step pdf how to configure vlan on cisco switch step by step ppt how to configure vlan on cisco switch using packet tracer how to configure vlan on cisco switch with command how to configure vlan on cisco switch youtube how to configure vlan port on cisco switch how to configure vlan tagging on cisco switch how to configure vlan trunk on cisco switch how to configure vlans on a cisco 2960 switch how to configure voice vlan on cisco switch how to configure voice vlan on cisco switch 2960 how to create a layer 2 vlan on cisco switch how to create a vlan on a cisco switch 3500-xl how to create and delete vlan on cisco catalyst switch how to create multiple vlan on cisco switch how to create vlan database in cisco switch how to create vlan in cisco catalyst switch how to create vlan in cisco switch 300 how to create vlan in cisco switch 3650 how to create vlan in cisco switch pdf how to create vlan on cisco 3548 switch how to create vlan on cisco 6500 switch how to create vlan on cisco switch 2900 how to create vlan on cisco switch 2950 how to create vlan on cisco switch 2960 step by step how to create vlan on cisco switch 3550 how to create vlan on cisco switch 3750 x how to create vlan on cisco switch 4500 how to create vlan on cisco switch 6509 how to create vlans on a cisco switch for voice and data how to create voice vlan on cisco switch how to delete vlan configuration on cisco switch how to delete vlan on cisco switch how to delete vlan on cisco switch 2950 how to delete vlan on cisco switch 2960 how to delete vlan on cisco switch 3560 how to disable vlan on cisco switch how to enable extended vlan on cisco switch how to enable vlan 1 on cisco switch how to enable vlan tagging on cisco switch how to enable voice vlan on cisco switch how to erase vlan on cisco switch how to program vlan on cisco switch how to remove vlan on cisco switch how to remove vlan on cisco switch 2960 how to rename vlan on cisco switch how to set a vlan on a cisco switch port how to set port to vlan on cisco switch how to set up multiple vlans on cisco switch how to set vlan on cisco switch port how to setup vlan trunking protocol vtp on cisco switches how to setup vlans on a cisco sg300-20 managed switch how to setup vlans on a cisco sg300-28 managed switch how to tag vlan on cisco switch how to view vlan on cisco switch setup vlan on cisco switch setup vlan on cisco switch sg200 show vlan configuration cisco switch



No comments:

Powered by Blogger.