OPNsense Forum

Archive => 24.1, 24.4 Legacy Series => Topic started by: unclez on July 07, 2024, 07:41:19 PM

Title: Cannot Assign 172.20.100.X to intf
Post by: unclez on July 07, 2024, 07:41:19 PM
Hello,

I am running OPNSense in a VM using KVM.
I configured 2 eth ports in PCI passthrough to the guest and on them I configured LAGG first and then vlans.

I am trying to assign an IP in the range 172.20.100.X to one of the VLAN tagged interface (as part of a LAGG as said) but I can't get it working.

I always get no IP in the web interface. While from the CLI I get an error:

# ifconfig vlan0.100 172.20.100.1/25
ifconfig: ioctl (SIOCAIFADDR): File exists

If I change the third octet of the network it works. Also I have other vlan interfaces getting the IP and working well.

So basically any network range works like a charm, but the specific subnet 172.20.100.X gives me the error.

I don't see any interface using this address... what am I doing wrong?

Title: Re: Cannot Assign 172.20.100.X to intf
Post by: unclez on July 08, 2024, 07:08:58 PM
Anybody any help?

I tried to rebuild the interface (deleting it and then assigning back again) but still that specific IP pool 172.20.100.X simply is not taken by the interface.

I am sure it is not used anywhere else in my configurations.

How is that possible? How can I Tshoot more?
Title: Re: Cannot Assign 172.20.100.X to intf
Post by: Patrick M. Hausen on July 08, 2024, 07:21:18 PM
What netmask are you trying to combine with that?

And post the output of "netstat -rn4", please.
Title: Re: Cannot Assign 172.20.100.X to intf
Post by: unclez on July 08, 2024, 07:30:43 PM
Quote from: Patrick M. Hausen on July 08, 2024, 07:21:18 PM
What netmask are you trying to combine with that?

And post the output of "netstat -rn4", please.

Hi Patrick,

thank you so much for that.
As soon as I finished to write I realized that I had an old static route for that same network, as well as a rule in the firewall (although it was disabled). As soon as I removed route and rule I managed to add the IP on the Intf

I had to think more.

But thanks for your input!