Topology Graph OK...
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/4D/55/wKiom1RPmlTCGTIrAADFQF2UNoU402.jpg "Title =" 6.png" alt = "wkiom1rpmltcgtiraadfqf2unou402.jpg"/>
1.SW1 has VLAN 10 and 20, and the configuration protocol enables sw2 to learn the two VLANs.
SW1 (config) # VTP Mode Server
SW1 (config) # VTP domain ccna
SW1 (config) # VTP password Cisco
SW1 (config) # Exi
Sw2 (config) # VTP mode Client
Sw2 (config) # VTP domain ccna
Sw2 (config) # VTP password Cisco
Sw2 (config) # Exi
2.Configure pC1 and PC2 to different CIDR blocks and VLANs. (The specific configuration step is omitted)
3.To enable pC1 to ping PC2, you need to add a router1 and route between different network segments. The interfaces connecting router1 and SW1 need sub-interfaces, the Gateways of pC1 and PC2 are the IP addresses of subinterfaces;
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/4D/55/wKioL1RPmr6CFkUNAACondGd0WE007.jpg "Title =" 7.png" alt = "wkiol1rpmr6cfkunaacondgd0we007.jpg"/>
Vro Configuration:
Interface gigabitethernet0/0.1
Encapsulationdot1q 10
IP address192.168.1.254 255.255.255.0
!
Interface gigabitethernet0/0.2
Encapsulationdot1q 20
IP address192.168.2.254 255.255.255.0
!
(You can directly paste the configuration in global configuration mode ).
Prompt: Note that no shutdown is required for the physical interface of the sub-interface.
4.To be able to carry packets of different VLANs on the link, the links between SW1 and sw2, SW1, and router1 must be configured as the trunk channel (trunk) protocol.
Interfacefastethernet0/1
Switchportaccess VLAN 10
!
Interface fastethernet0/2
Switchporttrunk allowed VLAN 10, 20
Switchport modetrunk
!
Interface fastethernet0/3
Switchporttrunk allowed VLAN 10, 20
Switchport modetrunk
!
Test:
Use pC1 to communicate with other devices.
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/4D/55/wKioL1RPms3TQmIKAAJvQasuJ1I561.jpg "Title =" 8.png" alt = "wkiol1rpms3tqmikaajvqasuj1i561.jpg"/>
Summary:
1. The VTP domain must be the same as the password, and the link between the vswitches must be trunk to learn VLAN information correctly.
2. The trunk link must allow the configured VLAN to pass through. By default, only VLAN 1 is allowed.
This article is from the "snoopy_honey" blog, please be sure to keep this http://sno0py.blog.51cto.com/8419234/1568999
Small single-arm routing practices