Upload
abhinav-virat-bhagat
View
227
Download
0
Embed Size (px)
Citation preview
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
1/42
1Version 3.0
Module 9VLAN Trunking Protocol
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
2/42
2Version 3.0
VLAN Communication
D evices on different VLANS must have arouter to communicate with each other If devices are on the same VLAN, then theycan communicate through a switch.
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
3/42
3Version 3.0
Access Links
An access link is a link on the switch thatis a member of only one VLAN.This VLAN is referred to as the nativeVLAN of the port. Any device that is attached to the port is
completely unaware that a VLAN exists.
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
4/42
4Version 3.0
Trunk Links
A trunk link is capable of supporting multipleVLANs.Trunk links are typically used to connect switches
to other switches or routers.Switches support trunk links on both FastEthernet and Gigabit Ethernet ports.Switches, routers, and some servers can beconnected to a VLAN trunk (NIC must supporttrunking)
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
5/42
5Version 3.0
Access and Trunk Links
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
6/42
6Version 3.0
Trunk Links
A trunk link does not belong to a specific VLAN. acts as a conduit for VLANs between switches and
routers.
The trunk link can be configured to transport allVLANs or to transport a limited number of VLANs.A trunk link may, however, may have a nativeVLAN. The native VLAN of the trunk is the VLAN that the
trunk uses if the trunk link fails for any reason.
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
7/42
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
8/42
8Version 3.0
VLAN Identification
IS L - This protocol is a Cisco proprietaryencapsulati o n protocol for interconnectingmultiple switches; it is supported inswitches as well as routers.
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
9/42
9Version 3.0
VLAN Identification
IEEE 802.1Q - This protocol is an IEEEstandard method for identifying VLANs byinserting a VLAN identifier into the frameheader. This process is referred to asframe tagging.
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
10/42
10Version 3.0
2-by te TP ID
2-by te TC I
802.1q
S A and D AMACsMACs 80 2.1q Tag Type/LengthField
D ata (max 15 00bytes)
CRCNew CRC
NIC cards and networking devices can understand thisbaby giant frame (1522 bytes). However, a Cisco switchmust remove this encapsulation before sending the frameout on an access link.
Tag Protocol Identifier
Tag Control Info (includesVLAN ID )
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
11/42
11Version 3.0
802.1q
A 4 -by te tag header containing a tag protocolidentifier (TP ID ) and tag control information (TC I) withthe following elements: A 2-by te TP ID with a fixed value of 0x8 100 . This value
indicates that the frame carries the 80 2.1Q /80 2.1p taginformation .
A TC I containing the following elements:Three -bit user priority
O ne -bit canonical format (CF I indicator)Tw elve-bit VLAN i d entifier (VID)-Uniquely i d entifies theVLAN t o w hich the frame bel o ngs
This VLAN I D is added to each frame to allowdelivery of frames across a switched trunk.
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
12/42
12Version 3.0
Trunking
A trunk is a point-to-point link thatsupports several VLANsA trunk is used to save ports when creatinga link between two devices implementingVLANs
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
13/42
13Version 3.0
Trunking
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
14/42
14Version 3.0
Configuring Trunking
Fast Ethernet and Gigabit Ethernet trunkingmodes: On
Off D esirable Auto Non negotiate
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
15/42
15Version 3.0
Configuring Trunking
On - This mode puts the port into permanenttrunking mode. The port becomes a trunk porteven if the neighboring port does not agree to the
change.The on state does not allow for the negotiation of an encapsulation type. You must, therefore, specify the encapsulation in
the configuration
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
16/42
16Version 3.0
Configuring Trunking
O ff - This mode puts the port intopermanent nontrunking mode andnegotiates to convert the link into anontrunk link.The port becomes a nontrunk port even if the neighboring port does not agree to the
change.
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
17/42
17Version 3.0
Configuring Trunking
D esirable - This mode makes the portactively attempt to convert the link to atrunk link. The port becomes a trunk port if the neighboring port is set to on, desirable,or auto mode.
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
18/42
18Version 3.0
Configuring Trunking
Auto - This mode makes the port willing toconvert the link to a trunk link.The port becomes a trunk port if the neighboring
port is set to on or desirable mode.This is the default mode for all Ethernet ports. if the default setting is left on both sides of the
trunk link, the link will not become a trunk
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
19/42
19Version 3.0
Configuring Trunking
Non negotiate - This mode puts the portinto permanent trunking mode but preventsthe port from generating D ynamic TrunkingProtocol ( D TP) frames. You must configure the neighboring port
manually as a trunk port to establish a trunklink.
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
20/42
20Version 3.0
Configuring Trunking
For trunking to be auto negotiated on FastEthernet or Gigabit Ethernet ports, theports must be in the same VTP domain.However, you can use on or non negotiatemode to force a port to become a trunk,even if it is in a different domain.
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
21/42
21Version 3.0
Configuring Trunking
IOS-Based SwitchSwitch(config)# interface fastethernet 0
Switch(config-if)# switchport mode [access | multi | trunk]
Switch(config-if)# switchport trunk encapsulation {isl|dot1q}Switch(config-if)# switchport trunk allowed vlan remove vlan-list
Switch(config-if)# switchport trunk allowed vlan add vlan-list
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
22/42
22Version 3.0
VLAN Trunking Protocol
VTP maintains VLAN configuration consistencyacross the entire network.VTP is a messaging protocol that uses Layer 2
trunk frames to manage the addition, deletion,and renaming of VLANs on a network-wide basis.Further, VTP allows you to make centralizedchanges that are communicated to all other
switches in the network.
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
23/42
23Version 3.0
VTP Benefits
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
24/42
24Version 3.0
VTP
All switches in the same management domainshare their VLAN information with each other, anda switch can participate in only one VTPmanagement domain.Switches in different domains do not share VTPinformation.Using VTP, switches advertise: Management domain Configuration revision number Known VLANs and their specific parameters
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
25/42
25Version 3.0
VTP
Switches can be configured not to acceptVTP information.
These switches will forward VTPinformation on trunk ports in order toensure that other switches receive theupdate, but the switches will not modify
their database, nor will the switches sendout an update indicating a change in VLANstatus.
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
26/42
26Version 3.0
VTP
By default, management domains are set toa non secure mode, meaning that theswitches interact without using apassword.Adding a password automatically sets themanagement domain to secure mode.
A password must be configured on everyswitch in the management domain to usesecure mode.
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
27/42
27Version 3.0
VTP
The VTP database contains a revisionnumber.Each time a change is made, the switchincrements the revision number
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
28/42
28Version 3.0
VTP
A higher configuration revision number indicates that the VLAN information that isbeing sent is more current then the stored copy.
Any time a switch receives an update that has ahigher configuration revision number, theswitch will overwrite the stored information withthe new information being sent in the VTP
update.That is why when adding a new switch, youshould make sure it has a lower revisionnumber than the others in the domain.
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
29/42
29Version 3.0
VTP Modes
Switches can operate in any one of thefollowing three VTP modes: Server Client Transparent
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
30/42
30Version 3.0
VTP Modes
S erver - If you configure the switch for server mode, you can create, modify, and delete VLANs,and specify other configuration parameters (suchas VTP version and VTP pruning) for the entireVTP domain.VTP servers: Advertise their VLAN configuration to other
switches in the same VTP domain
Synchronize the VLAN configuration with other switches based on advertisements received over trunk links.
This is the default mode on the switch.
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
31/42
31Version 3.0
VTP Modes
C lient - VTP clients behave the same wayas VTP servers.However, you cannot add, change, or delete VLANs on a VTP client.
You can only adopt VLAN managementchanges
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
32/42
32Version 3.0
VTP Modes
T ransparent - VTP transparent switches donot participate in VTP.
A V TP transparent s w itch do es n o t a d vertise its VLAN c o nfigurati o n , and doesnot synchronize its VLAN configurationbased on received advertisements. However, in VTP Version 2, transparent
switches do forward VTP advertisementsthat the switches receive out their trunkports.
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
33/42
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
34/42
34Version 3.0
Configuring VTP
IOS-Based SwitchSwitch(vlan)# vtp domain dom ain-na me
Switch(vlan)# vtp {server | client |transparent}
Switch(vlan)# vtp password password
Switch(vlan)# vtp v2-mode (version2)
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
35/42
35Version 3.0
Adding a Switch to an Existing D omainBe sure to reset the configurationrevision number of the new switchto be lower than the other switchesor VLAN info will be erased on theVTP Server and VTP Clients
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
36/42
36Version 3.0
Inter-VLAN legacy routing
Re quires one 10Mbp s(prefera bly 100M bp s or 1 Gbp s) interface per VLAN .
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
37/42
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
38/42
38Version 3.0
Trunking Provides Scalability
Using ISL or 801.Q,router only needsone port.
Note: this must be FastEthernet!
Subinterfaces areonly on the router for the VLANs
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
39/42
39Version 3.0
External router config exampleRouter on a Stick
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
40/42
40Version 3.0
External router config exampleRTA (config)# interface f0/0RTA (config-if)# no ip addressRTA (config-if)# interface f0/0.1RTA (config-subif)# encapsulation dot1q 1
RTA (config-subif)# ip address 10.1.1.1RTA (config-subif)# int f0/0.2RTA (config-subif)# encapsulation dot1q 20RTA (config-subif)# ip address 10.1.2.1RTA (config-subif)# int f0/0.3
RTA (config-subif)# encapsulation dot1q 30RTA (config-subif)# ip address 10.1.3.1
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
41/42
41Version 3.0
Switch ConfigurationSwitch(config)# interface FastEthernet0/1Switch(config-if)# switchport mode trunkSwitch(config-if)# switchport trunk encapsulation
dot1q
Switch(config)# interface FastEthernet0/2Switch(config-if)# switchport access vlan 1
Switch(config)# interface FastEthernet0/3Switch(config-if)# switchport access vlan 10
Cant skip this step could beisl if using older equipment
8/8/2019 Ccna3mod9_VLAN Trunking Protocol
42/42
42Version 3 0
Module 9VLAN Trunking Protocol