OPNsense Forum

English Forums => General Discussion => Topic started by: pankaj on July 31, 2022, 11:27:00 PM

Title: Moving a VLAN to another interface [solved]
Post by: pankaj on July 31, 2022, 11:27:00 PM
Hi,

I've a VLAN for IoTs that have about 70 static IPs assigned for different IoTs across the house. And I need to move this VLAN to another interface on the FW box.

Is there a way to download/upload the static IP assignment under DHCP? In worst case, I will have to type or copy/paste all the assignments manually but was curious if there is an easier/reliable way out of this.

Thanks.
Title: Re: Moving a VLAN to another interface
Post by: Demusman on August 01, 2022, 01:34:28 AM
Never tried this so don't know if it'll work but try editing the vlan and changing the interface itself.
Would be the easiest way if this is allowed.
Title: Re: Moving a VLAN to another interface
Post by: pankaj on August 01, 2022, 07:20:29 PM
Interesting idea, I tried a test VLAN and moved it across to another interface and it seems to work.

Next steps would be to move the actual ones on the home LAN and keeping fingers crossed!!
Title: Re: Moving a VLAN to another interface [Solved]
Post by: pankaj on August 15, 2022, 07:08:03 AM
It did not work on the actual VLANs as I had to delete the assignment which pretty much toasted the static IP assignments. Since mine is a home network, I save a copy of IP assignments and had to do some copy & paste and now have OPNsense with VLANs up and running!
Title: Re: Moving a VLAN to another interface [solved]
Post by: Vetal on August 24, 2022, 06:35:48 PM
Quote from: pankaj on July 31, 2022, 11:27:00 PM

Is there a way to download/upload the static IP assignment under DHCP? In worst case, I will have to type or copy/paste all the assignments manually but was curious if there is an easier/reliable way out of this.

Thanks.

Didn't try it personally, but https://github.com/gxben/terraform-provider-opnsense might help you