VLAN Concepts
The characteristics of a typical VLAN are as follows :
- Each logical VLAN is like a seperate physical bridge.
- VLAN's can span multiple switches
- Trunk link carry traffic for multiple VLANs
VLAN membership modes
VLANs are layer 2 implementation in your network topology. Because they are implemented at the data link layer, they are protocol independent. To put a given port(segment) into a VLAN, you must create a VLAN on the switch and then assign that port membership on the switch. In cisco IOS software, a layer 2 port is known as a switchport. A switchport can either be a member of a single VLAN (access port) or be configured as a trunk link (trunk port) to carry traffic for multiple VLANs.Access ports are configured with a VLAN membership mode that determines to which VLAN they can belong. The membership modes are as follows :
- Static - When an admin assigns a single VLAN to a port by hardcoding, it is called static assignment.
- Dynamic - The IOS catalyst switch supports the dynamic assignment of a single VLAN to a port by using a VLAN Membership Policy Server (VMPS). The VMPS must be a catalyst 5500 or 6500, running the set based operating system. The VMPS contains a database that maps MAC addresses to VLAN assignment.A dynamic port can belong to only one VLAN at a time.
Trunk Protocols
Trunks make use of one of the two protocols. They are 801.2Q and ISL (Inter Switch Link).801.2Q is the IEEE open standard which inserts a 4 byte section into the frames which identifies to which VLAN the frame is destined for. Whereas ISL encapsulates the whole frame in a 26 byte ISL header and a 4 byte CRC trailer (total 30 bytes).ISL is cisco propritery.
VLAN Trunking Protocol - VTP
You can provide VLAN connectivity through out the switched network in two ways.
One : By manually creating all the needed VLANs on each of the switches individually or
Two : Using Cisco's VLAN Trunking Protocol as an easier method for maintaining consistent VLAN ckonfiguration throughout the switched network.
VTP is a layer 2 messaging protocol.It minimizes misconfigurations and configuration inconsistencies that can cause problems, such as duplicate VLAN names or incorrect VLAN type specifications.
There are three VTP modes. They are :
- Server Mode* - Sends /forwards VTP advertisements, Synchronises VLAN configuration information with other switches,Can create, modify and delete VLANs and other configuration parameters for the entire VTP domain. Configurations are saved in NVRAM.
- Client Mode - Sends /forwards VTP advertisements, Synchronises VLAN configuration information with other switches, Cannot create, modify and delete VLANs and configurations are not saved in NVRAM.
- Transparent Mode - Only Forwards VTP advertisements, does not Synchronises VLAN configuration information with other switches,Can create, modify and delete VLANs and other configuration parameters but the changes are not propagated throughout the entire VTP domain - They affect only the local switch. Configurations are saved in NVRAM.
VTP advertisements are flooded throughout the management domain every 5 minutes or when ever a change occurs in the VLAN configuration. VTP advertisements are send on VLAN1 using multicast frames. Included in the VTP advertisement is a configuration revision number. A higher configuration revision number indicates that the VLAN information being advertised is more current than the stored information. To reset the configuration revision number, you should eaither change the switch mode to transparent, then back to server or client with the command :
(config)# vtp mode {server|client|transparent}
OR
Change the VTP domain name and set it back using the command :
(config)# vtp domain name
The command :
# show vtp status
may be executed before and after the change to see the configuration number being reset.The configuration revision number in the VTP transparent mode is always 0.
