Step1: Designing the experimental environment
Experimental environment: 6 2950cisco switch 8 pcs.
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/86/E3/wKiom1fOMDOQoKIuAACJH0oCeAw807.png-wh_500x0-wm_3 -wmp_4-s_2433914842.png "title=" Cisco1.png "alt=" Wkiom1fomdoqokiuaacjh0oceaw807.png-wh_50 "/>
Swiches ' hostnames a,b,c,d,e,f
Vtp
Server:switch1
client:switch0,2,3,4,5,6
Domain:nashsun.com
Password:cisco
Trunk Mode:trunk
VLAN10
PC0:10.10.1.1/16 FA0/11
PC2:10.10.2.2/16 FA0/11
PC6:10.10.3.3/16 FA0/13
VLAN20
PC1:10.20.1.1/16 FA0/12
PC3:10.20.2.2/16 FA0/15
PC4:10.20.3.3/16 FA0/11
VLAN30
PC5:10.30.1.1/16 FA0/13
PC7:10.30.2.2/16 FA0/15
STEP2: Configuring VTP
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/86/E3/wKiom1fOMhHgbaOmAAAcK0_f150699.png-wh_500x0-wm_3 -wmp_4-s_337197655.png "title=" config vtp.png "alt=" Wkiom1fomhhgbaomaaack0_f150699.png-wh_50 "/>
This VLAN is Cisco-based VTP (VLAN trunk protocol) so you need to configure VTP first, enter VLAN in privileged mode C # into VLAN configuration mode, type C (VLAN) # VTP Domain Nashsun . com & VTP password Cisco & VTP client non-configured domain name domain password VTP role.
STEP3: Configuring Trunk
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/86/E3/wKiom1fOMkyz8sB7AAAmFH9vUv8465.png-wh_500x0-wm_3 -wmp_4-s_2725192365.png "title=" Configuration Trunk.png "alt=" Wkiom1fomkyz8sb7aaamfh9vuv8465.png-wh_50 "/>
Enter the interface mode of the trunk to be configured separately, configure the trunk tunnel to ensure that the line supports a variety of VLANs.
A (config) #interface fastethernet 0/1
A (config-if) #switchport mode trunk
STEP4: Configuring VLANs on the server switch
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/86/E3/wKiom1fOMoST9uTVAAA2ebyzv_w793.png-wh_500x0-wm_3 -wmp_4-s_3248847913.png "title=" in the server Switch configuration Vlan.png "alt=" Wkiom1fomost9utvaaa2ebyzv_w793.png-wh_50 "/>
Each client role switch is automatically synchronized after configuring VLAN configuration on switch with sever role
To view the VTP information command:
A#show VTP Status
VTP Version:2
Configuration Revision:3
Maximum VLANs Supported locally:255
Number of existing Vlans:8
VTP Operating mode:client
VTP Domain Name:nashsun.com
VTP Pruning mode:disabled
VTP V2 mode:disabled
VTP Traps generation:disabled
MD5 digest:0x7a 0x32 0x57 0x39 0xCB 0x57 0xd9 0x4B
Configuration last modified by 0.0.0.0 at 3-1-93 00:39:35
Configuring the VLAN method is simple: (this is a switch to the server role)
Type the VLAN you want to configure directly in global configuration mode and exit
A (config) #vlan 20
A (config) #exit
STEP5: Configuring Port Attribution VLAN
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/86/E3/wKiom1fOMrjgEEDDAAA85zDaJgE228.png-wh_500x0-wm_3 -wmp_4-s_360044405.png "title=" Configuration Port Attribution vlan.png "alt=" Wkiom1fomrjgeeddaaa85zdajge228.png-wh_50 "/>
Configure the appropriate interface for the switch:
Single port configuration:A (config-if) #switchport access VLAN
Multiple port configurations:A (config) #interface rang fastethernet 0/2-4
A (config-if-range) #switchport Access VLAN 10
STEP6: Configuring PC Ipaddr/mask
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/86/E3/wKiom1fOMzPhWMlPAAAXud2f48k850.png-wh_500x0-wm_3 -wmp_4-s_1929958878.png "title=" Configuration Ip.png "alt=" Wkiom1fomzphwmlpaaaxud2f48k850.png-wh_50 "/>
Step7:ping TEST
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/86/E3/wKiom1fOM1iy8b-EAAAavpLR4W0283.png-wh_500x0-wm_3 -wmp_4-s_3312713513.png "title=" ping test.png "alt=" Wkiom1fom1iy8b-eaaaavplr4w0283.png-wh_50 "/>
End of experiment
This article is from the "Fall Forward" blog, be sure to keep this source http://nashsun.blog.51cto.com/9377291/1846825
CISCO_VTP-based VLAN configuration