Hi all!
As I am still a beginner when it comes to networking I am attempting to play around and configure multiple VLANs utilizing my ubuntu isc-dhcp server that is connected to a managed TP-Link switch (TL-SG108E).
I have my DHCP server up and running but it does not seem like the created VLANs are working as I am unable to get a test device that is connected to a port that is configured for a VLAN (VLAN20) to work. When I set the device to use DHCP network settings it still gets assigned an IP Address in the old (pre VLAN/subnet) 192.168.0.x subnet/VLAN and not the correct subnet/VLAN that I configured for (10.0.0.x).
Currently playing around with just one VLAN (VLAN20) that I am trying to configure for 10.0.0.x subnet.
My current isc-dhcp configurations:
Code:
subnet 192.168.0.0 netmask 255.255.255.0 {range 192.168.0.1 192.168.0.253;
authoritative;
filename "grubx64.efi";
option routers 192.168.0.1;
option domain-name-servers 192.168.0.200, 192.168.0.201, 8.8.8.8, 8.8.4.4;
option domain-name "mwei.dns";
}
#VLAN20 (need a managed router to enable)
subnet 10.0.0.0 netmask 255.255.255.224 {
authoritative;
option routers 10.0.0.1;
option domain-name-servers 8.8.8.8, 8.8.4.4;
range 10.0.0.1 10.0.0.30;
}
/etc/default/isc-dhcp-server
Code:
INTERFACESv4="wlp2s0 enp0s31f6"
netplan configuration
Code:
network: version: 2
#renderer: networkd
ethernets:
enp0s31f6:
dhcp4: no
addresses: [ 192.168.0.200/24 ]
routes:
- to: default
via: 192.168.0.1
vlans:
vlan.20:
id: 20
link: enp0s31f6
addresses: [ 10.0.0.1/27 ]
Please advise. Did I misconfigure something?
Thanks,
Max
Bookmarks