Quick Reference

Sunday, July 1, 2007

Quick Notes - VLANS

What are VLANs?
VLANs are broadcast domains in a Layer 2 network. Each broadcast domain is like a distinct virtual bridge within the switch. Each virtual bridge you create in a switch defines a broadcast domain. By default, traffic from one VLAN cannot pass to another VLAN. Each of the users in a VLAN is also in the same IP subnet, and each switch port can belong to only one VLAN.


What are the three characteristics of a typical VLAN setup?
The three characteristics of a typical VLAN setup are:
Each logical VLAN is like a separate physical bridge.
VLANs can span multiple switches.
Trunks carry traffic for multiple VLANs.


What are trunk links?
By default, each port on a switch can belong to only one VLAN. For devices that are in VLANs (that span multiple switches) to talk to other devices in the same VLAN, you must use trunking or have a dedicated port per VLAN. Trunk links allow the switch to carry multiple VLANs across a single link.


What are the two methods you can use to assign a port to a VLAN?
The two methods to assign a port to a VLAN are
Statically
Dynamically


What is Inter-Switch Link (ISL)?
ISL is a Cisco proprietary protocol used to interconnect switches that have multiple VLANs. It maintains VLAN information as traffic goes between switches, allowing the traffic to enter the correct VLAN. ISL operates in a point-to-point environment.


At which layer of the OSI model does ISL function?
ISL functions at Layer 2 of the OSI model. It encapsulates a data frame with a new ISL header and CRC. Because ISL operates at Layer 2 of the OSI model, it is protocol-independent.


What type of tagging method does ISL use?
Many network professions refer to the way ISL tags frames as an external tagging mechanism. This is because ISL encapsulates each frame and does not modify the original packet.
Many network professions refer to the way ISL tags frames as an external tagging mechanism. This is because ISL encapsulates each frame and does not modify the original packet.


How many extra bytes does ISL add to an existing Ethernet frame?
ISL adds a 26-byte ISL header and a 4-byte CRC to each frame, extending each Ethernet frame by 30 bytes. ISL tagging is implemented in ASICs, so tagging is done at wire speed.


What is VTP?
VLAN Trunking Protocol (VTP) is a Layer 2 messaging protocol that maintains VLAN configuration consistency throughout a common administrative domain by managing VLANs' additions, deletions, and name changes across multiple switches. Without VTP, you would have to add VLAN information in all switches in your network.


What is a VTP domain?
A VTP domain is one or more interconnected switches that share the same VTP environment. A switch can be in only one VTP domain, and all VLAN information is propagated to all switches in the same VTP domain.


What are the three VTP modes?
The three VTP modes are
Server
Client
Transparent



What is VTP server mode?
A switch in VTP server mode can add, delete, and modify VLANs and other configuration parameters for the entire VTP domain. This is the default mode for all Catalyst switches. VLAN configurations are saved in NVRAM. When you change VLAN configuration in server mode, the change is dynamically propagated to all switches in the VTP domain.


What is VTP client mode?
In VTP client mode, a switch cannot create, delete, or modify VLANs. Also, a VTP client does not save VLAN information and configuration in NVRAM. In client and server mode, VLAN information is synchronized between switches in the VTP domain.


What is VTP transparent mode?
In transparent mode, a switch can add, modify, and delete VLANs. This information is not transmitted to other switches in the VTP domain. They affect only the local switch. VTP transparent mode is used when a switch does not need to participate in the VTP domain but needs to propagate VTP information to other switches.


How often are VTP advertisements flooded throughout the management domain?
VTP advertisements are flooded throughout the management domain every 5 minutes or whenever a change occurs in VLAN configuration.


What is included in VTP advertisements?
VTP advertisements include the following:
VTP revision number
VLAN names and numbers
Information about switches that have ports assigned to each VLAN


What is one of the most important components of the VTP advertisement?
The revision number is one of the most important components of the VTP advertisement. Every time a VTP server modifies its VLAN configuration, it increments the configuration number by 1. The largest configuration number in the VTP domain contains the most current information. When a client receives a revision number higher than its current number, it updates its VLAN configuration.


