Score:0

Is it possible to provide an IP Address after flashing a new PC with Ubuntu image

cn flag

I was wondering is it possible to provide an IP Address after flashing a new PC with an Ubuntu image? I'm flashing 3 raspberry pie for my K3S cluster and I was wondering if I can set a static IP address to my raspberry pie after I flash the SDCard from my laptop?

nl flag
Great advice re: rewording the question. Proper questions that show up on the main page and in searches are what can really make this forum magical.
Oren avatar
cn flag
@dennis I didn't get what you wrote, was it sarcasm?
user535733 avatar
cn flag
@Oren it was not sarcasm. That was a response to a deleted comment. The deleted comment was incorporated into an answer below.
Oren avatar
cn flag
Ohhh, in that case, please excuse my rudeness @de
nl flag
Glad that was made clear and correctly. Absolutely no sarcasm, noticing you appeared relatively new to posting, I just meant to point out that great questions help everyone for years to come especially if you consider how heavily the site relies on search indexing. Also that in the Stack communities often helpful suggestions go well beyond the actual answer Thanks @user535733
Score:3
cn flag

I think you are asking "How do I set my Netplan config on this newly-flashed SD Card before I insert the card into a Pi and boot it for the first time." If I've misunderstood, then please edit your Question to clarify.

  1. Use any File Manager to mount the SD Card and access the filesystem.

  2. Look for the /etc/netplan directory. Your network config is stored in there.

  3. Edit the .yaml file in that directory to assign your static IP address.

    See https://netplan.io/examples/ for how your .yaml file should look.

  4. Unmount the SD Card. Insert the SD Card into your Pi. Boot the Pi.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.