XI. LAN
ExpiredApplying VLAN Configuration with DrayTek Central Switch Management
To distinguish LAN clients and separate them into different domains, it is common to set up tag-based VLAN on the switch. Central Switch Management is a feature that allows Network Administrators to manage a VigorSwitch directly from Vigor Router's management page and provides a quicker and easier way to configure the VLAN setting according to router's VLAN setup without needing in-depth knowledge of VLAN tags or the port settings required to pass VLAN tagged traffic across a network. By managing the switch through the router, the setup time is greatly reduced with the time consuming step of configuring VLANs for each port handled by the router instead.
This document demonstrates how to set up multiple subnets with tag-based VLAN on Vigor Router, and use Central Switch Management to configure the according VLAN setting on the switch.
Configuring router's Multiple Subnet and VLAN
1. Go to [LAN] > [VLAN], enable VLAN configuration and
a: Enable each LAN Subnet on different VLAN. Do not tick Enable in the VLAN Tag column for VLAN0
b: Select the LAN port members for each VLAN, remember that the port to which the VigorSwitch is going to connect should be a member of every VLAN.
c: Enable VLAN Tag, and set a unique VLAN ID for each VLAN
d: Click OK and restart the router to apply.
The above configuration implies that untagged traffic from all LAN ports will belong to LAN 1; and Port 1 and 3 allow tagged traffic, where traffic tagged “20” will belong to LAN2, traffic tagged “30” will belong to “LAN3”, and traffic tagged “40” will belong to LAN4.
2. Go to [LAN] > [General Setup] to check the IP address and status of each LAN Subnet. You may also change the IP and DHCP settings for each LAN Subnet from Details Page.
Configuring VigorSwitch's VLAN through Central Switch Management
3. Go to [Central Management] > [External Device] to enable “External Device Auto Discovery”. Then, connect a VigorSwitch to the Vigor Router's LAN Port. When the VigorSwitch is detected and shows “On Line”, it's ready for Central Switch Management.
4. Go to [Central Management] > [Switch] > [Profile], you will see the VigorSwitch in the New Switch List (a list of unknown switches), click Add New to put the switch into Profile List (switches that the router is managing):
5. The router will create a switch profile for the newly added switch in the Default Group. Click on the Index number to edit settings and view the switch configuration:
6. On the General tab, the Switch Name displayed in the Profile List, Comments, or login password can be changed:
7. Go to the VLAN tab to set up VLAN port members:
The upper table shows the Router's VLAN configuration for reference, the LAN Port marked in dark gray is the LAN port of the router that links to the switch.
The lower table shows the VLANs available with the router's VLAN settings. If VLANs are not enabled on the DrayTek router, only VLAN0 will be available.
Access port for client devices | |
Switch Uplink / Downlink port |
In this example, the router's LAN port 3 is a member for VLAN0, VLAN1, VLAN2, and VLAN3; therefore, there are four VLANs available for the switch's VLAN setup. The port that connects to the router will be marked gray and automatically selected to be a member of every VLAN to pass through the required VLAN tags.
Now change the tickboxes to match your port requirements, in this example the clients on switch's port 3-8 will belong to LAN 1, on port 9-16 will belong to LAN2, and on port 17-24 will belong to LAN3.
To change the VLAN tag that is untagged by the switch for one of the Uplink ports, click the drop-down box in the "Remove Tag (PVID)" to select it, otherwise leave it on the default of "0".
Click OK to save that change and wait for the router to reload the page, which indicates that it has saved the settings.
8. After choosing the port members, click “Send to Device” to write the settings into the switch. This will take a few seconds to apply the necessary changes.
If this fails, it will display an error message of "Post settings failed", in which case simply trying again will usually resolve the issue, otherwise reboot the switch to ensure it can be managed by the router.
Verifying the settings
9. After finishing the configuration, the ports of the switch will belong to different LAN subnets on the router.
Connect a computer to the switch on different ports and verify which LAN subnet it is part of by checking the IP address obtained.
First, we connect to switch's port 8. By using command “ipconfig”, we can see that the computer obtained an IP 192.168.2.10, which belongs to router's LAN2.
Next, connect to port 16, renew the IP address, and we'll obtain IP 192.168.3.10, which means we're in router's LAN3 subnet.
Finally, connect to the switch by port 24, and we'll get an IP address 192.168.4.10. which means we're in router's LAN4 subnet.
Thus we can verify that the VLAN settings are done without even logging into the switch.
How do you rate this article?
- First Published: 28/10/2016
- Last Updated: 22/04/2021