How do I configure a static IP address on Fedora Linux?

Configuring a static IP address on Fedora Linux is a relatively simple process. This tutorial will guide you through the steps of setting up a static IP address on Fedora Linux.

Steps to Configure a Static IP Address on Fedora Linux

  1. Open the Terminal
  2. Check the Network Interface
    ip addr show
  3. Edit the Network Configuration File
    sudo nano /etc/sysconfig/network-scripts/ifcfg-eth0
  4. Set the IP Address
    IPADDR=192.168.1.100
  5. Set the Default Gateway
    GATEWAY=192.168.1.1
  6. Set the DNS Servers
    DNS1=8.8.8.8
    DNS2=8.8.4.4
  7. Save the Configuration File
    Ctrl + O
  8. Exit the Editor
    Ctrl + X
  9. Restart the Network Service
    sudo systemctl restart network
  10. Check the IP Address
    ip addr show

And that's it! You have successfully configured a static IP address on Fedora Linux.

Useful Links