With the rapid development of information technology, many organizations have established their own internal networks to cater to the information development trend, in the daily office process, employees of the Organization make full use of the Intranet network for shared resource transmission, network printing operations, and access to internal sites, which greatly improves the daily office efficiency of employees. However, while improving the work efficiency, the Intranet network is easy to affect the normal work order if it is not well managed. How can we effectively manage the internal network? In fact, the core device of the internal network is a switch. Clever control and configuration of the switch can greatly improve the network management efficiency, so that the internal network can always run stably and efficiently! Now, this article is modeled on the common Huawei series switches. We recommend several switches to use to control the network!
1. cleverly enable GVRP to dynamically update VLAN configuration information
First, log on to the switch background management system remotely as A system administrator. In the command line status of the background system, enter the string command "system" and click the Enter key, switch the system to the Global View configuration mode;
In global view configuration mode, enter the string command "GVRP" and click the Enter key. Then, switch A automatically enables the global GVRP function; to enable the GVRP function for the e0/22 interface of the switch, we need to set the connection type of the switch port to the trunk type first, and allow all working subnets in the LAN to access the network through this port. In this configuration, we can perform this operation in the Global View Mode of Switch, enter the string command "inter e0/22", click the Enter key, we will find that the command line prompt is "XXX-Ethernet0/22" (1 ), "XXX" indicates the host name of the target switch. At this time, the core switch system automatically switches to the e0/22 interface view mode;
Figure 1
Then, in e0/22 interface view mode, enter the string command "port link-type trunk" and click the Enter key to set the connection type of the target switch port to the trunk port, then execute the string command "port trunk permit vlan all", so that the e0/22 interface can allow all VLANs in the LAN to pass through, and finally execute the "GVRP" string command, in this way, the GVRP function is successfully enabled on the e0/22 interface of the switch;
In the same procedure, we also need to go to the background management system of the B switch and execute the string commands "system" and "GVRP" in sequence to enable the Global GVRP function of the B switch, then, execute the string commands "inter e1/22", "port link-type trunk", "port trunk permit vlan all", and finally execute the string command "GVRP ", in this way, the GVRP function can be successfully enabled on the e1/22 interface of the B switch. When the GVRP function is enabled for the interconnection interfaces of the two vswitches, they can automatically update the VLAN configuration information between them in the future, and the network administrator does not need to perform the same configuration operation again.
To enable the GVRP function of a switch port, you must enable the global GVRP function of the switch where the switch port is located, you also need to set the connection type of the target switch port to trunk, because only the trunk port supports enabling and disabling the GVRP function. If you want to disable the GVRP function of the target switch port in the future, we can execute the "undo gvrp" string command.