Two ports of a vswitch: Access Link and Trunk Link can be divided into the following two types: Access Link ), trunk Link ). The access link of a VLAN refers to the port "only belongs to one VLAN and forwards data frames to this VLAN. In most cases, the access link is connected to a client. Generally, the VLAN sequence of www.2cto.com is as follows: l generates a VLANl to set the access Link (which VLAN each port belongs to) to set the access link, it can be fixed in advance or dynamically changed based on the connected computer. The former is called "static VLAN", and the latter is naturally "dynamic VLAN. Dynamic VLAN is the VLAN to which the port belongs at any time based on the computer connected to each port. This avoids the above changes and settings. Dynamic VLANs can be roughly divided into three categories: l MAC address-Based VLAN (MAC-Based VLAN) MAC address-Based VLAN, query and record the MAC address of the network card connected to the port to determine the port. Assume that a mac address "A" is set to VLAN "10" by the switch, no matter which port the computer with the MAC address "A" is connected, all ports are allocated to VLAN10. For example, for the Huawei S5300 Switch configuration, run the system-view command in step 1 To Go To The system view. Step 2. Execute the command vlan-id to create a VLAN and enter the VLAN view. Step 3 run the mac-vlan mac-address [priority] command to associate the MAC address with the VLAN. L Subnet-based VLAN (Subnet BasedVLAN) is based on the Subnet VLAN. The VLAN to which the port belongs is determined by the IP address of the connected computer. Unlike the MAC address-based VLAN, even if the computer changes the MAC address due to NIC switching or other reasons, as long as its IP address remains unchanged, it can still add the previously set VLAN. For example, for the Huawei S5300 Switch configuration, run the system-view command in step 1 To Go To The system view. Step 2. Execute the command vlan-id to create a VLAN and enter the VLAN view. Step 3. Execute the command ip-subnet-vlan [ip-subnet-index] ip-address {mask | mask-length} [prioritypriority] to associate the IP subnet and VLAN. L based on the User's VLAN, the User BasedVLAN determines the VLAN to which the port belongs based on the User currently logged on to the computer connected to each port of the switch. The aggregation Link (TrunkLink) of the www.2cto.com VLAN refers to the port that can forward communications between different VLANs. Data frames circulating on the aggregation link are appended with special information used to identify the VLAN to which the aggregation link belongs. The TRUNK function is suitable for the following applications: l TRUNK is used to connect to the server to provide the server with a high bandwidth. L The TRUNK function is used for cascade between switches. It provides high bandwidth bundling for data exchange between switches by sacrificing the number of ports, improving the network speed and breaking through network bottlenecks, this greatly improves network performance. L Trunk can provide load balancing capabilities and system fault tolerance. As Trunk balances the traffic of each switch port and server interface in real time, once a port fails, it will automatically remove the faulty port from the Trunk group, and then re-allocate the traffic of each Trunk port, so as to realize system fault tolerance.