How To Setup A Static IP Address On Manjaro Linux
How To Setup A Static IP Address On Manjaro Linux
Software N/A
Other Privileged access to your Linux system as root or via the sudo command.
# – requires given linux commands to be executed with root privileges either directly as a
Conventions of sudo command
$ – requires given linux commands to be executed as a regular non-privileged user
The Manjaro download page lists quite a few GUI options, and the distro supports many
more. Depending on which GUI you’re using (XFCE, KDE, GNOME, etc), the instructions
for setting a static IP via GUI are going to vary a little. Since Manjaro’s first recommendation
is XFCE, we’ll cover the instructions for setting up a static IP in XFCE on Manjaro. The
instructions for other desktop environments should be similar.
1. First, right click on the network icon in the right side of the taskbar.
3. In the menu that opens up, you may see just one connection or multiple if your system
has more than one network interface. On the interface you’d like to configure a static
IP address for, left click to highlight it and then click the cogwheel to edit.
6. Now click on ‘Add’ to add a new static IP address to the interface. This will allow you
to type a static IP, subnet mask, and default gateway.
That’s all there is to it. If you’d like to verify the changes you’ve made, you can right click on
the network icon in your taskbar and select ‘Connection information’.
The Connection Information screen shows our newly configured static IP address
Static IP using command line
If you don’t shy away from cracking open a terminal, setting up a static IP from the command
line is even more of a breeze and can be done in just a few steps.
1. First, open a terminal and type the following command to see how your network
interface is currently configured. As you can see in the screenshot below, the name of
our network interface is enp0s3. We’ll need to know that for the next step, and yours
may be different, so be sure to get the right name for yours.
2. $ ip a
Check your current IP address and the name of the network interface
3. Since we’re configuring a static IP, we need to temporarily disable
Manjaro’s NetworkManager service in systemd so the changes will take effect when
we’re done. Type this command:
If you receive an error when restarting the network service, be sure to check your
configuration file for typos. Otherwise, the static IP address should now be configured. You
can check by typing the following command:
$ ip a