

How to configure Static IP Address on Linux Mint
But sometimes, you need a static IP address, and it is required to maintain the same IP address for an extended period. For example, if you configure your system to make it a server, static IP is necessary for communication purposes. You need to make sure that your computer’s IP address never changes if you want people to download files from it. Also, static IP is necessary if you want to access any external shared device such as a printer.
A static IP address can be configured in three ways:
- Configuration using GUI
- Configuration using a terminal
- Configuration through modifying the network configuration file
Configuration of Static IP using GUI on Linux Mint
Configuring static IP on your Linux mint OS by this method is quite simple, and for that, you need to select the network settings from the menu and click on the network icon as shown below.

After going into the network settings, you will see the basic details of your currently established network and the IP address assigned by the DHCP network. So you can change that to a static ip address by clicking on the settings tab available on the bottom left.

Now you need to change the “automatic (DHCP)” address to” Manual”.

After selecting the manual option, it will ask you to enter the new network settings that you desire, as displayed below. You need to input the values and then click on the apply button to implement those settings. The IP address 192.168.114.100 would be the static IP, also set network mask and gateway.

Now you need to go back to the main window of the network settings to see newly applied settings.

Configuration of Static IP using terminal on Linux Mint
You can also configure static IP using command-line interface (CLI), and for that, you need to type the command:
This will open a new window with various options, and then you need to select the first one, “Edit a Connection” to apply the new settings that can be seen below.

The next step is to change “IPv4 CONFIGURATION” from automatic to Manual and then you need to provide the necessary details to make this work.

We have applied the same network values that we have used in our first scenario

Now save these settings, go back to the main window, and select the second option below.

The first option is used to change your network settings, and the second option of “Activate the connection” is used to apply those settings. You need to open it, click on the “Deactivate” button, and then “Activate” it again which will restart your network so that the new settings can be applied.

So if you want to verify whether the new network settings have been implemented, you can do that by typing the below-mentioned command in the terminal.

You can see from the above image that the newly applied IP address is currently active and working that you can see on the “ens33” field, which is a network interface where the information of Ipv4 resides.
Configuration of Static IP through network configuration file on Linux Mint
You can also set static IP by doing some modifications on the network configuration file and for that, you need to open this file with an editor of your choice:
From the above command, we are using a nano editor, and after opening this file, you need to write a few lines described below, and after that, you need to save the file.

Now you should be able to access your newly applied network settings and verify this by typing again.

You can also verify if the new route settings have been implemented or not by typing.

Your Linux Mint operating system is configured to DHCP by default, which means that your machine’s IP address might change automatically to a different accessible IP address. However, there are times when you require a constant IP address, such as when communicating with a server. So, this is where static IP comes into play; with it, your IP address will not change automatically and will remain the same until it is altered by someone else or reverted to DHCP.
About the author

Taimoor Mohsin
Hi there! I'm an avid writer who loves to help others in finding solutions by writing high-quality content about technology and gaming. In my spare time, I enjoy reading books and watching movies.

@2023 - All Right Reserved.
How to configure static IP address on Linux Mint

B y default, your system relies on DHCP, a dynamic host control protocol whose purpose is to assign you an IP address automatically. As a result, each device is assigned a unique number that enables it to communicate with other networks using DHCP, and as an outcome, your device’s IP address may change from time to time.
However, there are situations when a static IP address is required, and it is essential to maintain a similar IP address for an extended time. For instance, if you set up your system as a server, static IP addresses are required for communication. If you want users to download files from your computer, you must ensure that your machine’s IP address never changes. Additionally, a static IP address is required if you wish to connect to any external shared device, such as a printer.
Configuring static IP address on Linux Mint
Three methods are available for configuring a static IP address:
- Configuration via a graphical user interface
- Configuration through the use of a terminal
- Configuration via modifying a network configuration file
Configuring static IP address using GUI
Static IP configuration on your Linux mint OS is pretty straightforward using this technique. First, pick network settings from the menu and click on the network icon, as seen below.

After navigating to the network settings, you’ll notice the basic information about your currently created network and the IP address issued via DHCP. Thus, by clicking on the settings tab on the bottom, you can modify that to a static IP address.

Static IP configuration
Now you must change the address from “automatic (DHCP)” to “Manual.”

