Damn Small Linux Forums
eth0 is showing two IP addresses no matter what I do to fix it! - Printable Version

+- Damn Small Linux Forums (https://damnsmalllinux.org/forums)
+-- Forum: Damn Small Linux Forum (https://damnsmalllinux.org/forums/forum-1.html)
+--- Forum: Help Section (https://damnsmalllinux.org/forums/forum-4.html)
+--- Thread: eth0 is showing two IP addresses no matter what I do to fix it! (/thread-152.html)



eth0 is showing two IP addresses no matter what I do to fix it! - xsilentmurmurx - 09-02-2024

Hello everyone! I am new to the forum and I am happy that DSL is back in action! Thank you John for resurrecting this awesome project!. 

That being said, I installed DSL on a Qemu/libvirt/kvm VM on Arch Linux and even though it installed correctly, no matter what I do, I cannot get the network to work properly.  When I do a ip addr show, it shows two IP addresses for the eth0 interface:  A 192.168.122.x address, and a 169.254.x.x address.  Also my /etc/resolv.conf file has no nameservers defined in it. I tried to reconfigure the interface using the Network interface tool in Control Center, and I configured the IP to be set by DHCP, but no matter how many times I restart the networking, using  ifdown eth0/ifup eth0, after a minute or so, the damn 169 address appears again and networking completely stops.  I even tried setting the IP as a static IP, but still, the 169 address shows up.  Any idea as to what might be the issue and how I can fix this permanently? or is this a misconfiguration in the base install of DSL?

Thank you and please let me know if you need any more information!


RE: eth0 is showing two IP addresses no matter what I do to fix it! - John - 09-05-2024

Hi Xsilentmurmurx,

I have to confess to not having any experience with libvirt. I have run DSL directly with qemu quite often and haven't run into this situation.

The empty /etc/resolv.conf file indicates that DNS is not being set up properly.

Did you try releasing and resetting dhcpclinet?

Try:
sudo dhclient -r
sudo dhclient

Then verify the IP address:
ip addr show eth0

I am guessing there is some type of mis-configuration between the libvirt settings and the defaults in DSL. Please post an update. I am also hoping that someone with libvirt experience comes in to help out.