Answer the question
In order to leave comments, you need to log in
How to set different subnets for VLANs on D-Link DGS-1100-05?
There is a D-Link DGS-1100-05 with two VLANs by ports:
vlan1 - ports 1 (tagged), 2 (untagged)
vlan2 - ports 1 (tagged), 3 (untagged)
How can I set different subnets for these VLANs in this switch -am? There simply are no settings for this, although I found on the Internet that DLINKs can do this.
Let me explain the situation a little. Each VLAN is a registrar with a set of video cameras (ports 2 and 3). And 1 port is a gateway server on which it is planned to forward ports to each of the registrars to access them via the Internet.
Sample schema: hsto.org/files/a6b/d9f/2c7/a6bd9f2c74814370b58e908...
Answer the question
In order to leave comments, you need to log in
How does this router
It is necessary to raise two interface-wealans on the gateway, assign them IPs from the corresponding subnets, and then you can figure out how to release them to the Internet. Manually, it will be something like this (it is better to do it naturally using the system tools):
~$ sudo ip link add link eth0 name vlan10 type vlan id 10
~$ sudo ip addr add 192.168.10.1/24 dev vlan10
~$ sudo ip link add link eth0 name vlan20 type vlan id 20
~$ sudo ip addr add 192.168.20.1/24 dev vlan20
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question