

How to Configure Static IP Address on Fedora
A static IP address is an Internet Protocol (IP) address that remains the same even when your computer is connected to Wi-Fi. You may need a static IP address for several reasons, such as if you have multiple devices on your home network and you want to make sure they can use their respective IP addresses to communicate. If you’re using your computer as a server, it may also be necessary so that other devices can find it at all times. Configuring a static IP address on Fedora is easy and you will learn how in this article.
We will discuss 2 methods for configuring static IP addresses on Fedora using GUI and terminal.
Method 1: Configuring Static IPv4 Address on Fedora with GUI
The Fedora Desktop editions provide a graphical user interface for managing the system configuration. You can quickly configure the network interfaces using GUI. Follow the below steps to configure a static IP address on Fedora Desktop systems.
Open Settings:
- Log in to the Fedora desktop system with a privileged account.
- Search and open system Settings on your system

Open Network Settings:
- Select the Network tab in the left sidebar
- You will see the Wired section, Click the gear icon as shown below screenshot

IPv4 Settings:
- You will see the Details tab, here you can find the current system IP details
- Go to the IPv4 section

Set a new IP address:
- In the IPv4 Method select “ Manual ” option.
- In the Addresses section, set the new IP address, Netmask, and the Gateway.
- In the DNS section, set the IP address of your DNS server. In the below screenshot, I have used 8.8.8.8 (Google public DNS server) and 192.168.1.2 (local DNS server)
- Click the Apply button at top-right corner

Disable and Enable Networking:
Now, disable the networking and enable it again to apply the changes immediately.

Method 2: Configuring Static IPv4 Address on Fedora with CLI
The fedora provides nmcli command-line tool for managing NetworkManager. In this method, we will help you to configure the static IP address on Fedora system via command line.

- Connection Name: ‘Wired connection 1’
- Interface Name: eth0
- IP Address & Netmask: 192.168.1.210/24
- Gateway Address: 192.168.1.2
- If required, you can also update the DNS server settings. sudo nmcli con mod 'Wired connection 1' ipv4.dns 8.8.8.8,8.8.4.4
- Down and Up the network connection. sudo nmcli con down 'Wired connection 1' && sudo nmcli con up 'Wired connection 1'

How to Check IP Address on Fedora
Press CTRL + ALT + T to launch the terminal on your Fedora system. Now type the following IP command to view all IP addresses configured on your system.

This tutorial describes 2 methods for configuring static IP addresses on the Fedora system using a graphical user interface and a command line interface.
Related Posts

TCP/IP vs. OSI Model: A Comparative Study

What is Bootstrap Protocol (BOOTP)?
How to change the default screen resolution in ubuntu: a step-by-step guide, leave a reply cancel reply.
Save my name, email, and website in this browser for the next time I comment.
Type above and press Enter to search. Press Esc to cancel.
How to Configure Static IP Address on Fedora Linux
Hi techies, as we know Fedora is one of popular open source Linux based operating system. Fedora Linux can be used as workstation, Server, and CoreOS.
In this guide, we learn how to manually configure static ip address on Fedora Linux (Fedora 36 Workstation). A static IP address is an IP address that stays the same over time and remain persistent across the reboot. There are two different ways to configure static IP.
- nmcli utility (Command Line)
- Graphically
Configure Static IP address on Fedora 36 Using nmcli
The nmcli is a command line utility and used to configure a static IP address on Fedora Linux. To use this command, you must first open a terminal window (Ctrl+Alt+T). Then, you will need to type in the following commands:
This will show you a list of all the connections that are currently configured on your system.

In my case, my Fedora system is connected to modem and got the IP from DHCP server. Now to make the IP address static and persistent, run following nmcli commands.
Following commands will modify the existing connection name ‘ Wired Connection 1 ’
Run beneath command to add static ip address along with the gateway ip.
To add DNS IP address, run
To make above changes into the effect, disable and enable the connection,
Verify the ip address using ip command ,
Output of above commands would like below,

In case, you don’t want to use the existing connection and want to create new connection for configuring the static IP address, run following commands one after the another,
Assign Static IP Address on Fedora 36 via Graphically
Note: For this method to work, make sure desktop environment is installed on your fedora system.
Login to the desktop environment, go to Settings and then choose Network

Click on gearbox icon ,
In following window, Choose IPv4 ,

Choose ‘ Manual ’ to assign static ip address, gateway and DNS IP.
Specify details as below:
- IP address: 192.168.1.189
- Netmask: 255.255.255.0
- Gateway IP: 192.168.1.1
- DNS IP: 192.168.1.1
Note: Replace the IP details as per your environment.

Click on Apply .
Now disable and enable the interface to make above changes into the effect.
Close the window and open the terminal and run ip command to verify the ip address.

