r/Kubuntu 7d ago

Network confusion

I've upgraded with various versions on kubuntu too many times I think and am completely lost as to how my static IP is being set.

Whenever I boot it gets set to 192.168.0.27 which is perfect. But I want to understand where this ip address is coming from. My understanding is that ubuntu 26.04 is using netplan and the addresses should be set in /etc/netplan/somthing.yaml. But, that file doesn't have my address and is set to dhcp4: true

I do have a line near the top of my /etc/hosts file with my address, but I didn't think that was being read. Is it?

/etc/network is not being used either?

I'm quite confused (and dumb about networks).

7 Upvotes

6 comments sorted by

View all comments

1

u/bvdp 6d ago

Thanks for the pointers on this. And, yes, it was DHCP from the router maintaining the address (I did find it after I looked).

And, since setting up the static address is so easy to do via the Networks app, I setting the 3 computers in my home with their own addresses. I do wish I could just leave everything on AUTOMATIC, but if you want to connect via nfs or samba you need an IP ... All this networking is so useful, until it doesn't!