Thursday, 3 October 2013

VTP

VTP- Vlan Trunking Protocol:

                      It is used for a centralised management.VTP works in three modes.

  1. Server Mode: VTP mode server we can create Vlan,edit vlan and delete vlan.In server mode the switch receive,save and forward Vlan information.
  2. Transparent Mode :In VTP mode transparent,the switch only receives and forward Vlan updates.it will not save any Vlan updations.But the transparent mode has it's own database to create,delete and edit Vlan.
  3. Client Mode:When the switches in client mode the switch receives,save and forward Vlan informations,but we cannot make any changes or Vlan updates
 How to make Server,Transperent and Client modes:
    SERVER MODE
   Configurations:     Switch(config)#vtp mode server
                                  Switch(config)#vtp domain <anyname>
                                  Switch(config)#vtp password <any password>
                                  Switch(config)#vtp version 2
                                  Switch(config)#exit
TRANSPERENT MODE
                                  Switch(config)#vtp mode transperent
                                  Switch(config)#vtp domain <givenname above>
                                  Switch(config)#vtp password <given password>
                                  Switch(config)#vtp version 2
                                  Switch(config)#exit
 CLIENT MODE
                                  Switch(config)#vtp mode client
                                  Switch(config)#vtp domain <givenname above>
                                  Switch(config)#vtp password <given password>
                                  Switch(config)#vtp version 2
                                  Switch(config)#exit
 server switch: Switch(config)#interface f0/1
                        Switch(config-if)switchport  mode trunk
                        Switch(config-if)exit

Transperent Switch: Switch(config)#interface f0/2
                                    Switch(config-if)switchport mode trunk
                                    Switch(config-if)exit

Important:[ vtp domain name and password should be same in every modes and also two interfaces should be trunked ]
Example: create vlan 10 in server mode switch and check in client mode switch.
client mode switch: Switch# show vlan -press enter --as we can see vlan 10 in client switch.see  below box.


No comments:

Post a Comment