VLANs issue and VLANs thinking

pestevao

New Member
May 8, 2024
2
0
1
Hello,

I'm having a strange issue.
I have defined a first vlan for managment and everything is fine.
The issue appears when I define a second vlan. No matter what the managment changes to the second defined vlan. I can create more vlans but it keeps the access on the second one. I have the ip of the first vlan on every place that it should be (namely /etc/hosts, /etc/issue, etc).
Only deleting all the vlans it returns to the ip of the first defined one... what the???

The second question in more a organization or functional one.
I will have multiple vlans for vms use.
I was thinking that it may be usufull defining multiple vlan on the host, only with the tag but no ip. So I can attach the vlans to the vms on give the ips there.
Will it work? Like this the vlan at the host will tag the traffice, but the IP will be attached to the vms configs for easier reading and less prune to erros (in defining the vlan tag on each vm).

Thank you.