Prefect, above commands output confirm that static IP address has been configured successfully on our Fedora Linux.
That’s all from this guide. In case you have found it informative, so please do share it among your technical friends.
1 thought on “How to Configure Static IP Address on Fedora Linux”
super, thanks of lot.
Leave a Comment Cancel reply
Special Offer
Deploy your Cloud Server now and get $100 in Free Credits!
- 5 Best practices for configuring and managing a Load Balancer
- 5 Most Effective Ways to Avoid Cloud Bill Shocks.
- 6 Benefits of Deploying a Load Balancer on your server.
- 6 Cloud Computing Myths, Busted!
- 7 Reasons Why Cloud Infrastructure is Important for Startups
- Advantages and Challenges of Developing Cloud-Native Applications
- Advantages and Challenges of Implementing a Hybrid Cloud Solution
- Advantages and challenges of implementing edge computing in your organization
- Advantages and Challenges of Using AI and Machine Learning in the Cloud
- Advantages and Challenges of Using Cloud-Based Analytics Tools
- Advantages and Challenges of Using Kubernetes and Containers in the Cloud
- Benefits of Cloud Computing for Small Businesses
- Benefits of using Cloud Servers compared to Physical Servers
- Best Cloud Platform for Your Business
- Best Practices for Implementing Serverless Computing in Your Organization
- Best Practices for Managing and Securing Edge Computing Devices
- Best VPS Hosting Providers in 2023
- Can Artificial Intelligence Replace Teachers? The Future of Education with AI
- Challenges of Cloud Server Compliance
- Cloud or In-House Server: Which is best for your business?
- Collaborating DevOps and SRE for Efficient Cloud Migration
- Compliance in the Cloud: Understanding Your Responsibilities
- Customer-Centric Cloud: How Human Support Enhances User Experience
- Deploying and Managing a Cluster on Utho Kubernetes Engine (UKE)
- Edge Computing: A User-Friendly Explanation
- Ethics and Regulation of AI: The Next Frontier for Artificial Intelligence
- Green Cloud Computing – Sustainability in Cloud Usage
- How Cloud Firewall Can Help You to Avoid Costly Data Breaches.
- How SSL Certificates Keep You and Your Business Secure from Cyber Attacks.
- How to Choose a Best Cloud Hosting Provider
- How to Choose the Right Kubernetes Solution for Your Business
- How to Choose the Right Multi-Cloud Management Tool for Your Business
- How to keep your Business Documents Safe from Online Threats
- Impact of Cloud Server Energy Consumption
- Impact of Cloud Server Location on Latency
- Instructions for Migrating to a Utho Cloud Environment
- Introduction to AI and Machine Learning in the Cloud: What Are They and How Do They Work?
- Introduction to Big Data Analytics in the Cloud: What are the Benefits?
- Multi-Cloud Strategy: Everything You Need to Know
- Pros and Cons of Using Serverless Computing in Your Business
- Public VS Private VS Hybrid Cloud: Which is Right for Your Business?
- SaaS, PaaS, and IaaS: A Comparison of Business Models
- serverless computing: What is it and how does it work?
- The Dark Side of Cloud Servers: Risks and Threats
- The Future of Cloud Server Management
- The Future of Kubernetes: What to Expect in 2023 ?
- The Impact of Cloud Server Downtime on Business Operations
- The Importance of Hosting Your Website on a Cloud Server
- The Pros and Cons of Multi-Cloud Server strategy
- The Role of Cloud Servers in Edge Computing
- Top 05 Cloud Security Threats in 2023 and Proven Strategies to Mitigate Them
- Top 10 Factors to Consider When Choosing a Cloud Server Provider
- Unleashing the Power of Artificial Intelligence: What AI Can Do with Utho Cloud
- Unlock Machine Learning Potential with CUDA Cores
- VPS Hosting: A Beginner’s Guide to Virtual Private Servers
- What is a Bare Metal Server? An In-Depth Overview
- What is a Cloud Server ?
- What is a Cloud Service Provider?
- What is a Hybrid Cloud and why is it Important?
- What is Cloud-Native Application Development and Why is it Important?
- What is Kubernetes and Why is it important?
- What is VPN and how can it benefit your business?
- When Was Artificial Intelligence Invented?
- Why Artificial Intelligence is Important
- Why Firewalls Are Important For Your Business || Benefits of Using a Firewall
- Why Ransomware Attacks Are Rising and How You Can Protect Your Business.
- Will Artificial Intelligence Replace Humans?
- Show all Docs ( 52 ) Collapse Docs
- How To Configure BIND as a Private Network DNS Server on CentOS 7
- How to Install and Configure PowerDNS on centos 7 using MariaDB.
- 2 Methods for Re-Running Last Executed Commands in Linux
- 4 Effective Ways to Determine the Name of a Plugged USB Device in Linux
- An introduction to the Linux alternatives command
- Archiving and Compressing files with GNU Tar and GNU Zip
- Change SSH Default Port 22 to Custom Port
- Cheat sheet for 15 nmcli commands in Linux (RHEL/CentOS)
- Command-line internet speed tests in CentOS 7
- convert rwx permissions to octal format in Linux
- Create a Zabbix action to deliver an alert message to the user
- Deploy Django Applications Using Nginx and uWSGI on Ubuntu 14.04
- Determine All IP Addresses of Live Hosts Connected to the Network in Linux
- Disable reboot using Ctrl-Alt-Del Keys in RHEL / CentOS 7/8
- Disable SSH root login in Centos 7
- Download Online Resources from the Command Line with wget
- Explanation of iftop command
- Explanation of less, more and most command in Linux
- Explore Metabase data using MySQL
- Find multiple Ways to User Account Info and Login Details in Linux
- For Application Data Storage on Fedora 14, Use MongoDB
- Getting Started with SELinux
- How do I find my Apache version in Plesk
- How do we install MySQL Workbench on Ubuntu 18.04?
- How to access CentOS terminal by browser: Shellinabox
- How to access IBM WAS admin console
- How to access Linux server using SSH in Windows, Linux and Mac OS.
- How to access Ubuntu terminal by browser: Shellinabox
- How to add a swap file in Linux
- How to Add a User and Grant Root Privileges on CentOS 7
- How To Add a User and Grant Root Privileges on Ubuntu 18.04
- How to Add a User to Sudoers in Ubuntu 18.04
- How to add FTP account in plesk
- How To ADD OR DELETE DOMAINS AND SUBDOMAIN IN PLESK
- How to add or remove a User from a Linux Group
- How To Add User to Sudoers or Sudo Group in CentOS 7
- How to Allow Remote Connections to MySQL in centos
- How to Block and unblock Ip in CSF-WHM/Cpanel
- How to Build Brotli From Source on CentOS 7
- How to Build Brotli From Source on Debian 9
- How to Build Brotli From Source on Fedora
- How to Build Brotli From Source on Ubuntu 20.04 LTS
- How to change apache2 web folder in Ubuntu
- How to change date and time in Linux
- How to Change Default Port of Apache On RHEL/CentOS 7
- How to change mysql port number in centOS 7
- How to change SSH port when SELinux policy is enabled
- How to check and analyze packets by tcpdump command
- How to Check Disk Performance (IOPS and Latency) in Linux?
- How to check Disk Speed (Read/Write) HDD, SSD Performance in CentOS 7
- How to check, disable and enable PHP modules.
- How to Compress a.bz2 File and How to Uncompress It
- How to configure an external SMTP server in Plesk
- How To Configure SFTP Server In Debian
- How to configure SFTP server on Debian 12
- How to Connect Node.js Application with MongoDB on CentOS
- How To Create a New User and Grant Permissions in MySQL
- How to create an email account in Plesk And set email forwarding
- How to Create Email Accounts in cPanel
- How to Create Hard and Symbolic Links
- How To Create Temporary and Permanent Redirects with Apache on Ubuntu
- How to Create, Encrypt, and Decrypt Random Passwords in Linux
- How to enable RDP in Ubuntu OS (Tasksel)
- How to Execute a Command with a Timeout in Linux
- How to Extract and Download Tar Files with a Single Command
- How to Find and Sort Files in Linux Based on Modification Date and Time
- How to fix "Command not found" error in CentOS
- How to host a domain on centos 7
- How to host node.js application on Plesk
- How To Import and Export Databases in MySQL or MariaDB
- How to increase and decrease the LVM size
- How to Install (Linux, Apache, MariaDB, PHP) LAMP Stack on CentOS 7
- How To Install a PHP Version in WHM
- How to install aaPanel on Centos 7 by one click
- How to install aaPanel on Debian by one click
- How to install aaPanel on Fedora by one click
- How to install aaPanel on Ubuntu by one click
- How to Install Anaconda on centos 7
- How to Install Anaconda on Debian
- How to Install Anaconda on Fedora
- How to Install Anaconda on Ubuntu 20.04 LTS
- How To Install and Configure pgAdmin 4 on Ubuntu 22.04
- How to install and configure Redis on Ubuntu 22.04
- How To Install and Manage Supervisor
- How to Install and Use AIDE on RHEL/CentOS 7/8
- How to Install and Use Apache Cassandra on Ubuntu 20.04 LTS
- How to install and use ChatGPT in Linux
- How to install Apache on CentOS 7
- How to install Atom Text Editor on Debian 10
- How to install Atom Text Editor on Debian 12
- How to install Atom Text Editor on Ubuntu 22.04
- How to install Certbot on AlmaLinux 8
- How to install Certbot on AlmaLinux 9
- How to install Certbot on CentOS 7
- How to install Certbot on Fedora
- How to Install ClipGrab on Ubuntu 20.04 LTS to Download YouTube Videos
- How to install Cockpit on Debian
- How to install Cockpit on Fedora Server
- How to install Cockpit on Ubuntu server
- How to Install Cockpit Web Console in CentOS 7.7
- How to install Composer on Almalinux 8
- How to install Composer on CentOS server
- How to install Composer on Debian servers
- How to install Composer on Fedora
- How to install Composer on Ubuntu 20.04
- How to install CSF in cPanel
- How to install CWP in Centos 7
- How to Install CyberPanel on CentOS 7
- How to install Django on Debian server
- How to install Django on RockyLinux 8
- How to Install Django on Ubuntu 22.04
- How to install Docker on AlmaLinux 8
- How To Install Docker on Centos 7
- How To Install Docker on Debian
- How To Install Docker on Fedora
- How to install Docker on Fedora
- How To Install Docker on Ubuntu 20.04
- How To Install Docker on Ubuntu 22.04
- How to install Drupal on CentOS server
- How to Install Drupal on Debian
- How to install Drupal on Fedora
- How to Install Drupal on Ubuntu server
- How to Install Elasticsearch on CentOS 7
- How to install Elinks on AlmaLinux
- How to install Elinks on CentOS
- How to install Elinks on Debian
- How to install Elinks on Fedora
- How to install Elinks on Ubuntu
- How to install Flatpak on Debian
- How to install Flatpak on Debian 12
- How to install Flatpak on Fedora 35
- How to install Flutter on Debian
- How to install Flutter on RockyLinux 8
- How to install Flutter on Ubuntu 20.04 LTS (Focal Fossa)
- How to Install FTP on CentOS 7 and access server via Filezilla Client
- How to install Gawk on CentOS
- How to install Gawk on Debian 10
- How to install Gawk on Debian 12
- How to install Gawk on Debian 9
- How to Install Gawk on Ubuntu 20.04
- How to install Gawk on Ubuntu 22.04
- How to install Git on AlmaLinux 8
- How to install Git on CentOS 7
- How to install Git on Debian 10
- How to install Git on Debian 12
- How To Install Git on Fedora
- How to install Git on Fedora
- How to Install Git on Ubuntu 20.04
- How to install Git on Ubuntu 22.04
- How to install GitLab on AlmaLinux 8
- How to install GitLab on CentOS 7
- How to install GitLab on Debian 10
- How to install GitLab on Debian 11
- How to install GitLab on Debian 12
- How to install GitLab on Ubuntu 22.04
- How to install GNOME Desktop (GUI) on CentOS 7
- How to install GO on Alma Linux
- How to install Go on CentOS
- How to install Go on Debian 10
- How to install Go on Debian 12
- How to install GO on Fedora
- How to install GO on Rocky Linux
- How to install Go on Ubuntu 22.04
- How to install Gogs on Debian
- How to install Gogs on Debian 12
- How to install Gogs on Ubuntu 20.04
- How to install Gogs on Ubuntu 22.04
- How to install Google authenticator on Centos
- How to install Gradle on AlmaLinux 8
- How to install Gradle on CentOS 7
- How to install Gradle on Debian 10
- How to install Gradle on Debian 12
- How to install Gradle on Debian 9
- How to install Gradle on Fedora
- How to install Gradle on Ubuntu 20.04
- How to install Grafana On Almalinux 8
- How To Install Grafana on Centos 7
- How To Install Grafana on Fedora 35/34/33/32/31
- How to Install Grafana on Ubuntu 20.04
- How to install Hastebin on Debian 10
- How to Install Hastebin on Ubuntu 20.04
- How to Install HTMLDoc on Centos 7
- How to Install HTMLDoc on Debian 10
- How to install HTMLDoc on Debian 12
- How to Install HTMLDoc on Debian 9
- How to Install HTMLDoc on Fedora
- How to Install HTMLDoc on Ubuntu 20.04
- How to install IBM Installation Manager in Linux
- How to install Java on Almalinux 8
- How To Install Java on CentOS server
- How To Install Java on Fedora server
- How to install Jenkins on CentOS 7
- How to install Jenkins on Debian 10
- How to install Jenkins on Fedora server
- How to install Jenkins on Ubuntu 20.04
- How to Install Jshon on Ubuntu 20.04
- How to Install KDE Desktop(GUI) on CentOS 7
- How to Install KubeSphere on Ubuntu 22.04
- How to install LAMP on Ubuntu 18.10
- How to install Laravel Application on Plesk server
- How to Install Latest MySQL 5.7 on CentOS 7
- How to install latest versions of PHP on CentOS
- How to install LEMP on ubuntu 18.04
- How to install LEMP on Ubuntu 22.04
- How to install LEMP stack on centOS 7
- How to install Lighttpd, MariaDB and PHP on Ubuntu 20.04
- How to install MailCatcher On Ubuntu 22.04
- HOW TO INSTALL MARIADB 10.3 ON CENTOS 7
- How to Install MariaDB 10.3 on Ubuntu 20.04
- How To Install MariaDB 10.7 on CentOS 7
- How to Install MariaDB 10.7 on Fedora
- How to install MariaDB 11 on Debian 10
- How to install MariaDB 11 on Debian 9
- How to install MariaDB 11 on Ubuntu 22.04
- How To Install MariaDB on Debian 10
- How To Install MariaDB on Debian 11
- How To Install MariaDB On Ubuntu 18.04
- How To Install MariaDB on Ubuntu 22.04
- How to install Maven on Debian
- How to install Maven on Ubuntu
- How to install Minikube on CentOS 7 and 8
- How to install Minikube on Debian
- How to install Minikube on Fedora server
- How to Install Minikube on Ubuntu server
- How to install MongoDB on AlmaLinux 8
- How to Install MongoDB on CentOS
- How to Install MongoDB on Debian
- How to Install MongoDB on Fedora 36/35/34
- How to install mongodb on Ubuntu 18.10
- How to Install MongoDB on Ubuntu 20.04
- How to install Multicraft on Ubuntu 20.04
- How to Install MySQL on Ubuntu 20.04
- How to install MySQL Relational Databases on Fedora 12
- How to Install Ncurses Library on Ubuntu 20.04
- How to Install Neofetch on Ubuntu 20.04 LTS
- How to Install netstat on Ubuntu 20.04 LTS
- How to install NGINX Web Server on Debian 10
- How to install NGINX Web Server on Debian 12
- How to Install Node.js and npm on Ubuntu 20.04
- How To Install Node.js on CentOS 8
- How To Install Node.js on Ubuntu 20.04
- How to Install Ntopng on Debian
- How to Install Ntopng on Fedora
- How to Install Ntopng on Ubuntu 20.04
- How to install OwnCloud on CentOS
- How to install OwnCloud on Debian server
- How to install Owncloud on RHEL 8
- How to install OwnCloud on Ubuntu server
- How to Install PHP 7.4 in CentOS 7
- How to install PHP 7.4 on AlmaLinux 8
- How To Install PHP 7.4 on Debian 10
- How to install PHP 7.4 on Debian 12
- How to install PHP 7.4 on Fedora 34
- How To Install PHP 7.4 on Fedora 36/35/34/33/32/31
- How to install PHP 7.4 on Ubuntu 20.04
- How to install PHP 8 on AlmaLinux 8
- How to Install PHP 8 on Centos 7
- How to Install PHP 8 on Debian 10
- How to Install PHP 8 on Debian 12
- How to Install PHP 8 on Debian 9
- How to install PHP 8 on Fedora 38
- How to Install PHP 8 on Ubuntu 20.04
- How to Install PHP 8 on Ubuntu 22.04
- How To Install PHP 8.0 on Fedora 32
- How To Install PHP 8.0 on Fedora 33
- How To Install PHP 8.0 on Fedora 34
- How To Install PHP 8.0 on Fedora 35
- How To Install PHP 8.0 on Fedora 36
- How to install PHP 8.1 on Ubuntu 22.04
- How to install PHP 8.2 on Ubuntu 22.04
- How to Install PHP in CentOS 7
- How to install PHP on CentOS 7
- How to install PHP on Ubuntu 18.04
- How to install phpMyAdmin on CentOS
- How to install phpMyAdmin on Linux
- How to Install Podman on Ubuntu 20.04 LTS
- HOW TO INSTALL POSTGRES DATABASE IN CENTOS 7
- How to Install PostgreSQL 15 on Ubuntu 22.04
- How to install Postman on Centos 7
- How to install Postman on Debian
- How to install Postman on Debian 12
- How to install Postman on Fedora
- How to install Postman on Ubuntu 20.04
- How to install Python on Ubuntu 22.04
- How to install R on Ubuntu 22.04
- How to install Red5 Server on Ubuntu 22.04
- How to install Redis on CentOS
- How to install Redis on Debian
- How to install Redis on Fedora
- How to install Redis on Ubuntu
- How to install Rkhunter on Ubuntu 22.04
- How to install Shellinabox on Debian server
- How to install Shellinabox on Fedora
- How to install Snap on AlmaLinux
- How to install SNAP on Debian 10
- How to install Snap on Fedora
- How to install Snap on RockyLinux
- How to Install Spack on Ubuntu 20.04
- How to install squid proxy on Ubuntu server
- How to Install Squid Proxy Server on CentOS
- How to install SSL on CentOS-7.3 with httpd server
- How to install SSL on Centos-7.3 with Nginx server
- How to install SSL on Ubuntu with Apache2
- How to install SSL through Cpanel .
- How to Install Streamlit on Ubuntu 20.04
- How to install Streamlit on Ubuntu 22.04
- How to install tcpping on AlmaLinux
- How to install tcpping on CentOS
- How to install tcpping on Debian
- How to install tcpping on Fedora
- How to install tcpping on Ubuntu
- How To Install the Latest MySQL on Debian 10
- How to Install the OpenGL Library on Ubuntu 20.04
- How to Install TinyCP on Debian
- How to Install TinyCP on Debian 12
- How to Install TinyCP on Ubuntu 20.04
- How to Install TinyCP on Ubuntu 22.04
- How to install Tomcat 10 on Ubuntu server
- How to Install Vagrant on Ubuntu 20.04 LTS
- How to install Vagrant on Ubuntu 22.04
- How to Install Varnish Cache with Apache on CentOS 7
- How to install Visual Studio Code on Debian 10
- How to install Visual Studio Code on Ubuntu 22.04
- How to install VnStat Network Monitoring on CentOS 7
- How to install Webmin on AlmaLinux 8
- How to install Webmin on Centos 7
- How to install Webmin on Debian
- How to install Webmin on Debian 12
- How to install Webmin on Fedora
- How to install Webmin on Ubuntu 20.04
- How to Install Webuzo
- How to Install Webuzo on Debian
- How to Install Webuzo on Fedora
- How to Install Webuzo v3 on Ubuntu 20.04
- How to Install Wekan on Debian 10
- How to Install Wekan on Debian 12
- How to Install Wekan on Ubuntu 20.04
- How to install Wine on Alma Linux
- How to install Wine on RockyLinux 8
- How to Install Wine on Ubuntu 20.04
- How to Install wmclock on Ubuntu 20.04
- How to install Wordpress with LEMP on CentOS server
- How to Install WordPress with LEMP on Ubuntu
- How to Install Xrdp Server (Remote Desktop) on Ubuntu 20.04
- How to Install Xrdp Server on Ubuntu 22.04
- How to install Zabbix 4.4 in CentOS 7
- How To Install Zabbix Agent On Centos 7
- How to install Zimbra on Ubuntu 20.04 LTS
- How to Locate Files That Have SUID and SGID Permissions
- How to Make a Large File in Linux
- How to Make a Linux User Change Their Password Upon Login?
- How To Migrate a MySQL Database Between Two Servers
- How to migrate from CentOS 8 to Arch Linux 8.7
- How to Mount Disk in Linux
- How To Move a PostgreSQL Data Directory to a New Location on Ubuntu 22.04
- How To Partition and Format Storage Devices in Linux
- How to prevent a user from login in Linux
- How to Prevent File and Directories from Being Deleted, Even by Root
- How to Protect your Web Sites by using Username and password in Apache on CentOS.
- How to Protect your Web Sites by using Username and password in Apache on Ubuntu.
- How to Real-Time Monitor TCP and UDP Ports
- How to Recognize Active Directories Using Shell Variables and Characters
- How to remove FTP account in plesk
- How to reset forgotten root password in centos 7/8
- How to reset forgotten root password in Debian
- How to reset forgotten root Password in Fedora 34.
- How to reset forgotten root password in ubuntu 16/18
- How to reset the MySQL root password in CentOS 7
- How To Reset Your MySQL or MariaDB Root Password on Ubuntu 18.04
- How to run different websites with different versions of PHP
- How to Save a Command Output to a File in Linux
- How to Schedule an Activity at a Specific Time or at a Time in the Future Using the 'at' Command
- How to schedule your task using crontab
- How to send an E-mail from CentOS 7
- How to Set Manual or static IP Address on CentOS
- How to Set Manual or static IP Address on Debian server
How to Set Manual or static IP Address on Fedora
- How to Set Manual or static IP Address on Ubuntu server
- How To Set or Change Timezone on Ubuntu 20.04
- How to set up a node.js application with apache on CentOS7
- How to Set Up SSH Keys on Ubuntu 20.04
- How to Setup and Configure FirewallD on CentOS 7
- How to Setup Flatpak on Ubuntu 20.04
- HOW TO SETUP LOAD BALANCER FOR APPLICATIONS RUNNING ON CUSTOM PORT
- How to Setup NFS server on CentOS
- How to setup Rsyslog server on Ubuntu 22.04
- How to Setup SFTP User Account on Fedora
- How to Setup SFTP User Account on Ubuntu 20.04
- How to Setup SFTP-only User Account on CentOS 7
- How to setup SSH Tunneling or port forwarding in Linux
- How to solve "Cannot connect to CWP Admin Panel"
- How to solve Zimbra error "message does not meet IPv6 sending guidelines regarding PTR"
- How to Start, Stop, and Restart MySQL Server on centos 7
- How to Switch (su) to a Different User Account Without a Password
- How to Test Internet Speed on Almalinux 8
- How to test internet speed on Debian 10
- How to test internet speed on Debian 12
- How to Test Internet Speed on Fedora
- How to Test Internet Speed on Ubuntu 20.04
- How to Troubleshoot with nmap in centos
- How to Update or Upgrade CentOS 7.1, 7.2, 7.3, 7.4, 7.5, or 7.6 to CentOS 7.7
- How to upgrade mysql 5.7 to 8.0 in Ubuntu 16.04
- How to use 'chage' command in Linux
- How to use 'ps' command in Linux
- How to Use ‘at’ Command to Schedule a Task in Linux
- How to Use Iperf to Test Network Performance
- How to use IPTABLES firewall in Linux
- How to use lsyncd to sync directories on Centos
- How to use MTR command in Linux
- How To Use Nmap to Scan for Open Ports
- How To Use ps, kill, and nice to Manage Processes in Linux
- How To Use Rsync to Sync Local and Remote Directories
- How to Use the SMTP Server of Google
- How to Verify Your Application is Listening on the Correct Port
- How To View and Update the Linux PATH Environment Variable
- How to View Colored Man Page Documentation in Linux
- How-to-set-up-a-node-js-application with apache on-centos-7
- Install Apache 2 Web Server in CentOS 5
- Install IBM HTTP server in Linux
- Install IBM Websphere Application Server ( IBM WAS) in Linux
- Install multiple version of PHP on Ubuntu server
- Install Plesk on CentOS 7
- Install SSL on Ubuntu server using Nginx
- Install WHM/Cpanel in Centos 7
- INSTALLATION AND CONFIGURATION OF APACHE TOMCAT 9 ON CENTOS 7
- Installing MongoDB on CentOS 7
- Installing PostgreSQL on Ubuntu 20.04: Step-by-Step Instructions
- Introduction to rsync
- Learning the Linux Alias Command and How to Use It
- Linux port test commands(RedHat 7, CentOS 7, and Ubuntu 18.04)
- Linux Top Command
- Linux: How to Execute a Command with a Time Limit or Timeout
- Logical volume manager in linux (LVM) Guide for beginners
- MariaDB installation on CentOS 8
- Methods for Disabling the Root Account in Linux
- Migrate your Google Cloud Platform to Microhost Cloud
- Modify File Permissions with chmod
- Most Common Network Port Numbers for Linux
- Multiple User Account Creation in Linux
- Mysql 1030 got error 28 from storage engine
- MySQL Relational Databases on Ubuntu 12.04
- Nginx and PHP-FastCGI in Arch Linux
- NGINX Installation in CentOS 7
- NTP Server Configuration
- Python 3 Installation and Programming Environment Configuration on an Ubuntu 22.04
- Recover forgotten password of admin user in Jenkins
- Set a date and time for each command in Bash History.
- Setup Software RAID on Linux server
- Speed Test in Ubuntu server
- SSH and SCP command in Linux
- SSH Logins with Banner Messages (Issue.net)
- SSH Logins with Banner Messages (MOTD File)
- Structure Of Apache Configuration
- The 'cat' and 'tac' Commands in Linux: A Step-by-Step Guide with Examples
- Update DNS records For A Domain Using Plesk
- Update PHP 5.4 version to PHP 7.4
- Upgrading WordPress Manually on Linux sever
- URLs Redirect with Apache Web Server
- User Group and File permission in Linux
- Using Fedora 20 MySQL Relational Databases
- Using mysqldump to Backup MySQL Databases
- Using the Carat () Symbol, you can easily correct a previous command's typo.
- Using the Terminal in Linux to Examine the Website's Loading Time
- Using the yum command, install Google Chrome on CentOS 7.
- VirtualHost creation in Tomcat 10/9/8/7
- What are Runlevels in Linux and its understanding
- What is Hugo and How to use it
- What is IAAS, PAAS and SAAS
- What is IOSTAT command and how to use it
- Why less is Faster Than more Command for Effective File Navigation
- Show all Docs ( 457 ) Collapse Docs
- How to create user and give limited permission to the host in Zabbix
- Deploy a new server with snapshot
- DNS Management
- How to access a server through password-less authentication
- How to add additional storage in the Microhost Cloud Server
- How to check Bandwidth consumption in Microhost panel
- How to create Microhost cloud server
- How to deploy a cloud server with custom ISO
- How to destroy MicroHost cloud server
- How to enable weekly backup in Microhost Cloud server
- How to install Wine on RHEL 8
- How to rebuild Microhost Cloud Server
- How to resize (upgrade/downgrade) cloud server.
- How to take snapshot of a Microhost Cloud Server
- Microhost Cloud Firewall
- Steps to Activate Microhost VPN
- Show all Docs ( 1 ) Collapse Docs
Web Servers
- How to Configure NGINX
- How to install NGINX in Ubuntu 18.04 LTS
- Install and configure Nginx and PHP-FastCGI in Ubuntu 16.04
- NGINX : Enable TLS or HTTPS Connections
- NGINX: Installation and Basic Setup
- Use NGINX as a Reverse Proxy
- What is NGINX?
- Apache Virtual Hosts setup on CentOS 7
- Basics Information of Apache Configuration
- CHANGE AND UPDATE PASSWORD OF CPANEL ACCOUNT
- How to add A record in Plesk
- How to add CNAME record in Plesk
- How to add components in Plesk
- How to add MX record in Plesk
- How to add TXT record in Plesk
- How to assign permissions to Files and Folders in Plesk
- How to change NGINX port in Linux
- How to change PHP parameter manually through Plesk
- How to change the PHP version on Plesk
- How to change your Plesk password
- How to check current Disk Space in Plesk
- How to Configure ModSecurity in Apache
- How to configure MX record in MAILENABLE
- How to create a backup in Plesk
- How to create a MySQL/MariaDB Database and Database User in Plesk
- How to create a user role in Plesk
- How To Create an Account in CPanel with WHM
- How To create and connect an FTP Account in cPanel
- How to delete an Email account in Plesk
- How to do Server-wide blacklist in Plesk
- How to do Server-wide whitelist in Plesk
- How to enable IonCube Loader in Plesk
- How to Export and Import Database Dumps in Plesk
- How to install Joomla in Plesk
- How to Install NGINX Web Server on Ubuntu 22.04 LTS
- How to install WordPress in Plesk
- How to manage user roles in Plesk
- How to migrate accounts from CWP to CWP
- How to modify Database user privileges in Plesk
- How to remove components in Plesk
- How to Set Up the .htaccess File in Apache
- How to setup scheduled tasks in Plesk
- How to Solve "The server requested authentication method unknown to the client" in phpMyAdmin
- How to Start, Stop or Restart System Services in Plesk
- Installation of LAMP Stack on Ubuntu 16
- Managing Resources using Apache mod_alias
- Rewrite URLs using mod_rewrite and Apache
- Rule-based Access Control for Apache
- Tuning Of Your Apache Server
- Show all Docs ( 43 ) Collapse Docs
- How to add SSL biniding in windows server
- How to allocate unallocated disk space in Windows Server
- How to allow ICMPv4(PING) in Windows Firewall using PowerShell
- How to allow multiple RDP sessions for the single user in Windows Server
- How to Block or Allow TCP/IP Port in Windows Firewall
- How to Boot Windows Server into Safe Mode
- How to change default shell from cmd to PowerShell in Windows Server
- How to change RDP port in Windows Server
- How to change RDP port via PowerShell in Windows server
- How to configure a DNS Reverse Lookup Zone in Windows Server 2019
- How to Configure FTP Server on Windows Server 2019
- How to configure IP manually on Windows Server
- How to connect SFTP using FileZilla
- How to connect to a Windows server using Remote Desktop Protocol (RDP)
- How to Connect Virtual Server Remotely Using RDP in Windows OS
- How to Create Mailbox in MailEnable
- How to create RDP user in Windows Server 2012
- How to host a domain on Windows Server 2019
- How to Initialize and bring a disk online in Window Server
- How to Install & Configure Printer Tool in Windows Server
- How to install Active Directory Domain Service on Windows Server
- How to install Apache Tomcat 9 on Windows Server
- How to install IIS via Powershell in Windows Server
- How to install Java Development kit on Windows Server
- HOW TO INSTALL MAILENABLE ON WINDOWS SERVER
- How to install MsSQL Express Edition 2019 on Windows Server
- How to Install MultiPoint Services in Windows Server 2016
- How to install MySQL on Windows Server 2019
- HOW TO INSTALL ONE SSL CERTIFICATE ON TWO DIFFERENT WINDOWS SERVER
- How to Install OpenSSH on Windows Server
- How to install Python 3.7 on Windows Server 2012 R2, 2016, 2019, 2022 via PowerShell
- How to install SSL in Apache Tomcat in Windows Server
- How to Install SSL on Windows Server
- How to install Telnet Client on a server using Windows PowerShell
- How to Install Windows RDP CAL license in windows servers
- How to install Wordpress on IIS in WIndows Server 2019
- How to install XAMPP on Windows Server 2016/2019/2022
- How to make partition from existing drive Windows Server
- HOW TO MIGRATE THE ZIMBRA EMAILS ON PLESK PANEL USING EMAIL MIGRATOR
- How to mount NFS persistently in Windows Server
- How to mount Virtio ISO
- How To open a port in Windows Server Firewall
- How to reset a lost Administrator password in Windows Server
- How to setup Disk Driver while deploying Windows Server with custom ISO
- How to setup Network Driver while deploying Windows Server with custom ISO
- How to setup NTP Client for time synchronization using PowerShell
- How to setup NTP Server for time synchronization using Powershell
- How to Setup OpenVPN Connect in Windows Server
- How to setup SSH Server on Windows Server via PowerShell
- How to share a folder over network in Windows Servers
- How to solve internal server error while connecting to RDP
- How to Turn off Internet Explorer Enhanced Security Configuration on Windows Server
- How to upgrade TLS 1.1 to TLS 1.2 in window server
- How to upgrade Windows Server 2012R2 to Windows Server 2016
- How to use telnet, netstat and wireshark in Windows
- Install Plesk on Windows Server 2012
- Install SQL Server 2012 Express Edition in Windows Server 2012
- Installation and Configuration of IIS Web Server on Windows Server
- Mssql database backup restore script
- Windows Server Backup feature (2012R2, 2016, 2019)
- Show all Docs ( 47 ) Collapse Docs

