I have a fresh install of openSUSE Tumbleweed installed on my box
. During the install process I said to install KVM Hypervisor
and it defauled to a bridged connection (which is what I want).
My box
is connected to a port on my switch that allows VLAN 10
and VLAN 20
with VLAN 20
being the default. I cannot change the settings of my switch/firewall/network.
Now I am trying to figure out the openSUSE way to:
- Configure the host to be
VLAN 10
- Configure a VM to be
VLAN 20
I’m going through all the screens in the settings but I cannot find anything.
Use ifcfg- to configure it conveniently in the manner you like. Create /etc/sysconfig/network/ifcfg-eth0
with something like this -
VLAN_ID="20"
VLAN_NAME="guest"
/etc/sysconfig/network/ifcfg-eth0.20
BOOTPROTO='dhcp'
STARTMODE='auto'
VLAN_ID='20'
And
/etc/sysconfig/network/ifcfg-eth0.10
BOOTPROTO='static'
IPADDR='192.168.10.2'
NETMASK='255.255.255.0'
STARTMODE='auto'
VLAN_ID='10'
Lastly, restart the network.
Double-check your guest and host interfaces; this is only a suggestion; it might or might not work perfectly.
I like openvswitch for what you describe. I’ve not used it on OpenSUSE yet, so I can’t really frame it in the context that you requested.
1 Like