Experiment
Topology diagram:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/58/9A/wKiom1S1BjHzm0gRAADGz6lYA_A919.jpg "title=" 1.jpg " alt= "Wkiom1s1bjhzm0graadgz6lya_a919.jpg"/>zhu
Note: VTP is divided into three modes (one, server, two, client, three, transparent). At least one server mode per admin domain facilitates creation, deletion, and modification of VLANs. The data frames that the VTP advertises are sent to the multicast address: 01-00-0C-CC-CC-CC, which are the frames that the neighboring devices can receive.
Requirements for VTP:
One, each switch within the domain must be the same VTP domain name. Second, the switch must be contiguous, and the neighboring switch needs the same domain name.
Three, all switches must be configured as trunk links.
Configuration of VTP:
One, determine the VTP version. Second, add to the admin domain, determine its name and password, (configure password in a high-security environment) Three, select a VTP mode for the switch. Four, whether to enable VTP pruning.
Experimental steps:
One, configure SW1 for server mode, other for client mode, switch interface configured as Trunk
SW1:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/58/97/wKioL1S1DWbwCSy6AAFdg6p_B-4383.jpg "style=" float: none; "title=" 2.jpg "alt=" Wkiol1s1dwbwcsy6aafdg6p_b-4383.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/58/9A/wKiom1S1DJzB37oRAAEcrzqEyiU055.jpg "style=" float: none; "title=" 3.jpg "alt=" Wkiom1s1djzb37oraaecrzqeyiu055.jpg "/>
SW2:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/58/9A/wKiom1S1DVPRu2R9AAFpttaqTIY553.jpg "title=" 1.jpg " alt= "Wkiom1s1dvpru2r9aafpttaqtiy553.jpg"/>
SW3:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/58/9A/wKiom1S1Db6SOQaiAAGWXyU1ObQ906.jpg "title=" 2.jpg " alt= "Wkiom1s1db6soqaiaagwxyu1obq906.jpg"/>
Second, configure the VLAN on the server mode switch, the other switches learn the VALN information of the server mode switch, and view it through the show VLAN-SW b command.
SW1:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/58/97/wKioL1S1D9yx2_7wAAB8o6rl0wk616.jpg "style=" float: none; "title=" 3.jpg "alt=" Wkiol1s1d9yx2_7waab8o6rl0wk616.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/58/9A/wKiom1S1DxOh--aRAADLcx5UFFU130.jpg "style=" float: none; "title=" 4.jpg "alt=" Wkiom1s1dxoh--araadlcx5uffu130.jpg "/>
To view VLAN information on SW2 and SW3:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/58/97/wKioL1S1EEiQsNikAADgjHSIpUE938.jpg "style=" float: none; "title=" 5.jpg "alt=" Wkiol1s1eeiqsnikaadgjhsipue938.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/58/9A/wKiom1S1D36ASXuJAADWEQVujeg885.jpg "style=" float: none; "title=" 6.jpg "alt=" Wkiom1s1d36asxujaadweqvujeg885.jpg "/>
Third, view the VTP configuration changes for the switch by the show VTP status command, add VLANs on the SW1, and view the VTP configuration information for the other switches.
The following are no VLANs added:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/58/97/wKioL1S1ETWhOhzhAAEQKjiTM7Q521.jpg "title=" 7.jpg " alt= "Wkiol1s1etwhohzhaaeqkjitm7q521.jpg"/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/58/9A/wKiom1S1ETOBUdObAAD4SaqyEhc195.jpg "style=" float: none; "title=" 8.jpg "alt=" Wkiom1s1etobudobaad4saqyehc195.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/58/97/wKioL1S1Ef2D_XybAAD-niv-JqQ222.jpg "style=" float: none; "title=" 9.jpg "alt=" Wkiol1s1ef2d_xybaad-niv-jqq222.jpg "/>
Here is the Add VLAN:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/58/97/wKioL1S1E3STIMLJAACKCY6wV3Y542.jpg "title=" 1.jpg " alt= "Wkiol1s1e3stimljaackcy6wv3y542.jpg"/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/58/9A/wKiom1S1ErzxGtHTAAFJs63lyYg305.jpg "title=" 1-0. JPG "alt=" wkiom1s1erzxgthtaafjs63lyyg305.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/58/97/wKioL1S1FCjQMJmuAAEprNcGswU535.jpg "style=" float: none; "title=" 1.jpg "alt=" Wkiol1s1fcjqmjmuaaeprncgswu535.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/58/9B/wKiom1S1E17TLUTNAAEn6auIDps930.jpg "style=" float: none; "title=" 2.jpg "alt=" Wkiom1s1e17tlutnaaen6auidps930.jpg "/>
The above information can be seen in configuration modification number 7: Before the number is 5, stating that two different VTP advertisements were issued, two VLANs added, each switch MD5 summary information update synchronization
Four, for security, configure the VTP password for the server mode switch, add VLAN, view the VALN information of each switch
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/58/97/wKioL1S1FjSDK2nFAABpWnQztOg253.jpg "style=" float: none; "title=" 1.jpg "alt=" Wkiol1s1fjsdk2nfaabpwnqztog253.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/58/9B/wKiom1S1FWvCfI-sAAB8NF70JuM726.jpg "style=" float: none; "title=" 2.jpg "alt=" Wkiom1s1fwvcfi-saab8nf70jum726.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/58/97/wKioL1S1FovxElkGAAEJOs3Ksxk485.jpg "style=" float: none; "title=" 3.jpg "alt=" Wkiol1s1fovxelkgaaejos3ksxk485.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/58/9B/wKiom1S1FcGxX1xdAADuxfeInKY159.jpg "style=" float: none; "title=" 4.jpg "alt=" Wkiom1s1fcgxx1xdaaduxfeinky159.jpg "/>
The above two switches are not configured with a VTP password all do not learn to VLAN information
View VLAN information for SW2 after configuring a VTP password for the SW2 switch in client mode
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/58/9B/wKiom1S1FqKw0mDYAACUUGgoUpg841.jpg "title=" 1.jpg " alt= "Wkiom1s1fqkw0mdyaacuuggoupg841.jpg"/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/58/9B/wKiom1S1F7PCOf_9AAHbX2lH9hI296.jpg "title=" 2.jpg " alt= "Wkiom1s1f7pcof_9aahbx2lh9hi296.jpg"/>
After the SW2 configured with a VTP password, the switch learns the VLAN information after viewing it
VTP Experiment Complete
Here's how the STP spanning tree works:
To build a tree algorithm: One, select the root bridge, two, select the root port, and three, select the specified port.
Spanning tree algorithm definition: When comparing STP parameters, the value is small with high precedence.
One, select the root bridge, (the small MC address is the root bridge) two, select the root port (note: The root port exists on the non-root bridge, when comparing the port ID value, the port ID value of the peer received is compared), select the root bridge in order is: 1, to the root bridge the lowest root path cost, 2, the direct-connected bridge ID is minimal, 3, the port ID is minimal. Three, select the specified port, 1, with the path cost is lower, 2, where the switch bridge ID value is small, 3, the value of the port ID is small (note: the interface on the root bridge is the specified port, because the path cost is 0, compared to the port ID value, compared to the self port ID value)
Through the above principle through the command to view the STP information and analysis of the end which switch blocked which port (based on VLAN 1 view)
SW1:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/58/9B/wKiom1S1H57RWCg0AAG8jZuk5Js590.jpg "title=" 1.jpg " alt= "Wkiom1s1h57rwcg0aag8jzuk5js590.jpg"/>
SW2:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/58/98/wKioL1S1IHihzhtAAAHqgpDDNAc048.jpg "title=" 2.jpg " alt= "Wkiol1s1ihihzhtaaahqgpddnac048.jpg"/>
SW3:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/58/9B/wKiom1S1H76wD6tSAAG2PWbGj5E961.jpg "title=" 3.jpg " alt= "Wkiom1s1h76wd6tsaag2pwbgj5e961.jpg"/>
The F1/1 interface is blocked by looking at the end of the switch SW3
One: Select the root bridge
By viewing the SW1 as the root bridge for VLAN 1
Two: Select the root port
By looking at the root port on a non-root bridge based on the principle roots, the lowest root path cost to the root bridge is derived directly on the SW2 on the f1/0 and the F1/2 on the SW3 on the root port and the SW2 on the F1/1 as the root port
Three: Select the specified port
By looking at the port ID on the SW2 is small, all for the specified port
The F1/1 interface on the remaining SW3 is blocked port
Experiment completed
Analyze and view how Cisco device VTP works and the STP spanning tree principle