On a Catalyst 1900 switch, how do you reset the configuration number?
To reset the configuration numbers on a Catalyst 1900, use the delete vtp privileged EXEC command, and then reset the switch.


What is VTP pruning?
By default, a trunk link carries traffic for all VLANs in the VTP domain. Even if a switch does not have any ports in a specific VLAN, traffic for that VLAN is carried across the trunk link. VTP pruning uses VLAN advertisements to determine when a trunk connection is needlessly flooding traffic to the trunk links that the traffic must use to access the appropriate network device.


How many VLANs with a separate spanning tree per VLAN does the Catalyst 1900 support?
The Catalyst 1900 supports 64 VLANs with a separate spanning tree per VLAN.


What VLAN number are CDP and VTP advertisements sent across?
CDP and VTP advertisements are sent on VLAN 1, which is also known as the management VLAN.


What must you remember before you create VLANs on a Catalyst switch?
Before you create VLANs on a Catalyst 1900 switch, the switch must be in VTP server mode or VTP transparent mode.


How do you configure the VTP operation mode on a Catalyst 1900?
To configure VTP on a Catalyst 1900, use the vtp [server transparent client] global configuration command:

Cat1900(config)#vtp server


How do you configure a VTP domain on a Catalyst 1900 switch?
To configure a VTP domain on a Catalyst 1900 switch, use the vtp domain domain-name global command:

Cat1900(config)#vtp domain cisco


How do you configure a VTP domain password on a Catalyst 1900?
Use the vtp password password global command to configure a VTP domain password. This example sets the VTP password to cisco:

Cat1900(config)#vtp password cisco


What does the show vtp privileged EXEC command display?
The show vtp privileged EXEC command displays the following:
VTP version
The number of existing VLANs on a switch and the maximum number of locally supported VLANs
VTP domain name, password, and operating mode
Whether VTP pruning is enabled
The last time VLAN configuration was modified.
Here's an example of show vtp output:

Cat1900#show vtp

VTP version: 1

Configuration revision: 0

Maximum VLANs supported locally: 1005

Number of existing VLANs: 5

VTP domain name : cisco

VTP password : cisco

VTP operating mode : Server

VTP pruning mode : Disabled

VTP traps generation : Enabled

Configuration last modified by: 192.168.0.2 at 00-00-0000 00:00:00

What command do you use to add a VLAN on a Catalyst switch?
To add a VLAN on a Catalyst switch, use the vlan vlan-number [name vlan_name] global command. The following example adds VLAN 10 with a name of Sales: Cat1900(config)#vlan 10 name Sales

What Catalyst 1900 command can you use to verify VLAN information?
To verify VLAN information, use the show vlan vlan-number privileged EXEC command.

How do you view spanning tree information for a particular VLAN?
A Catalyst 1900 switch can have a maximum of 64 VLANs with a separate instance of spanning tree per VLAN. To view spanning tree information for a particular VLAN use the "show spandtree vlan-id" command.


QUICK NOTES HOME

2 comments:

Anonymous said...

Thanks and praises to you and this website You are due a key to the brewery (or distillery) not just a beer

Anonymous said...

Hi,

yesterday I posted a doubt in "Implementation &Operations2" and still waiting for your response....

anyway I have another doubt in VLAN.

My question is,

If we attach a switch (client mode) with same domain but with higher revision number, then who will update the database, switch in the server mode or switch in the client mode.

i m confused bec, i knw switches only update their database only if they receive updates with higher revision no., so switch in client mode wont change its data base bec it has higher revision no......and i have read in a book that client and server both sent updates every 5 mins.(i knw only server can make changes in the VLANs but client and server both can send updates)..so will switch in server mode will change its database??

I have read your blog thoroughly and i saw your explanation as well, regarding the same question but i m not satisfied n still confused.....

so can u pls reply me asap...i hv exam tomm........


thanks in advance....