CLICK HERE

Earning More

Clickz

Monday, March 21, 2011

CCNA -: VLAN & VTP .:-


                                    -: VLAN:-
Togging: - This is trademark of VLAN, Let we have VLAN them for define all VLAN. We give togging.
EX:-                           VLAN –  1 -     by default
                                   VLAN – 2 -
                                   VLAN – 3 -      togging no.
Switch#show vlan
Switch(config)#vlan 10
Switch(config)#name sales
Switch(config)#exit
Switch#show vlan

                                     How to use VLAN?
Firstly we connect two pc from CISCO switch from eth0/3 and give the ip address on both pc same IP address scheme then both pc ping each other without any problem.
  1. Now we want both pc will not ping each other.
  2. So we will create VLAN on CISCO Switch.
VLAN: - VLAN stands for Virtual LAN its utility that use for safe IP address for waisting.


In this situation pc will be ping normally.
Switch(config)#interface F0/2
Switch(config)#switch port access vlan10
Switch(config)#no shutdown
Switch(config)#exit
Switch#wr
Now in this situation PC – A & PC – B cannot ping each other.
                                                      -: VTP:-
VTP stands for Virtual Trunking Protocol: - In this practical we create VLAN other client switch at the one location.

-: Switch 1:-
S1(config)#vtp mode server
S1(config)#vtp domain hcl.com
S1(config)#int F0/11
S1(config)# switchport mode trunk
S1(config)#no shutdown
S1(config)#exit
S1(config)#int F0/2
S1(config)#switchport mode trunk
S1(config)#no shutdown
S1(config)#exit
Switch1#show vtp status
-: Switch 2:-
S2(config)#vtp mode client
S2(config)#vtp domain hcl
S2(config)#int F­0/11
S2(config)#switchport mode trunk
S2(config)#no shutdown
S2(config)#exit
Switch2#show vtp status
-: Switch 3:-
S3(config)#vtp mode client
S3(config)#vtp domain hcl
S3(config)#int F0/1
S3(config)#swticport mode trunk
S3(config)#no shutdown
S3(config)#exit
Swich3#show vtp status
-: Switch 1:-
S1(config)#vlan 10
S1(config)#vlan 20
Port no 11 will be in VLAN 10
S1(config)#int F0/11
S1(config)#switchport access vlan 10
S1(config)#no shutdown

PC – 1             ping 10.10.10.1
                  ping 10.10.10.1
                        ping 10.10.10.1
                        ping 10.10.10.1


                            -: How to configure VTP client and Server:-
VTP(VLAN Trunking Protocol) is the protocol that propagate the information about which VLAN’s, exit from one switch to another switch. If VTP did not provide this information VLAN’s would have to be created on all switch individually in the network VTP is CISCO Propriety. The default mode of a switch is configuring as VTP Server in any case. The Server services are turned off.

             -:Use following command to turn it back on as VTP Server:-

Switch#vlan database
Switch(vlan)#vtp server
Switch(vlan)#exit

First create multiple VLAN with name assign multiple ports to them. Then create 802.1q trunk link between the two switches to allow communication between VLAN.

-: VTP client and server configuration:-

                                                    -: How to create VLAN:-
First enter global configuration mode to run the following command.
-: How to create VLAN2 & VLAN3 on a switch A:-
VTP Server:-
Switch(config)#vlan2   -        defining VLAN2
Switch(config)#vlan2 name<marketing>
Switch(config)#vlan3
Switch(config)#vlan3 name<management>
Switch(config)#exit
Switch#exit

Now assign the port2 and 3 to VLAN2. It must be done from the interface mode. Enter the following command to add port2 and 3 to VLAN2.

Switch(config)#int Fo/2
Switch(config)#switchprt access vlan2
Switch(config)#exit
Switch(config)#int F0/3
Switch(config)#switchport access vlan2
Switch(config)#exit

Now assign the port 4 & 5 to VLAN3. Enter the following commands to add port 4 & 5 to VLAN3.

Switch(config)#int F0/4
Switch(config)#switchport access vlan3
Switch(config)#exit
Switch(config)#int F0/5
Switch(config)#switchport access vlan3
Switch(config)#exit

-: Configuration of VTP client on Switch B:-
Switch#vlan database
Switch#vtp client
Switch#vtp domain group1
Switch#exit

Trunking with 802.1q:-
Now create 802.1q trunk link between the two switches to allow communication between VLAN. On both switch (switch A & switch B). Type the following command with 802.1q at the fast Ethernet 0/1 interface.

SwitchA#int F0/1
SwitchA(config)#switchport mode trunk
SwitchA(config)#switchport trunk encapsulation dot 1q
SwitchA(config)#exit
SwitchA#int F0/1
SwitchB(config)#switchport mode trunk
SwitchB(config)#switchport trunk encapsulation dot 1q
SwitchB(config)#exit
SwitchB#int F0/2
SwitchB(config)#switchport access vlan2
SwitchB(config)#exit
SwitchB#int F0/3
SwitchB(config)#switchport access vlan2
SwitchB(config)#exit
SwitchB#int F0/4
SwitchB(config)#switchport access vlan3
SwitchB(config)#exit
SwitchB#int F0/5
SwitchB(config)#switchport access vlan3
SwitchB(config)#exit

No comments:

Post a Comment