In this article we will discuss How to Set Manual or static IP Address on Fedora,
There will come a moment in your career as a Linux system administrator when you will be tasked with the responsibility of configuring networking on your machine. On desktop computers, you are able to utilise dynamic IP addresses; but, in order to set up a server architecture, you will need to configure a static IP address (at least in most cases).
The following information on Internet Protocol version 4 (IPv4) will be used so that we may accomplish the objectives of this tutorial.
To configure static IP address, open the /etc/sysconfig/network-scripts/ifcfg-eth0
Note : The filename ifcfg-eth may varies from CentOS to Redhat linux. In CentOS it is available named as ifcfg-eth0, whereas it will be available only as eth0. Also, the file name will be depend on your device name available on your Linux machines such as ens0 or so on.
DEVICE="eth0" HWADDR="00:08:a2:0a:ba:b8" BOOTPROTO=dhcp ONBOOT=yes UUID="41171a6f-bce1-44de-8a6e-cf5e782f8bd6" IPV6INIT=yes TYPE=Ethernet NAME="eth0"
Now make changes like shown below, please do not forget to make changes according to your need
DEVICE=eth0 HWADDR=00:16:3e:65:de:88 BOOTPROTO= static ONBOOT=yes NM_CONTROLLED=no IPADDR= 192.168.1.10 NETMASK= 255.255.255.0 GATEWAY= 192.168.1.1 DNS1= 8.8.8.8 DNS2= 4.4.44
Please note that, You only need to change the following points.
The rest of the entries should be left unchanged.
Next edit resolve.conf to change or update the DNS nameserver
nameserver 8.8.8.8 nameserver 8.8.4.4
Once you have made your changes restart the networking manager service with:
or you can just down and up the network interface using the below command
Now to check the configured ip on your machine, run the below command

