< Knowledge Base

Use Multiple LAN Subnets with Port-Based VLAN

Published On: May 12, 2016 

Vigor Router provides multiple IP subnets, which allows different groups of LAN clients to use a different range of IP address. More IP subnets are available when VLAN (Virtual LAN) is configured to partition the LAN clients. This article introduces how to use multiple subnets with port-based VLAN.

1. Suppose we would like to use three LAN subnets on the router. At LAN >> VLAN Configuration page, and check Enable set the VLAN as follows:

  1. For "VLAN0", select Port 1 as a member, and set Subnet to "LAN1".
  2. For "VLAN1", select Port 2 as a member, and set Subnet to "LAN2".
  3. For "VLAN2", select Port 3 and Port 4 as a member, and set Subnet to "LAN3". (Note that once VLAN configuration is enabled, make sure every LAN port is a member of at least one VLAN.)
a screenshot of VLAN settings on DrayOS

2. At the page of LAN >> General Setup, check the "Enable" box of LAN2 and LAN3. Then click OK to save the configuration and reboot the router.

Enable more LAN Subnet on DrayOS

3. You can edit the detailed IP and DHCP settings by entering Details Page.

a screenshot of LAN setup on DrayOS

With the above configuration, the device connecting to LAN Port 1 will belongs to LAN1, and get an IP address in the 192.168.1.0/24 subnet; The device connecting to LAN Port 2 will belongs to LAN2, and get an IP address of 192.168.2.0/24 subnet; The device connecting to LAN Port 3 and Port 4 will belong to LAN3 and get an IP address in 192.168.3.0/24 subnet.

Checking the IP configuration of client on LAN Port 1

1. Edit the default 802.1Q VLAN ID 10 via LAN >> Switch >> 802.1Q VLANas follows:

  1. In Member, un-select LAN_Port_2, LAN_Port_3 and LAN_Port_4, leave only LAN_Port_1
  2. In Untag, un-select LAN_Port_2, LAN_Port_3 and LAN_Port_4, leave only LAN_Port_1
  3. Apply the settings.
   

2. Add a new 802.1Q VLAN via LAN >> Switch >> 802.1Q VLAN, edit the profile as follows:

  1. Enter VLAN ID as 11
  2. Select LAN_Port_2 as Member
  3. Select LAN_Port_2 as Untag
  4. Apply the settings.
   

3. Add two more 802.1Q VLAN groups for VLAN ID 12 and VLAN ID 13 with the same steps. After completing the above configurations, there will be 4 VLAN groups.

 

4. Add a new LAN profile with VLAN ID 11 via LAN >> General Setup page, edit the profile as follows:

  1. Input LAN Profile Name
  2. Input the VLAN ID
  3. Input the LAN IP address as 192.168.2.1
  4. Input DHCP Server Start IP and End IP as 192.168.2.x
  5. Apply the configurations
 

5. Similarly, add two more LAN profiles for VLAN ID 12 and VLAN ID 13. After completing the above configurations, the router will have 4 LAN profiles. When a PC connects to LAN Port 1, it will obtain IP 192.168.1.x; when connects to LAN Port 2, it will obtain IP 192.168.2.x; LAN Port 3 for IP 192.168.3.x; and LAN Port 4 for IP 192.168.4.x. By default, the PCs connecting to different LAN ports cannot access each other because they belong to different VLANs.


Related Articles