How to get DHCP IP from DHCP Client on Fedora 11 ?

July 2, 2009

As I did know this hint before I share it with you.

Define what is you Network interface Card – NIC – with ifconfig ( For my part it is eth0).
[fhornain@localhost ~]$ ifconfig
eth0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX
inet Bcast:192.168.XXX.255 Mask:
inet6 addr: fe80::223:8bff:fea0:e8ee/64 Scope:Link
RX packets:270269 errors:0 dropped:0 overruns:0 frame:0
TX packets:136038 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:281403168 (268.3 MiB) TX bytes:33294001 (31.7 MiB)

Then do a cat of the /var/lib/dhclient/dhclient-* and look for the stanza associated to the NIC card here eth0 :

[fhornain@localhost dhcp]$ cat /var/lib/dhclient/dhclient-*

lease {
interface “eth0”;
filename “/boot/pxelinux.0”;
option subnet-mask;
option routers;
option dhcp-lease-time 172800;
option dhcp-message-type 5;
option domain-name-servers,;
option dhcp-server-identifier;
option domain-name “”;
renew 5 2009/07/03 03:47:38;
rebind 6 2009/07/04 01:10:17;
expire 6 2009/07/04 07:10:17;

Here is the answers :  option dhcp-server-identifier;

Have Fun with F11


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: