View Full Version : dhcp client info
cfh
4th June 2004, 05:37 AM
In earlier versions of Redhat when I was assigned a dynamic IP from my service provider the file /etc/dhcpc/dhcpcd-eth0.info was created with a lot of useful variables. The file was in the form of IPADDR=X.X.X.X. I use to source that file to get the IP that was assigned by my ISP and use that variable in my firewall rules. I can't seem to find anything like it in Fedora Core2. Is there such a thing anymore?
jdc
4th June 2004, 05:56 AM
You can try /var/lib/dhcp/dhclient-eth0.leases I am not sure if that is exactly what you are looking for, but you can give it a try.
cfh
4th June 2004, 06:03 AM
Thanks,
I already looked at the leases file and it is not quite the same thing. I guess I don't want to have to write a routine to parse the info.
fjleal
4th June 2004, 09:08 AM
How about /sbin/ifconfig?
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.