Tag Archives: dhcp

Renewing DHCP Lease from Ubuntu 24.04 Server

Just found out that Ubuntu 24.04 server doesn’t use dhclient anymore and uses dhcpcd instead for obtaining dhcp address leases. To renew your dhcp address, do the following: That’s it, Enjoy! Sources: https://askubuntu.com/questions/1511816/how-to-renew-ip-address-with-ubuntu-24-04

Posted in Linux | Tagged , , , | Leave a comment

How to check the DHCP server on Ubuntu

This is if you need to know which server gave you your dynamic IP: cat /var/lib/dhcp/dhclient.leases That’s it, Enjoy!

Posted in Ubuntu | Tagged , , , | Leave a comment

How to configure network settings in CentOS (from dhcp to static)

It’s a bit different from what we’re used to do in Ubuntu, here are the instructions, assuming our network interface is eth0: Take a backup from the “/etc/sysconfig/network-scripts/ifcfg-eth0” file, e.g. by the following command: “cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0.bak” Open the “/etc/sysconfig/network-scripts/ifcfg-eth0” file for … Continue reading

Posted in Linux | Tagged , , , , , , , | Leave a comment