Cannot Assign 172.20.100.X to intf

Started by unclez, July 07, 2024, 07:41:19 PM

Previous topic - Next topic
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?


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?

What netmask are you trying to combine with that?

And post the output of "netstat -rn4", please.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

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!