- DrayOS 5
XI. LAN
ExpiredHow to setup multiple LAN subnets with VLAN tags – DrayOS 5
Vigor Routers support multiple IP subnets, enabling different groups of LAN clients to operate within separate IP address ranges. When VLAN (Virtual LAN) is configured, even more subnets can be utilized by segmenting LAN clients into distinct groups. With a VLAN-capable switch, devices from various VLANs can connect through a single LAN port on the router. The router distinguishes the traffic based on the VLAN tags attached to the packets. This article explains how to implement multiple subnets using tag-based VLANs.
Vigor Router setup
- Navigate to Configuration > LAN > LAN Networks, then click "Add" to create a new LAN Network with the following steps:
- Enter a name for the LAN Network.
- Specify the private IPv4 address.
- Configure the DHCP Server settings as needed.
- Click Apply to save the new profile.
- Go to Configuration > LAN > VLAN List and click "Add" to create a new VLAN with the following details:
- Enter the VLAN ID (a number between 1 and 4096).
- Provide a name for the VLAN.
- Choose the previously created LAN network from the list.
- Click Apply to save the settings.
- Navigate to Configuration > LAN > Interface VLAN, and configure the Interface VLAN settings as follows:
- Choose "Trunk" as the Port Type. (For example, use Port 2.)
- Set VLAN 1 as the Untagged VLAN.
- Click "Select VLANs" and choose the VLANs you want to enable on the switch.
- Click Apply to save the configuration.
-
In this example, we’re using a VigorSwitch PQ2200xb.
To create VLANs on the VigorSwitch WebUI, navigate to Configuration > VLAN Setup > Existing VLAN. Click the "Add" button, then enter the VLAN ID and VLAN Name.
Ensure that the VLAN ID matches the tag configured on the Vigor Router.
- Navigate to Configuration > Port Setup > VLAN to configure VLAN settings as follows:
- Assign the VLAN ID to the uplink port (e.g., 2.5GE1).
- Set the Interface VLAN mode to Trunk and select all relevant VLAN IDs under Tagged VLAN.
- Click OK to save the configuration.
- Configure the VLAN ID for the client port (e.g., 2.5GE2) as follows:
- Set the Interface VLAN mode to Access.
- Assign the desired VLAN ID as the PVID. (Note: The PVID must match the VLAN ID.)
- Click OK to save the settings.
VigorSwitch setup
With the above configuration, any device connected to Port 2 of the switch will be part of the router's LAN3 subnet and should receive an IP address within the 192.168.3.0/24 range. You can verify the connection by checking the device's entry in the router’s Monitoring > ARP Table page.
Add a comment to this article
NOTE : All comments are reviewed before publication and may not be posted or may be redacted if the editors do not consider them helpful. The use of offensive or obscene language, copyrighted material, or advertising or promotion or linking to any other product or service is prohibited. By submitting your comment, you confirm that you are the original author and assign copyright of the content to DrayTek indefinitely and irrevocably.