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.
- 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
184.108.40.206. 220.127.116.11 .
Now, disconnect and reconnect to the network. You will see that your IP address as as desired. You can check it with
ip a .
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.