The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > Linux > Red Hat
.
google unix.com



Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Switching from DHCP to Static IP cleanden IP Networking 1 04-19-2009 09:07 AM
How to configure DHCP to Static IP lee30320 IP Networking 5 01-27-2009 03:56 AM
dhcp and static ip conflicts. ts97783 IP Networking 1 11-01-2008 10:08 AM
HP-UX 10.xx Changing from static IP to DHCP Steelysteel HP-UX 1 08-27-2007 05:55 PM
Static IP google IP Networking 7 05-18-2003 08:33 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-25-2009
venkat55 venkat55 is offline
Registered User
  
 

Join Date: Sep 2009
Posts: 3
How to know whether my system is using DHCP or STATIC IP

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
  #2 (permalink)  
Old 09-25-2009
mark54g mark54g is offline
Registered User
  
 

Join Date: May 2008
Posts: 366
Why can't you look at that file? That is what sets your card's configuration.
  #3 (permalink)  
Old 09-26-2009
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,937
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.
  #4 (permalink)  
Old 09-26-2009
venkat55 venkat55 is offline
Registered User
  
 

Join Date: Sep 2009
Posts: 3
Quote:
Originally Posted by fpmurphy View Post
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.
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:20 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0