Hey all. I’m decently capable at the command line, but for the life of me I can’t get a functional netplan to apply. Does anyone have any advice on getting a static IP functioning on the latest Ubuntu server, or maybe some resource on making a netplan that works?

2 points

Good choice : Install ifupdown or whatever. YAML it’s a terrible file to edit by commandline.

Bad choice : use chatgpt to generate your network configuration

permalink
report
reply
1 point

Netplan is pretty simple for what it is. All you need is the interface, address, and route, maybe DNS if you don’t want to set that up another way. Because it’s yaml, spacing matters, so watch that. You can use netplan try which will automatically revert if you don’t give it any input for a certain amount of time.

network:
  renderer: networkd
  ethernets:
    ens33:
      addresses:
        - 192.168.1.247/24
      nameservers:
        addresses: [4.2.2.2, 8.8.8.8]
      routes:
        - to: default
          via: 192.168.1.1
  version: 2

https://netplan.readthedocs.io/en/stable/index.html

permalink
report
reply

Self-Hosted Main

!main@selfhosted.forum

Create post

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

For Example

  • Service: Dropbox - Alternative: Nextcloud
  • Service: Google Reader - Alternative: Tiny Tiny RSS
  • Service: Blogger - Alternative: WordPress

We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.

Useful Lists

Community stats

  • 1

    Monthly active users

  • 1.8K

    Posts

  • 11K

    Comments

Community moderators