Automatic DHCP
After choosing the manual option, you will be prompted to enter the desired network settings, as illustrated below. You must enter the values and click the apply button afterward to save the changes. The static IP address would be 192.168.114.100; the gateway and network mask would be configured.

IPv4 Manual configuration
You must return to the network settings’ main window to view the freshly implemented settings.

Network configuration
Configuring static IP address using the terminal
You can configure static IP addresses via the command-line interface (CLI). To do so, execute the following command:
This will open up a new window with various options; you must click the first one, “Edit a Connection,” to implement the new settings shown below.

Edit a connection
The following step is to change the “IPv4 CONFIGURATION” setting from automatic to manual and enter the essential info to make it work.

We used the identical network variables as in our first example.

Edit connection
Now, save these changes, return to the main screen, and choose the second option from the list below.

Activate a connection
The first option allows you to modify your network settings, while the second option, “Activate the connection,” applies those modifications. You must open it, click the “Deactivate” button, and click “Activate” again to restart your network and apply the new settings.

Therefore, if you want to verify that the updated network parameters have been applied, you can run the following command in the terminal.

Verify network settings
As you can see in the above screenshot, the freshly assigned IP address is currently live and functional, as indicated by the “ens33” field, a network interface containing IPv4 information.
Configuring static IP address on Linux Mint via a network configuration file
You can also set static IP addresses by making changes to the network configuration file; to do so, open the file with your preferred editor:
We’re using a nano editor in the above command, and after loading this file, you’ll need to enter a few lines specified below and then save the file.

Nano add commands
You should now be able to view your newly configured network settings, which you can confirm by typing this command again:

Configuration file
Additionally, you can verify whether or not the new route parameters have been implemented by typing:
- How to create a bootable Linux Mint Live USB drive
- How to set up a VPN on Linux Mint
- How to install and configure pCloud on Linux Mint

By default, your Linux Mint OS is configured to use DHCP, which means that the IP address assigned to your machine may change dynamically to a different available IP address. However, there are situations when a static IP address is required, such as connecting with a server. This is where static IP comes into play; it prevents your IP address from changing frequently and will remain the same unless it is changed by another party or restored to DHCP. I hope this article was helpful. If yes, please leave a remark below. Thanks for reading.
You may also like
How to back up and restore your linux..., how to set up a vpn on linux..., installing and using snap packages on linux mint, customizing the linux mint desktop environment, 10 must-know features of linux mint os, change themes on linux mint: 3 easy approaches, leave a comment cancel reply.
Save my name, email, and website in this browser for the next time I comment.

MORE FROM US
- Ubuntu (251)
- Downloads (245)
- Beginner's Guide (130)
- Learn Linux (130)
- Featured (126)
- Terminal Tuts (112)
- Fedora (87)
- Server (72)
- Linux Mint (72)
- Privacy Policy
- Terms of Use
- Information
- GDPR Policy
©2016-2023 FOSS LINUX
A PART OF VIBRANT LEAF MEDIA COMPANY
ALL RIGHTS RESERVED.
“Linux” is the registered trademark by Linus Torvalds in the U.S. and other countries.
Adblock Detected
Linux Mint Forums
Welcome to the Linux Mint forums!
Skip to content
- Unanswered topics
- Active topics
- Board index Main Edition Support Networking
Set static IP address in Mint 12. [SOLVED]
Post by stchman » Sun May 20, 2012 3:28 pm
Code: Select all
Re: Set static IP address in Mint 12.
Post by remoulder » Sun May 20, 2012 3:46 pm

Post by xenopeek » Sun May 20, 2012 3:59 pm

Post by altair4 » Sun May 20, 2012 5:49 pm
Setting Up a Home Network with Linux Mint


1. Gather/Setup the Internal IP addresses on all the computers that you will be networking.
On the system tray, right click on the Network Manager icon and select “Connection Information”. Depending on your connection type, the network manager icon might display an icon with a pair of linked computer (for cable connection) or an icon with the wireless status (for wireless connection). This window will show you all of the network information you will need for the device, including its IP address.

