Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»Linux Distributions»Fedora»How to Configure Static IP Address on Fedora

    How to Configure Static IP Address on Fedora

    By RahulFebruary 7, 20194 Mins ReadUpdated:January 19, 2023

    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.

    Advertisement

    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.

    1. Open Settings:
      • Log in to the Fedora desktop system with a privileged account.
      • Search and open system Settings on your system
      • .

       Configure Static IP Address on Fedora
      Open system settings on Fedora
    2. 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

      Configure Static IP Address on Fedora (GUI)
      Open network settings in Fedora
    3. IPv4 Settings:
      • You will see the Details tab, here you can find the current system IP details
      • Go to the IPv4 section

      Configure Static IP Address on Fedora (GUI)
      Edit the IPv4 settings
    4. 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

      Configure Static IP Address on Fedora (GUI)
      Set a static IP address and DNS
    5. Disable and Enable Networking:
    6. Now, disable the networking and enable it again to apply the changes immediately.

      Configure Static IP Address on Fedora (GUI)
      Disable and enable networking
    7. All done
    8. Congratulations you have successfully configured a static IP address on the Fedora desktop system.

    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.

    1. First check the current network settings and identify the interface name:
      sudo nmcli 
      

      Change Static IP Address on Fedora via CLI
      Show network connection on Fedora
    2. Set the static IP address to ‘Wired connection 1’. The below command uses folloiwng settings. Here:
      • Connection Name: ‘Wired connection 1’
      • Interface Name: eth0
      • IP Address & Netmask: 192.168.1.210/24
      • Gateway Address: 192.168.1.2
      sudo nmcli con modify 'Wired connection 1' ifname eth0 ipv4.method manual ipv4.addresses 192.168.1.210/24 gw4 192.168.1.2 
      
    3. 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 
      
    4. Down and Up the network connection.
      sudo nmcli con down 'Wired connection 1' &&  sudo nmcli con up 'Wired connection 1' 
      
    5. Again check the IP address of your system.
      ip a 
      

      Change Static IP Address on Fedora via CLI
      Show IP address via CLI

    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.

    ip addr show 
    

    How to check IP Address via Command Line

    Conclusion

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

    Desktop fedora ip ip address
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp

    Related Posts

    Upgrade to Fedora 28

    Upgrade Fedora: A Step-by-Step Guide For Beginners

    Configuring the Static IPv4 Address on Ubuntu using Netplan

    Configuring the Static IPv4 Address on Ubuntu using Netplan

    How To Install Apache Solr on Fedora

    How To Install Apache Solr 9.0 on Fedora 36/35

    Add A Comment

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • Error: EACCES: permission denied, scandir (Resolved)
    • How To Install Python 3.11 on Ubuntu 22.04 / 20.04
    • How to Install Python 3.11 on Amazon Linux 2
    • An Introduction to the “./configure” Command: Compiling Source Code in Linux
    • How to Install PHP 8.x on Pop!_OS
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.