Tag Archives: dhcp

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