I hope you are now fully able to set a manual or static IP address on Fedora
- manual ip on centos
- Manual ip on fedora
- static ip on centos
- static ip on fedora
- Download Fedora 34
- Install Fedora 34
- (01) Add User Accounts
- (02) FireWall and SELinux
- (03) Network Settings
- (04) Configure Services
- (05) Update System
- (06) Use Moduler Repository
- (07) Use Web Admin Console
- (08) Sudo Settings
- NTP Server
- (01) Configure NTP Server
- (02) Configure NTP Client
- SSH Server
- (01) Password Authentication
- (02) SSH File Transfer (Fedora)
- (03) SSH File Transfer (Windows)
- (04) SSH Key-Pair Authentication
- (05) SFTP only + Chroot
- (06) Use SSH-Agent
- DNS Server (BIND)
- (01) Configure for Internal Network
- (02) Configure for External Network
- (03) Configure Zone Files
- (04) Verify Resolution
- (05) Use View Statement
- (06) Set Alias (CNAME)
- (07) Configure Chroot Environment
- (08) Configure Secondary Server
- DHCP Server
- (01) Configure DHCP Server
- (02) Configure DHCP Client
- (01) Configure NFS Server
- (02) Configure NFS Client
- (03) NFS 4 ACL Tool
- iSCSI
- (01) Configure iSCSI Target
- (02) Configure iSCSI Target (tgt)
- (03) Configure iSCSI Initiator
- GlusterFS 9
- (01) Install GlusterFS
- (02) Distributed Configuration
- (03) GlusterFS Client
- (04) GlusterFS + NFS-Ganesha
- (05) GlusterFS + SMB
- (06) Add Nodes
- (07) Remove Nodes
- (08) Replication Configuration
- (01) Install KVM
- (02) Create Virtual Machine
- (03) Create Virtual Machine (GUI)
- (04) Basic Operation for VM
- (05) Install Management Tools
- (06) Configure SPICE Server
- (07) Configure SPICE Client
- (08) Nested KVM
- Vagrant
- (01) Install Vagrant
- Podman
- (01) Install Podman
- (02) Add Container Images
- (03) Access to Container Services
- (04) Use Dockerfile
- (05) Use External Storage
- (06) Use Registry
- (07) Use Docker CLI
- (08) Use Docker Compose
- (09) Podman Network Basis
- (10) Create Pods
- (11) Use by common users
- (12) Generate Systemd unit file
- Kubernetes
- (01) Install Kubeadm
- (02) Configure Master Node
- (03) Configure Worker Node
- (04) Deploy Pods
- (05) Enable DashBoard
- FreeIPA
- (01) Configure FreeIPA Server
- (02) Add User Accounts
- (03) Configure FreeIPA Client
- (04) User Accounts Management
- (05) Web Admin Console
- OpenLDAP
- (01) Configure LDAP Server
- (03) Configure LDAP Client
- (04) OpenLDAP Replication
- Apache httpd
- (01) Install httpd
- (02) Configure Virtual Hostings
- (03) Configure SSL/TLS
- (04) Enable Userdir
- (05) Use CGI Scripts
- (06) Use PHP Scripts
- (07) Basic Authentication
- (08) Configure WebDAV Folder
- (09) Basic Authentication + LDAP
- (10) Configure mod_md
- PostgreSQL 13
- (01) Install PostgreSQL
- (02) Settins for Remote Connection
- (03) PostgreSQL over SSL/TLS
- (04) Streaming Replication
- MariaDB 10.5
- (01) Install MariaDB
- (02) MariaDB over SSL/TLS
- (03) MariaDB Backup
- (04) MariaDB Galera Cluster
- (05) Install phpMyAdmin
- FTP Server
- (01) Install Vsftpd
- (02) Install ProFTPD
- (03) Install Pure-FTPd
- (04) FTP Client : Fedora
- (05) FTP Client : Windows
- (06) Vsftpd over SSL/TLS
- (07) ProFTPD over SSL/TLS
- (08) Pure-FTPd over SSL/TLS
- Samba
- (01) Fully Accessed Shared Folder
- (02) Limited Shared Folder
- (03) Access to Share from Clients
- (04) Samba Winbind
- Squid
- (01) Install Squid
- (02) Configure Proxy Clients
- (03) Set Basic Authentication
- (04) Configure as a Reverse Proxy
- Mail Server
- (01) Install Postfix
- (02) Install Dovecot
- (03) Add Mail User Accounts
- (04) Email Client Setting
- (05) SSL/TLS Setting
- (06) Set Virtual Domain
- (07) Postfix + Clamav + Amavisd
- (08) Mail Log Report : pflogsumm
- (09) Add Mail User (Virtual User)
- (07) Configure Xrdp Server
- (06) Configure VNC Server
- (05) MATE Desktop Environment
- (04) Xfce Desktop Environment
- (03) Cinnamon Desktop Env
- (02) KDE Desktop Environment
- (01) GNOME Desktop Environment
- Create SSL Certificate (Self Sign)
- Get SSL Certificate (Let's Encrypt)
- Change Run-Level
- Set Timezone
- Set Hostname
- Join in Active Directory Domain
- Clamav AntiVirus

@2023 - All Right Reserved.
How to configure a static IP address on Fedora

E ach system administrator should be aware of the importance of providing a static IP to a Fedora workstation. You can connect and remotely control your PC from a set IP address from any corner of the world. This is just the tip of what most people do.
Without further ado, let’s guide you through configuring a static IP address on Fedora 31 Workstation using the two most common methods, GUI and command-line way.
Configuring Fedora 31 to have a static IP address
Before starting the tutorial, ensure that your Fedora 31 is completely updated using the following two commands or use Fedora Software Update.

Method 1: Setting static IP address on Fedora 31 using GUI
Step 1. From the top left of your Fedora 31 desktop, open the Activities tab.

Open The Activities Tab
Step 2. In the search bar, search for the settings application and open it.

Search and Open Settings Application
Step 3. From the left panel of the Settings app, select the Network tab.

Open Network Tab
Step 4. Now on the right side, open the system network interface setting.

Open Settings For the System Network Interface
Step 5. It should be something like shown in the screenshot below. Notice the current IP address.

Settings Of System Network Interface
Step 6. In the top panel, select the IPv4 tab.

Open IPv4 Tab
Step 7. Now let’s select the Manual option.

Select The Manual Option
Step 8. In the Addresses field, write down your static IP with the Netmask alongside the gateway. But be careful not to choose an already used IP because that will cause a network IP conflict.

Assign IP Address
Step 9. In case if you need to set the DNS.

Step 10. When done, click the Apply button in the top right of your window to save all your changes.

Press, The Apply Button, To Save Your Configuration
Step 11. You should restart your network connection to apply changes. So let’s turn off the system network interface.

Turn Off The Wired Setting
Step 12. Turn it ON again.

Turn On The Wired Settings
Step 13. Let’s check if the static IP was configured or not. Open the system network settings.

Open The System Network Settings
Step 14. You should see the new static IP configured successfully alongside the DNS.

IP and DNS Configured Successfully
Method 2: Applying a static IP address on Fedora 31 by command-line
In this method, we will be using the “nmcli” command to configure static IP on Fedora 31.
Step 1. First, we need to get the name of the current network connection and its unique ID.

Obtain The Name Of Your Network Interface
As you can see in the above screenshot, the network name is marked with the red line, and the unique network ID is marked with the blue line.
- How to install Cinnamon Desktop on Fedora
- What’s new in Fedora 27 Workstation
- Install AnyDesk on Fedora: A Quick and Easy Guide
Step 2. Get the current IP of your network using the following command.
name_of_your_network –> Network name obtained in the previous step.

Get The Current IP Address
Step 3. Now let’s change the current IP to a static one. Use the command:
network_uuid –> Network unique ID obtained in the first step.
static_IP –> Your static IP, but be careful not to choose an already assigned IP because that may cause a network conflict.

Set IP Address Manually
Step 4. Set the network gateway using the following command.
network_gateway_IP –> Your Network Gateway.

Set Gateway Manually
Step 5. Set network DNS.

Set DNS Manually
Step 6. Set the network configuration method to be manual.

Change Configuration Method To Manual
Step 7. Next, we need to restart the network to apply all the changes. So first, we will turn the network off using the next command.

Turn Off Your Network
Step 8. Now let’s turn the network on again.

Turn On Your Network
Step 9. Let’s check if the previous changes were applied or not. Use the following command to get the current network IP.
name_of_your_network –> Network name obtained in the first step.

IP Configured Successfully
As you noticed, all the changes have been applied successfully. That’s all about configuring your Fedora system to have a static IP address. I hope you enjoyed this tutorial.
You may also like
How to install key drivers on your fedora..., fedora fixes: overcoming 25 common issues with ease, how to check your fedora version via gui..., the 20 best themes for fedora workstation [2023..., install anydesk on fedora: a quick and easy..., how to install docker on fedora.
Thanks for your article. But is there a config file where we can setup the network config like in debian “/etc/network/interfaces” ?
Hi. This was very helpful. Step 4 didn’t seem right. Your entry should show the brd value “192.168.1.255” less 1 as gateway address. I tried the bed value shown in my terminal but it didn’t work. Dropping one digit, worked for me. so the resultant command as per your example images should be sudo nmcli connection modify network_uuid IPv4.gateway 192.168.1.254
one suggestion. combine the down and up commands into a single line. THis is necessary of you are trying to do this over ssh.
sudo nmcli connection down network_uuid; sudo nmcli connection up network_uuid
Leave a Comment Cancel Reply
Save my name, email, and website in this browser for the next time I comment.

ENHANCE YOUR LINUX EXPERIENCE.
FOSS Linux is a leading resource for Linux enthusiasts and professionals alike. With a focus on providing the best Linux tutorials, open-source apps, news, and reviews written by team of expert authors. FOSS Linux is the go-to source for all things Linux.
Whether you’re a beginner or an experienced user, FOSS Linux has something for everyone.
MORE FROM US
- Ubuntu (312)
- Downloads (247)
- Learn Linux (227)
- Beginner's Guide (173)
- Terminal Tuts (160)
- Featured (126)
- Linux Mint (93)
- Server (90)
- Fedora (87)
- Privacy Policy
- Terms of Use
- GDPR Policy
- Linux Careers
A PART OF VIBRANT LEAF MEDIA COMPANY.
“Linux” is the registered trademark by Linus Torvalds in the U.S. and other countries.
- Beginner’s Guide
- Terminal Tuts
- Learn Linux
How to Set the Static IP Address Using CLI in Fedora/CentOS Linux
How to set the static IP address for CentOS 7/Fedora 22+ is introduced in this post. Here, we assume the Linux is using NetworkManager to manage the network . All steps are done as root.
Find the interface you want to set the address
Table of Contents
lists all interfaces.
Find the interface name to set, such as enp2s0 .

Edit the interface’s configuration file
For interface NAME , the configuration file is stored in /etc/sysconfig/ network -scripts/ifcfg-NAME . For the above example of enp2s0 , the configuration file is /etc/sysconfig/ network -scripts/ifcfg-enp2s0 .
As an example, to set its IP to 1.2.3.4 with netmask 255.255.255.0, gateway 4.3.2.1, DNS 114.114.114.114, the content will be like
For more details of the configuration and other options, you may check the the Interface Configuration Options from this QA .
Restart network/NetworkManager services
You will need to restart the network/Networkmanager services to make the new configuration take effect
Then you can use ifconfig -a again to verify whether the IP is set successfully.
- Making Ports Used by NFSv3 Server Static
- How to Upload Large Files to Amazon S3 with AWS CLI
- Changing MAC Address in Linux aka. MAC Spoofing
- How to add two static IPs for a Xen VM?
- How to make a static library (.a) on Linux
- Synchronizing Thunderbird Calendar and Address Book with Office365 Exchange Online using ActiveSync
- How to enable Email address auto completion in Evolution?
- How to Control or Disable SELinux in Fedora and CentOS Linux

Eric is a systems guy. Eric is interested in building high-performance and scalable distributed systems and related technologies. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.
One comment:
- Pingback: Running PivacyIDEA with FreeIPA – Frederik.Lindenaar.NL
Your email address will not be published. Required fields are marked *
Save my name, email, and website in this browser for the next time I comment.

- Project based Industrial Trainings
- job / Career Oriented Trainings
- Thesis and Desertations
- Product Engineeering Services
- Research and Development
- Project Consulting
- Embedded Trainings
Industrial Trainings
- News & Events
EmbLogic's Blog
Blog members area, embedded systems trainings, android system development, c with linux, c++ with linux.
- Linux Internals and System Programming
Linux Device Drivers
Embedded applications with arm, embedded systems using 8 bit controllers, blog categories.
- ARM Embedded Processors
- Data Structures with C
- Block Driver
- Character Driver
- Parallel Port Driver
- Serial Port Driver
- Embedded Controllers
- Embedded Linux
- Project 00: Linux System / Network Administration
- Project 03: Client Server Communication using Linux and IPC
- Project 04: FTP based Client Server using Threads and Sockets
- Project 11: A Character Device Drivers Based Project
- Project 1: A Linux Administration based Project
- Project 2: Multiple Data Compression and Encryption
- Project 6: Client Server using Inter Process Communication Mechanism
- Project 9: Embedded Linux on ARM
- Project Management Tools
- Shell Scripts
- Uncategorized
- Word from Admin
How to set static ip in Fedora
Below is the method to give your machine a static Ip for the fedora.[Next post will contain the method to provide Static ip to Raspberry Pi running raspbian]
1. First stop and disable the gnome network manager from running on boot.
#systemctl stop NetworkManager.service #systemctl disable NetworkManager.service
2. Now start and enable the network service to run on boot.
#systemctl restart network.service #systemctl enable network.service
Set the Static Address 1. Check which interface(s) you want to set as static.
# ifconfig em1: flags=4163 mtu 1500 inet 192.168.1.148 netmask 255.255.255.0 broadcast 192.168.1.255 inet6 fe80::dad3:85ff:feae:dd4c prefixlen 64 scopeid 0×20 ether d8:d3:85:ae:dd:4c txqueuelen 1000 (Ethernet) RX packets 929 bytes 90374 (88.2 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 1010 bytes 130252 (127.1 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device interrupt 19
lo: flags=73mtu 16436 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0×10 loop txqueuelen 0 (Local Loopback) RX packets 32 bytes 3210 (3.1 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 32 bytes 3210 (3.1 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
2. Next edit the config file for the required interface.
vim /etc/sysconfig/network-scripts/ifcfg-em1
3. Edit the config file to look similar to the following.
Change the BOOTPROTO from “dhcp” to “static”. Also adding IPADDR, NETMASK, BROADCAST and NETWORK variables and make sure ONBOOT is set to yes.
UUID=”e88f1292-1f87-4576-97aa-bb8b2be34bd3″ NM_CONTROLLED=”yes” HWADDR=”D8:D3:85:AE:DD:4C” BOOTPROTO=”static” DEVICE=”em1″ ONBOOT=”yes” IPADDR=192.168.1.2 NETMASK=255.255.255.0 BROADCAST=192.168.1.255 NETWORK=192.168.1.0 GATEWAY=192.168.1.1
Exit the editor by pressing ‘:wq’ and enter.
4. Restart the network service to apply the settings.
systemctl restart network.service
source : https://fedoraproject.org/
Leave a Reply Cancel reply
Your email address will not be published. Required fields are marked *
You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Emb Logic Research & Competency Development Labs 2nd Flr, Bhagwan Sahai Palace, Capt. Vijayant Thapar Marg, Sec 15, NOIDA Phone: +91 120 4206165, +91 120 4206166, 8527567776 Email: [email protected]
- Prod Engg Serv
- Research n Dev
- Project Consult
- Testimonials
- Affliate Program
Copyright © Emb Logic Embedded Technologies Pvt. Ltd.

How to Set Static IP Address and Configure Network in Linux
If you are a Linux system administrator, time will come when you will need to configure networking on your system. Unlike desktop machines where you can use dynamic IP addresses, on a server infrastructure, you will need to setup a static IP address (at least in most cases).
Read Also: How to Set or Change System Hostname in Linux </p
This article is meant to show you how to configure static IP address on most frequently used Linux distributions.
For the purpose of this tutorial, we will use the following Internet Protocol version 4 (IPv4) details:
Configure Static IP Address in RHEL/CentOS/Fedora:
To configure static IP address in RHEL / CentOS / Fedora , you will need to edit:
Where in the above "ifcfg-eth0" answers to your network interface eth0 . If your interface is named “ eth1" then the file that you will need to edit is "ifcfg-eth1" .
Let’s start with the first file:
Open that file and set:
Note : Make sure to open the file corresponding to your network interface. You can find your network interface name with ifconfig -a command .
In that file make the following changes:
You will only need to edit the settings for:
- DNS1 and DNS2
Other settings should have already been predefined.
Next edit resolve.conf file by opening it with a text editor such as nano or vi :
Once you have made your changes restart the networking with:
Set Static IP Address in Debian / Ubuntu
To setup static IP address in Debian / Ubuntu , open the following file:
You may see a line looking like this:
Change it so it looks like this:
Save the file and then edit /etc/resolv.conf like this:
Restart the networking on your system with:
Your static IP address has been configured.
Conclusion:
You now know how to configure a static IP address on a Linux distro. If you have any questions or comments, please do not hesitate to submit them in the comment section below.
Previous article:
Next article:
Each tutorial at TecMint is created by a team of experienced Linux system administrators so that it meets our high-quality standards.
Related Posts

How to Use Rsync Command in Linux: 16 Practical Examples

How to Clear RAM Memory Cache, Buffer and Swap Space on Linux

How to Create Users in Linux [15 useradd Command Examples]

18 Tar Command Examples in Linux

How to List All Running Services Under Systemd in Linux

7 Interesting ‘sort’ Command Examples in Linux – Part 2
32 thoughts on “How to Set Static IP Address and Configure Network in Linux”
The time will come when you will need to configure networking on your system. Unlike desktop machines where you can use dynamic IP addresses, on a server infrastructure, you will need to set up a static IP address (at least in most cases).
Terrible – and my ‘ linux distro ‘ isn’t the same as yours, there’s no ‘ /etc/sysconfig/ ‘ folder.
In Ubuntu 20.04 there is no interfaces file they switch to netplan . If you can update this article to include the new change it will help a lot.
thanks Raouf
Well, this isn’t correct. Just trashed my Linux mint distro
Is it public Static IP? or can I use to access data from other networks?
Failed to restart network.service: Unit network.service not found.
I’m asking a question on a fairly old thread, but just in case, is it possible to do this on a WIFI network?
For example, when using the first command (# nano /etc/network/interfaces ) in Ubuntu, the result I see is:
There isn’t an “ eth0 ” on my server because it is connected by WIFI only. Will it still work using another option?
Yes it will work I think so, just change the settings in the interfaces file as explained in this article.
I set the static IP in ifcfg-eth0, added HWADDR and UUID, but on reboot system does not associate the IP to eth0.
This is VM. Any idea why its happening and steps to troubleshoot.
I think you need to make sure that you select “ manual ” and the correct IP address, subnet mask, and gateway and save the configuration as explained in the article. Also, I personally would select a new and different IP address, so that you can really check if it has been saved by opening the terminal and typing:
after a restart.
If i set ip address as static am not able to ping google.com why and also packages are not installed.
Please give me reply as soon as possible.
@Rajeshkar,
Please add the DNS Name servers in your /etc/resolv.conf file..
@Ravi Saive thanks for your reply , yes i did /etc.resolv.conf also but getting the same problem
@Rajesekar,
The file is /etc/resolv.conf , in this file add your DNS name servers for example.
When I enter the /etc/resolv.conf file, what is it supposed to look like? And when you say “edit” do you mean delete what’s there and write what you’ve provided, or just add new lines?
Hello Marin, Thank you very much for this article. It was a major help in my class project. This is my first time using a vm and it is an awesome learning experience. I’m really glad I ran into this article, it was well written and easy to follow.
Just wanted to say a million thank you’s for this well-written, comprehensive and easily-understood article! Awesome stuff! A real lifesaver too, as I had to quickly configure a static IP for myself to get access to remote computing. Thank you! :-D
A question from a linux newbie. Does this instruction apply for both ubuntu running on my desktop PC as well as debian linux on an embedded board?
Yes, the instructions will works on any Debian/Ubuntu based distribution without any issues..have you tried on your embedded board? does these instructions worked? let us know.
Hi Ravi, thanks for your reply.
Default the folder /etc/sysconfig does not exist on my embedded system. Of Course i could create it as well as the files mentioned, but it would be out of the context of this instructions.
Thanks, Rob
I found here very good stuff! You are doing an excellent job and I like your site! Thanks!
Thanks for finding this site very useful and thanks for appreciating our work, Keep visiting for more such useful articles…
Great job, I was I actually looking for an article like this one. So thank you so very much. Keep up the good work.
Thanks for appreciating and finding this article useful, keep connected to Tecmint for such wonderful articles…:)
What if I have 2 NICs on my server one for LAN & one for WAN and I want to set one of them (WAN) as default gateway? How to configure this server as gateway and as a router.
The easiest way to add default gateway using route command as shown:
Don’t forget to replace the gateway IP address and interface-name in the above command.
One can also use following command to setup static IP on eth0 interface for example. # ifconfig eth0 192.168.1.1 netmask 255.255.255.0 up # route add default gw 192.168.0.1 # service network restart
Thanks for the tip, but I think setting IP address directly from the commandline using ifconfig and route will only allow you to set temporarily, once you reboot, these settings disappears. So, the best option to set static IP address permanently in network configuration files only….
wipe on reboot, so that best option is to set permannetly
Hello Ravi, What is difference between the service “NetworkManager” and “network”
@Augustine,
This article will help you to understand the difference between and NetworkManager and Network: http://askubuntu.com/questions/1786/what-is-the-difference-between-network-manager-and-ifconfig-ifup-etc
Why do we need to specify DNS in both ifcfg-eth0 and resolvlf.conf?
Hello Augustine,
Actually if you have added the DNS servers in the ifcfig-eth0 file the DNS servers will be automatically added to /etc/resolv.conf. You can skip defining the DNS servers in the ifcfig-eth0 file, but then you will need to have them set in /etc/resolv.conf manually. It’s a good practice to make sure that the DNS servers are specified correctly in both files, this is why the article says to set them in both files.
Got something to say? Join the discussion. Cancel reply
Thank you for taking the time to share your thoughts with us. We appreciate your decision to leave a comment and value your contribution to the discussion. It's important to note that we moderate all comments in accordance with our comment policy to ensure a respectful and constructive conversation.
Rest assured that your email address will remain private and will not be published or shared with anyone. We prioritize the privacy and security of our users.
Save my name, email, and website in this browser for the next time I comment.

IMAGES
VIDEO
COMMENTS
The location of an IP address is usually found in your computer’s network diagnostics or Internet connection settings. Though this information is stored by your computer, it is assigned by your Internet provider or LAN router.
IP address 192.168.0.1 is the default IP address set in many home routers that are on broadband, particularly the D-Link and Netgear routers. This is set at the factory, but you can go in and change the IP address. It is an IPv4 network add...
Just in case you still don’t know, an internet protocol address or IP address is a set of numbers that uniquely identifies each device — such as computers, mobile phones, cameras and printers — connected to a TCP/IP network. All IP addresse...
Method 1: Configuring Static IPv4 Address on Fedora with GUI · Open Settings: · Open Network Settings: · IPv4 Settings: · Set a new IP address:.
Method 1. Using nmcli command-line utility for setting a static IP address on Fedora 33 · Step 1. To check the overall status of NetworkManager, use the command:.
Assign Static IP Address on Fedora 36 via Graphically ... Note: For this method to work, make sure desktop environment is installed on your fedora
On desktop computers, you are able to utilise dynamic IP addresses; but, in order to set up a server architecture, you will need to configure a
An example set of kernel arguments for statically configuring an IP address for
If you did not configure network settings during the Fedora Server Installation, Configure it like follows. [1], Set static IP address to the
Method 1: Setting static IP address on Fedora 31 using GUI ... Step 1. From the top left of your Fedora 31 desktop, open the Activities tab.
How to Set the Static IP Address Using CLI in Fedora/CentOS Linux · Find the interface you want to set the address · Edit the interface's
How to set static ip in Fedora · 1. Check which interface(s) you want to set as static. # ifconfig · 2. Next edit the config file for the required interface. vim
How to configure a persistent IP using linux redhat / centOS / Fedora or derivatives distributions.
Configure Static IP Address in RHEL/CentOS/Fedora: ... Where in the above "ifcfg-eth0" answers to your network interface eth0 . If your interface