Setup a static IP or reserve addresses
Since most PC’s and routers use DHCP by default to get internal IP addresses automatically, there is a chance that the IP address for a device may change if it is rebooted or if the lease is renewed. This can cause the network share to disconnect. There are two ways to resolve this:
- In your router settings, you can set a reserved IP address for a specific physical address (MAC address)
- You can create a static IP for the network interface.
I use static IP’s for my devices and will show that procedure in this article. If you want to reserve IP addresses in the router, you will need to check your particular router’s settings. Each router is different but should have a setting to reserve a specific IP address for a specific MAC address.
To set up a static IP in Linux Mint, right-click on the network manager icon in the system tray and select “Edit Connections”. Choose the “Wired” tab if the PC is connected via network cable or “Wireless” if connected by wireless. Highlight the correct interface or wireless network and click “Edit”.

In the “Edit” window, select the IPv4 tab. Click the drop-down and select “manual”. Then edit the IP address, NetMask, and Gateway information. You need to make sure the IP address for each device is unique. I normally just use the current IP that was given via DHCP and make sure it becomes the static IP. You can use any numbering scheme you like as long as they are unique. After all the information is entered, click Apply and from that moment forward that device will always have the IP address that you manually typed in.

2. Install the SSH Server on each device.
SSH is secure and easy to use. The SSH client software is installed by default, but the server is not. If you want to be able to connect to a specific device, that device must have SSH Server installed. If you never want to connect to a specific device you can skip this step. You’ll be able to connect from that device to another device in that case (client to server).
To install OpenSSH Server, open your terminal and type:
Type in your sudo password and the SSH server will install. That’s all there is to it!
3. Configure the Firewall settings on each Device
You will need to set the Firewall settings on each device to allow traffic to come in from the other devices. Go to the “Menu -> All Applications -> Firewall Configuration” or at a command line, type:
This will bring up the GUI frontend to the ufw firewall. Click “Add” and click the Advanced tab. In the “From” box, type in the IP address of the device that will be connecting to this device, and in the “To” box, type in the address of this device (the device whose firewall settings you are now configuring). Click “Add” and you will see the rule in the main window. In this example, IP 192.168.1.104/tcp is the computer that I am setting the firewall configuration on and the rule is allowing traffic from the device at 192.168.1.109.

Add rules for any other devices that will need to connect/share with this device to ensure the firewall will accept traffic and file sharing.

4. Connect to Each Device/Desktop/Laptop.
After SSH is installed and all firewall settings are correctly configured, it’s the moment of truth; now we will create connections via SSH to the device that we want to share with.
Let’s say that the device on 192.168.1.109 is a laptop and we’re connecting it to 192.168.1.104 which is a desktop.
- On the laptop, open the Nautilus file manager.
- Click on “File -> Connect to Server”.
- In the “service type” drop-down, select SSH .
- Type in the IP Address of the device you wish to connect to, in this example: 192.168.1.104. Then click Connect. If it finds to device correctly, you will see a login window. Type in your username and password for the device you are connecting to and select “Remember forever”.

5. Linux Mint will then mount a folder directory to the computer at the IP address you named and a File Directory window will open allowing you to browse the networked computer’s folders and files.
5. Create a Folder Shortcut.
Once you have access to the remote/networked computer, you can create a shortcut folder in the left sidebar of the File Manager window. Simply drag a folder into the left sidebar (I normally drag the “Home” folder from the remote computer). You can then rename the folder to something meaningful, such as “Desktop_Home”. Now anytime you click on this folder, it will connect to the networked computer and you can access its directory. Since you saved the password, you will not need to login again, unless the password is changed in the future.

6. Rinse and Repeat
Now you can simply repeat the process on the other devices and create the shortcut folder on each one. Whenever you want to share across device, you can connect via the shared folder shortcut (providing the other device is on, of course!).
Though it involves a few steps, I found this is one of the easier ways to access folders and files amongst my desktops and laptops at home that are all running Linux Mint. What other ways do you use to create a home network?
Image credit: By Lars P.
Chuck Romano is a business and technology professional with over 10 years experience in document imaging and 11 years in computer repair. Chuck provides results driven expertise in fields such as Healthcare IT, document imaging/workflow systems, marketing, and management. He is a Linux enthusiast and evangelist.
Our latest tutorials delivered straight to your inbox
Popular Posts

How to AirDrop Files Between Your Apple Devices

How to Collaborate on Projects in Messages on iPhone and Mac

5 Best Software to Sync RGB on Your PC

