Hi,
You would have to do something like the following.
In /etc/vm.conf you configure multiple switches:
switch "uplink_vlan800" {
interface veb800
}
switch "uplink_vlan880" {
interface veb880
For /etc/hostname.if you have to go through the config per VLAN.
The actual interface is:
# /etc/hostname.mcx0
up
For VLAN 800:
# /etc/hostname.vlan800
vnetid 800 parent mcx0
up
# /etc/hostname.vport800
inet <IPv4>
inet6 <IPv6>
up
# /etc/hostname.veb800
add vlan800
add vport800
up
And for VLAN 880:
# /etc/hostname.vlan880
vnetid 880 parent mcx0
up
# /etc/hostname.vport800
inet <IPv4>
inet6 <IPv6>
up
# /etc/hostname.veb880
add vlan880
add vport880
up
Hope this helps.
Mischa
On 2024-06-10 21:11, jrmu wrote:
> How can I configure vmm to use vlans for virtual machines? I saw
> openbsd.amsterdam * use this, but I am not sure how to replicate it.
>
> As I understand it, vmm creates a tap(4) interface for each virtual
> machine,
> and all tap interfaces are then placed inside the switch defined in
> vm.conf,
> which in my case is veb(4). To set up the virtual machines, would I
> want to
> create a vlan(4) device for each virtual machine, and have the machine
> use
> that? And then to add the vlan device onto the veb bridge?
>
> * https://openbsd.amsterdam/setup.html
No comments:
Post a Comment