To assign an IP address to a device on your network, you must have a DHCP server on your network. This server has a database that contains all available IP addresses for devices on a given network. Computer operating systems are configured with DHCP by default, so they are automatically assigned an IP address when connected to the LAN via an Ethernet or wireless connection. However, if you want to assign an IP address to a device that doesn’t already have one assigned, you must first authenticate the MAC address of the device by entering it into a DHCP client program.

Rocky Linux is a Linux distribution that is binary compatible with Red Hat Enterprise Linux. This makes network and server management perfect applications for Rocky Linux. ..

Steps to Set Static IP Address in Rocky Linux

In Fedora, RHEL and their clones like CentOS, AlmaLinux and Rocky Linux, the network interface card configuration is stored in the /etc/sysconfig/network-scripts/ directory. ..

Next, we need to find out the name of the computer that this card is attached to.

sudo dmesg | grep -i ‘kernel|core’ The kernel is up-to-date. The core subsystem is up-to-date. ..

The name of the wired network card will start with the letter “e” and the name of the wireless card will start with the letter “W🇧🇷

As you see in the output above, the name of my wired network card is enp0s3. This could to be different in your distribution, but usually starts with the letter “and🇧🇷

Configuring a static IP address can help to improve your network performance.

Open the network card settings file in any editor. This can be done by opening the system Preferences and clicking on the Network tab. Then, under “Network cards,” select the “Card type” option and click on the “Open” button.

Final Words

If you want to use your laptop to view external websites or update packages on a server, you need network access. Rocky Linux provides a static IP address for you to use so that you can have uninterrupted network connectivity.