How to Turn Your PC Into a Media Server With Plex

How to Set Up a Local Web Server (Windows, Mac, Linux)

Turn Any PC Into a Retro Gaming Machine With Batocera Linux

How to Cast Your Android Screen onto Your Linux Desktop

5 Things to Do to Improve Your WSL Experience

How to Use Nearby Sharing to Share Files on Windows

How to Build a New PC For Linux
Affiliate Disclosure: Make Tech Easier may earn commission on products purchased through our links, which supports the work we do for our readers.

How-tos and tutorials for sys admins
5 Ways to Find Your Private IP Address in Linux Mint 20

Private IP addresses are used in a system for communication inside a local network. Knowing the IP address of your system can be useful in many situations. You may require it for configuring certain services on your network or to allow someone remote access to your system. Similarly, you may also require it for troubleshooting purposes.
In this post, we are going to show you how to find the IP address in the Linux Mint system. Previously, we have discussed how to find the IP address in Ubuntu , Debian , and CentOS .
Note: The commands mentioned here have been tested in Linux Mint 20 OS.
Method # 1: The “ip addr” command
The “ip addr” command is the most common way for quickly finding the IP address of a system. All you need is to open the Terminal application by using the Ctrl+Alt+T shortcut and then type ip addr in the prompt that appears.
The above command will list all the network interfaces along with their details which include interface status, IP address, MTU size, etc. For the private IP address, look for the line that reads “inet”. The number in front of it is your private IP address. If you see the following output, our private IP address is 192.168.72.170/24.

Method # 2: The “ifconfig” command
Similar to “ip addr”, the “ifconfig” command is another most common command used to view IP related information. To use this command to find the IP address, just type “ifconfig” in the shell prompt:
This command will list all the network interfaces along with their details which include interface status, IP address, MTU size, etc. For the private IP address, look for the line that reads “inet”. The number in front of it is your private IP address. If you see the following output, our private IP address is 192.168.72.170 with netmask 255.255.255.0.

Method # 3: The “hostname” command
If you just want to view the IP address of your system with no other information, use the hostname command as follows:
This command just prints out the IP address on the Terminal.
Method # 4: Using “ip route” command
The “ip route” command can also be used to find the IP address of a system. In order to find the IP address of a system, use the command as follows:
This command will print out the IP address of your system along with other network details.

Method # 5: The “nmcli” command
There is another command “nmcli” which can also be used to find the IP address of a system. In order to use this command to find the private IP address of a system, just type the following command in the Terminal:

Using any of the methods explained above, you can easily and quickly find the IP address of your system. If you know of other ways to find the private IP address in Linux Mint, we would love to know in the comments below!
If you are interested in finding the public IP address, visit our post on How to Find Your Public IP address .

Ummara Mushtaq is a Telecommunication engineer with two years of experience in server support and networking. She writes technical articles based on Linux system administration for LinuxWays.
- ← How to Install PostgreSQL in CentOS 8
- How to Create and Run a Shell Script in Debian 10 →
Similar Posts

How to Convert a Directory to a Partition in Linux

Route Command in Linux

How to Install Snap on Linux Mint 20

IMAGES
VIDEO
COMMENTS
After going into the network settings, you will see the basic details of your currently established network and the IP address assigned by the DHCP network. So
After navigating to the network settings, you'll notice the basic information about your currently created network and the IP address issued via
Help support the channel by buying me coffee: https://buymeacoff.ee/roottechIn this video we will learn how to configure static ip in Linux
In this video I will be demonstrating how to assign Static IP Address in LInux Mint 18.2 Sonya.
Let's use network-manager. There sould be an icon on your desktop which you can right-click for a menu that includes "Edit connections." Click
It all depends on what you have. At any rate, the procedure is to assign a LAN IP address (and perhaps a port) to each of your devices, then "
From the menu, System Tools > System Settings > Network. Click Configure, and set the settings you need on the IPv4 tab. The settings are then
To set up a static IP in Linux Mint, right-click on the network manager icon in the system tray and select “Edit Connections”. Choose the “Wired
To change your IP address on Linux, use the “ifconfig” command followed by the name of your network interface and the new IP address to be
The “ip addr” command is the most common way for quickly finding the IP address of a system. All you need is to open the Terminal application by using the Ctrl+