V
V
Valery2014-11-13 08:47:59
network hardware
Valery, 2014-11-13 08:47:59

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

2 answer(s)
A
Antony Ryabov, 2014-11-13
@tonymadbrain

How does this router

Excuse me, but D-Link DGS-1100-05 is the same switch.
You then need to configure everything on it.
On registrars / cameras, ip is configured statically or dynamically?

A
Alexander Karabanov, 2014-11-13
@karabanov

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

Where eth0 is the interface connected to the first DES-1100-5
I do not recommend using vlan1 , since it is mainly intended for service purposes, and unpredictable behavior should be expected in combination with delinking.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question