1. VLAN: Virtual LAN, is the logical combination of switch ports, VLAN work in the second layer of OSI, a VLAN is a broadcast domain, the communication between the VLAN is through the 3rd layer of routers to complete.
2. VLAN Advantages:
Broadcast problem of 1> control network
2> simplifies network management
3> improve the security of the network
3. The allocation method of which VLAN in the switch
1> VLAN: Designate one end of the switch as a member of a VLAN
2> mac-based VLAN: The switch decides which VLAN to place on the MAC address of the node
4. Single Switch partition VLAN
Topology map
More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/Network/jhjs/
Prepare the stage, let Pc0 ping pc1 first, found that can ping pass
1> after entering the precinct configuration mode, create the Vlan2
Switch (config) #vlan 2
Switch (Config-vlan) #
2> exit vlan2, create Vlan3
Switch (Config-vlan) #exit
Switch (config) #vlan 3
Switch (Config-vlan) #
3> the port 1,2,3 into vlan2
Switch (config) #int range f0/1-3
Switch (Config-if-range) #switch mode access
Switch (config-if-range) #switch Access VLAN 2
If you divide the error, you can enter the port to use the command
Switch (config-if-range) #no switch Access VLAN 2
You can remove this port from this VLAN
4> the port 4,5,6 into the port vlan3
Switch (config) #int range f0/4-6
Switch (config-if-range) #switch Access VLAN 3
5> in privileged mode show VLAN can see configuration
2 VLAN0002 Active FA0/1, FA0/2, FA0/3
3 VLAN0003 Active FA0/4, FA0/5, FA0/6
6> Verify use pc0 to ping pc1 to see if it can ping
This article is from "Guo Understand blog" blog, please be sure to keep this source http://guodong810.blog.51cto.com/4046313/1019422