KB - How do I setup a VLAN trunk link between two NETGEAR switches?
點擊 - 4281  |  12 個人喜歡這篇文章和覺得有幫助 KBA-767

NETGEAR - Switches  


This article describes how to configure 2 NETGEAR switches to exchange traffic for multiple VLANs.

In this example, each switch is configured with 2 VLANs (10 and 20).

There is a link between the switches over which traffic for both VLANs can pass. This is referred to as the VLAN Trunk Link.

 

 

In this example, the VLAN port membership on each switch is the same. We will therefore apply the same configuration to each switch.

  • Ports 1 - 5: VLAN 10
  • Ports 6 - 10: VLAN 20
  • Port 20: VLAN Trunk Link

Create the VLANs:

  1. Open a web browser.
  2. In the address bar of the web browser, type the IP address of the switch and press Enter.
  3. Type the admin password of the switch and click Login.
  4. Go to Switching - VLAN - Advanced - VLAN Configuration.
  5. In the VLAN ID field, type the ID of the VLAN you wish to create and click Add. Here we add VLAN 10.
    Image
  6. Repeat the process to create VLAN 20.

Add ports to the VLANs:

  1. Go to Switching - VLAN - Advanced - VLAN Membership.
  2. In the VLAN ID drop down menu, select VLAN 10.
  3. Mark ports 1, 2, 3, 4 & 5 with a U. This designates an untagged port and is used for ports which connect to client devices such as as PCs.
  4. Mark port 20 with a T. This designates a tagged port and is used for the VLAN trunk link.
    Image
  5. Click Apply.
  6. In the VLAN ID drop down menu, select VLAN 20.
  7. Mark ports 6, 7, 8, 9 & 10 with a U.
  8. Mark port 20 with a T.
  9. Click Apply.
  10. In the VLAN ID drop down menu, select VLAN 1.
  11. Remove ports 1 - 10 from VLAN 1. To do this click on the ports until they are blank (i.e. until they contain neither a U or a T).
    Note: VLAN 1 is the management VLAN by default. Be careful not to remove the port you are managing the switch through from the management VLAN!
  12. Click Apply.

Configure port PVID settings for untagged ports:

  1. Go to Switching - VLAN - Advanced - Port PVID Configuration.
  2. For each port marked as untagged above, set the PVID of that port to the VLAN ID of the VLAN it was assigned to. For example, above we added ports 1, 2, 3, 4 & 5 as untagged members of VLAN 10. Therefore we sets ports 1, 2, 3, 4 & 5 with a PVID of 10. Select ports 1 - 5 and type 10 in the PVID field.
    Image
  3. Click Apply.
  4. Select ports 6, 7, 8, 9, & 10 and type 20 in the PVID field.
  5. Click Apply.

Finally, connect both switches together using port 20 on each switch. To confirm that the configuration is successful, verify that a PC in VLAN 10 on one switch can communicate with a PC in VLAN 10 on the second switch.

 

    更新日期: 3/24/2023 3:56:59 PM  
 
 

類似的文章

Share this article

 

標籤


Winco (Pacific) Limited      Phone: 3619-8822   Email: support@winco.com.hk