How do I configure a static IP address on Fedora Linux?
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
- Open the Terminal
- Check the Network Interface
ip addr show - Edit the Network Configuration File
sudo nano /etc/sysconfig/network-scripts/ifcfg-eth0 - Set the IP Address
IPADDR=192.168.1.100 - Set the Default Gateway
GATEWAY=192.168.1.1 - Set the DNS Servers
DNS1=8.8.8.8
DNS2=8.8.4.4 - Save the Configuration File
Ctrl + O - Exit the Editor
Ctrl + X - Restart the Network Service
sudo systemctl restart network - Check the IP Address
ip addr show
And that's it! You have successfully configured a static IP address on Fedora Linux.