Hi,
I am using RHEL 5.1 and i would like to know,
how to find the whether my system is using DHCP or STATIC IP
with out looking at /etc/sysconfig/network-scripts/ifconfig-eth0 configuration file.
Regards,
Venkat
Hi,
I am using RHEL 5.1 and i would like to know,
how to find the whether my system is using DHCP or STATIC IP
with out looking at /etc/sysconfig/network-scripts/ifconfig-eth0 configuration file.
Regards,
Venkat
Why can't you look at that file? That is what sets your card's configuration.
If you have a DHCP lease on a particular interface <interface>, you can find out this information from /var/lib/dhcpclient/dhclient-<interface>.leases.
There is a man page which describes this file.
Thank you for providing the solution.