Use Multiple LAN Subnets with Port-Based VLAN

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. Go to Configuration / LAN / LAN Networks, click “Add” to create LAN Networks as follows:
    1. Enter a Name of the LAN Network.
    2. Enter the private IPv4 Address.
    3. Setup DHCP Server Configuration.
    4. Click Apply to save the profile.
  2. Go to Configuration / LAN / VLAN List, click “Add” to create VLAN ID as follows:
    1. Input the VLAN ID number in range 1~4096.
    2. Enter a Name of the VLAN
    3. Select the LAN network we just created.
    4. Click Apply to save the profile.
  3. Go to Configuration / LAN / Interface VLAN, configure the Interface VLAN Settings as follows:
    1. For Port 1, select “Access” as Port Type and set 1 as Untagged VLAN.
    2. For Port 2, select “Access” as Port Type and set 2 as Untagged VLAN.
    3. For Port 3, select “Access” as Port Type and set 3 as Untagged VLAN.

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

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.
    a screenshot of Vigor3900 802.1q 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.
    a screenshot of Vigor3900 802.1Q 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.

a screenshot of Vigor3900 VLAN list 

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
  a screenshot of Vigor3900 LAN profile

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.

a screenshot of LAN profile list

Published On: 2016-05-12 

Was this helpful?   

book icon

Related Articles