Computer network is popular in colleges for undergraduate students, which is focusing on practice and demands the students to grasp the configuration for different kinds of network devices, but network laboratory is not established completely in colleges due to the high cost of network devices .The article put forwards a solution based on virtualization tool named Packet Tracer, which provides network simulation, visualization and collaboration capabilities. This paper presents the features of the virtual simulation tool, and the configuration example for mini VLAN practice project, this method can help students to understand and master the complex and abstract network concepts.