Hi,
I didn’t consider myself too much of an amateur until not being able to connect my VLANs together using VyOS…
I’m looking to switch over from Untangle, I have a separate VLAN 50 for IoT devices. For testing I created a test VLAN 100, but double-checked with using VyOS in my non-tagged network.
So I have an IP in my normal network to access VyOS, the 100 VLAN is the testing zone where I have another VM on the same to checkout if DHCP / internet etc works, 50 is the existing IoT VLAN. The whole thing is a VM with PCI passthrough network card, so I’m pretty confident the switch is configured correctly as booting up an Untangle VM with the same card works fine.
My config:
ethernet eth1 {
address 192.168.1.200/24
duplex auto
hw-id 00:0e:b6:87:38:0d
smp-affinity auto
speed auto
vif 50 {
address 192.168.50.200/24
description "VLAN 50"
}
vif 100 {
address 192.168.100.1/24
description "VLAN TEST"
}
}
I didnt set up any firewall or routes or anything, my ip route output looks like this:
default via 192.168.9.1 dev eth0 proto static metric 20
192.168.1.0/24 dev eth1 proto kernel scope link src 192.168.1.200
192.168.9.0/24 dev eth0 proto kernel scope link src 192.168.9.3
192.168.50.0/24 dev eth1.50 proto kernel scope link src 192.168.50.200
192.168.100.0/24 dev eth1.100 proto kernel scope link src 192.168.100.1
The test VM gets an IP through the VyOS dhcp, can connect to the internet just fine, but CANNOT connect to anything on VLAN 50 (e.g. curl 192.168.50.12)
VyOS itself can just fine.
Now I’m probably missing something really obvious and I just love how much half-baked network knowledge I apparently have. Whats missing here?