<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ubuntu on MarkJacobsen.net</title><link>https://markjacobsen.net/tags/ubuntu/</link><description>Recent content in Ubuntu on MarkJacobsen.net</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Mon, 21 Jan 2019 23:00:56 +0000</lastBuildDate><atom:link href="https://markjacobsen.net/tags/ubuntu/index.xml" rel="self" type="application/rss+xml"/><item><title>Configure a Static IP in Ubuntu 18.04</title><link>https://markjacobsen.net/2019/01/configure-a-static-ip-in-ubuntu-18-04/</link><pubDate>Mon, 21 Jan 2019 23:00:56 +0000</pubDate><guid>https://markjacobsen.net/2019/01/configure-a-static-ip-in-ubuntu-18-04/</guid><description>&lt;p&gt;As with all things Linux there’s a million ways to do things, and every brilliant release comes up with a new way to do the same old things in a “better” way. Can you tell I’m be sarcastic yet? Good.&lt;/p&gt;
&lt;p&gt;Anyway, after spending over an hour trying to get a freakin static IP on my desktop box I thought I’d share in case it saved anyone hours of their life.&lt;/p&gt;
&lt;p&gt;My simple goal was to provide a static IP. Nothing more. Nothing less. Well, the “better” way of doing it now appears to be with “netplan”, and unless you enjoy banging your head against the wall, just create/edit this file and replace with the network interface (enp3s1), IP (192.168.20.55) and gateway (192.168.20.1) of your choice (this config appears to use the DNS servers from the router w/ DHCP turned on). Oh yeah, and don’t bother with the GUI based configuration tool, because apparently they’re not connected at all, and using this will force the config from this file (you’ve been warned and saved hours)&lt;/p&gt;
&lt;pre class="wp-block-code"&gt;&lt;code&gt;sudo nano /etc/netplan/01-networkd.yaml

# this is the actual file content
network:
 version: 2
 renderer: networkd
 ethernets:
 enp3s1:
 dhcp: no
 addresses: [192.168.20.55/24]
 gateway4: 192.168.20.1&lt;/code&gt;&lt;/pre&gt;</description></item></channel></rss>