[Hampshire] Ubuntu install on headless Raspberry Pi Static I…

トップ ページ

このメッセージに返信
著者: rm via Hampshire
日付:  
To: hampshire
CC: rm
題目: [Hampshire] Ubuntu install on headless Raspberry Pi Static IP address
Hi all

How do I set the static IP address of an Ubuntu (server 25.10)
machine?   Some googling tells me I need to edit dhcp.conf or netplan -
neither of which are there.

I'm trying to upgrade my cluster.   I've created a microSD image with
Ubuntu 25 on it and configured the image (before inserting the card into
the pi) to have the correct hostname and to enable SSH.   Trouble is - I
need it to have a static IP such that I can ssh into it "headless"

Previously, I've got one card 99% configured (all but hostname and ip
address), then cloned the card and used the gui to make the appropriate
changes.   Ideally (given the pi's done really like kvm switches in my
experience) I'd like to do this all headless.

I've mounted the card image on my PC (which also runs Ubuntu) so I can
see the card's /etc but, as I say, there's no dhcp.conf and /etc/netplan
is empty.

There must be a way to do this - anyone know the winning formula?


Cheers

R


--
Please post to: Hampshire@???
Manage subscription: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG website: http://www.hantslug.org.uk
--------------------------------------------------------------