Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
23.1 Legacy Series
»
changing interfaces
« previous
next »
Print
Pages: [
1
]
Author
Topic: changing interfaces (Read 822 times)
150d
Newbie
Posts: 2
Karma: 0
changing interfaces
«
on:
May 08, 2023, 12:37:42 pm »
Hi,
I'm using OPNsense as a VM on a Proxmox host. A single NIC is "passed through" to the VM as a PCI device. OPNsense then uses a number of VLANs on this connection and is routing between them.
This works great, but it also makes the VM "non-migrateable" because VMs using PCI devices directly can't be moved to another Proxmox host on-the-fly. The alternative would be to give up on the pass-through device and instead provide a Linux Bridge to the VM. This could easily be mirrored on a second host if the need should arise.
But that would be a totally new device to OPNsense and I expect that it would completly screw up its interface mapping. Is there a way to manage this (swap out A for B in some INI file) or would I need to do the whole setup from scratch?
Regards
Logged
benyamin
Full Member
Posts: 224
Karma: 13
Re: changing interfaces
«
Reply #1 on:
May 08, 2023, 01:40:03 pm »
Probably better to use
SDNs
in Proxmox and then add virtio interfaces for each network to your OPNsense VM. SDNs are configured in the Datacenter object and are replicated to all nodes in the cluster, so you can then set each NIC to a Vnet ID and migrate in a hardware agnostic manner.
You would then need to migrate your vtnet0.vlanID interfaces to separate vtnetX NICs. There's quite a few posts on here for that, iirc... Essentially you use
Interfaces: Assignments
in the GUI, made much easier if you used the native VLAN for your LAN (management) interface.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
23.1 Legacy Series
»
changing interfaces