RTT #04 — Setting Static IP Address on Ubuntu 18.04LTS Desktop with NetworkManager

I am no network expert. In fact, it might just be my worse subject at school. But rest assured, I’m working on that (or will be working on it). I’m used to setting static IP addresses using netplan with networkd on virtual machines running on bridge mode, but it just so happens that for my most recent use case, I can’t run whatever I’m planning to run from a VM. It must be on the host directly. Ubuntu 18.04LTS Desktop on an Alienware 15 runs NetworkManager by default and not networkd.

I panicked. Luckily, I have my good friend CJY to help me out — and the solution was pretty basic you might laugh at me how obvious it is. But as I’ve said, I was a pretty lousy student.

The Solution

  1. Open up “Network Settings”.

2. Click on the gear icon next to the network you are connected to.

3. On the “IPv4” tab, set “Addresses” to your desired configurations, and “DNS” to 8.8.8.8. 8.8.4.4 .

Now, disconnect and reconnect to the network. You will see that your IP address as as desired. You can check it with ip a .

Conclusion

There you have it — a super simple way to set static IP using NetworkManager.

Hi! Welcome to my third RTT (“Random Tech Tips”) — a series (updated sporadically, when some things come up and I feel like I would totally need that stuff for future reference) for various mini-guides in IT (and other computer things like coding, data science, etc.) that teaches you how to achieve certain things in a day-to-day of a constantly learning IT person. More than anyone the content of this series will be useful to me, who, given the nature of my day-job, will inevitably go through these sort of things repeatedly in the course of my career. But I hope it will help you achieve that certain thing too if that’s what you’re here for.

Lady in tech. Hobbyist. I post about the randomest things.