I. Experimental topology:
Using the GNS3 simulator
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/78/67/wKiom1Z7lzqhveSYAAA5YcY7q_0047.png "title=" Picture 1.png "alt=" Wkiom1z7lzqhvesyaaa5ycy7q_0047.png "/>
Two Lab Requirements:
, PC3 belongs to the same vlan 10 pc2,pc4 Span style= "font-family: ' The song Body '; > belongs to the same vlan 20 and Span style= "FONT-FAMILY:CALIBRI;" >PC1 and PC3 PC2 and PC4 can communicate normally.
The 2.R1 is set to a single-arm route, andthe IP address of the PC1,PC2,PC3,PC4 is automatically obtained via DHCP .
3.PC1,PC2,PC3,PC4 can communicate with each other.
Three Benefits of Partitioning VLANs :
1. Split broadcast domain
2. Enhance network security
3. can be used to isolate business
Four . Experimental steps:
1.IP Planning:
PC1:192.168.1.10 PC2:192.168.1.20
PC3:192.168.1.30 PC4:192.168.1.40
After the IP address is well planned , the communication between the PCs can be made:
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/78/66/wKioL1Z7l7fAJVO7AACPACoOSlk646.png "title=" Picture 2.png "alt=" Wkiol1z7l7fajvo7aacpacooslk646.png "/>
2. divide the VLAN.
Enter separatelySW1,SW2The global configuration mode is addedVLAN10,VLAN20. In theSW1the global configuration under the partitionVLANafter the interfaceFA1/1JoinVLAN Ten, InterfaceFA1/2JoinVLAN, inSW2do the same on the same operation. (Note: BecauseGNS3the simulator does not support switches, so the switch is emulated with routers. So when you go into the switch and configure it, execute the command first.No IP routing. ):
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/78/67/wKiom1Z7l-aBo_2pAABcE4YZ5WU003.png "title=" Picture 3.png "alt=" Wkiom1z7l-abo_2paabce4yz5wu003.png "/>
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/78/67/wKiom1Z7mAbz8TtxAACNHbSrCFw503.png "title=" Picture 4.png "alt=" Wkiom1z7mabz8ttxaacnhbsrcfw503.png "/>
You can use the command show Vlan-s b to view The members of the VLAN:
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/78/66/wKioL1Z7mGDxkjKHAACqnXhfAkg502.png "title=" Picture 5.png "alt=" Wkiol1z7mgdxkjkhaacqnxhfakg502.png "/>
InVLANbefore you divide it.PCcommunication between them can be normal,VLANafter the division.PCcan not communicate with each other, this is because differentVLANmembers are not able to communicate. But this is only physically separate, logically not separate, becausePCare also part of the same network segment. If thePC1and thePC3divided in the same network segment, they are also in the sameVLAN,PC2and thePC4divided in the same network segment,They are also in the sameVLAN. SoPC1and thePC3we can communicate,PC2and thePC4can also communicate. (Note:VLANafter dividing, you want to make the sameVLANthe member communication needs to be setFA1/15is a trunk port. )
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/78/66/wKioL1Z7mI_Dd9ESAABHJY9cZ3w644.png "title=" Picture 6.png "alt=" Wkiol1z7mi_dd9esaabhjy9cz3w644.png "/>
Three Configuring one-arm routing
How can we make pc1,pc2,pc3,pc4 communicate with each other? We need to set up one-arm routing with a three-layer device router. Need to think about: Three layer device router has only one physical interface, how to configure multiple gateways? We need to divide a physical interface into a number of sub-interfaces, and how many VLANs divide the number of sub-interfaces. Specific configuration such as (note: The first step into the physical interface is to activate the physical interface):
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/78/67/wKiom1Z7mL7T4SdcAABrJEm1 Q_Q 062.png "title=" Picture 7.png "alt=" wkiom1z7ml7t4sdcaabrjem1 Q_Q 062.png "/>
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/78/67/wKiom1Z7mNvR4fpcAACt11Gldq8868.png "title=" Picture 8.png "alt=" Wkiom1z7mnvr4fpcaact11gldq8868.png "/>
After entering the subinterface, encapsulate the sub-interface and configure the IP. After Setup , enter the FA1/14 interface on the SW1 and set it to the relay interface.
Four. set up DHCP
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/78/66/wKioL1Z7mXmgUr_sAAEzL87P0nE472.png "title=" Picture 9.png "alt=" Wkiol1z7mxmgur_saaezl87p0ne472.png "/>
In a real-world network, you also need to configure DNS and other related configurations. after DHCP is configured, we test it with our PC to see if we can get the address automatically.
Clear IP clears the previously set IP and automatically obtains the address using IP DHCP.
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/78/68/wKiom1Z7mjXycs_yAABN46oDVWk778.png "title=" Picture 10.png "alt=" Wkiom1z7mjxycs_yaabn46odvwk778.png "/>
The IP address has been automatically obtained through DHCP , and the following tests The communication between the PCs.
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/78/68/wKiom1Z7mnixz_hBAABwJEwynyc232.png "title=" Picture 11.png "alt=" Wkiom1z7mnixz_hbaabwjewynyc232.png "/>
PCs can communicate with each other.
Configuration complete, thank you!
Base VLAN Partitioning, single-arm routing, and DHCP setup issues