LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 10-30-2006, 10:10 AM   #1
loadedmind
Member
 
Registered: Sep 2003
Location: Texas
Distribution: Red Hat/CentOS
Posts: 302
Blog Entries: 4

Rep: Reputation: Disabled
How to tell whether IP is set as static or DHCP?


Hello gents/ladies,

System we're running over here is a stock kernel RedHat ES 4 server. The question was brought up as, "How would someone be able to determine whether the machine is configured to grab an IP from DHCP or is it set statically and what file or files determines this toggle?"

Any/all input is greatly appreciated!


Regards,
LoadedMind
 
Old 10-30-2006, 10:14 AM   #2
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 417

Rep: Reputation: 53
You could look at /etc/sysconfig/network-scripts/ifcfg-eth0 to see whether or not it is set to use DHCP. Substitute "eth0" for whatever network device you are concerned with.
 
Old 10-30-2006, 03:58 PM   #3
loadedmind
Member
 
Registered: Sep 2003
Location: Texas
Distribution: Red Hat/CentOS
Posts: 302

Original Poster
Blog Entries: 4

Rep: Reputation: Disabled
Thanks! Are there any other scripts that are involved when netconfig is finished with the network settings that you know of?
 
Old 10-30-2006, 06:09 PM   #4
anserq
Newbie
 
Registered: Dec 2004
Posts: 6

Rep: Reputation: 0
What other types are there? If not eth0 ?
 
Old 10-31-2006, 08:11 AM   #5
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 417

Rep: Reputation: 53
Quote:
Originally Posted by anserq
What other types are there? If not eth0 ?
Well, you could have multiple ethernet devices attached to your systems, so you would have eth0, eth1, etc.

Also, I work in a high-performance computing center, and we have infiniband connected equipment that uses IP over IB. Those interfaces are labeled as ib0, ib1, etc.
 
Old 10-31-2006, 08:12 AM   #6
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 417

Rep: Reputation: 53
Quote:
Originally Posted by loadedmind
Thanks! Are there any other scripts that are involved when netconfig is finished with the network settings that you know of?
I ams ure there may be something. The best thing you can do is to read through the /etc/init.d/network script and see just what it touches.
 
Old 11-09-2006, 11:08 PM   #7
loadedmind
Member
 
Registered: Sep 2003
Location: Texas
Distribution: Red Hat/CentOS
Posts: 302

Original Poster
Blog Entries: 4

Rep: Reputation: Disabled
Appreciate all of your feedback! Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I set up Slackware 9.1 to use DHCP with a static DNS? h00chman Linux - Newbie 2 12-18-2012 09:30 AM
ipw2200 cant get ip of dhcp, only works when static one set jamesjoy Linux - Wireless Networking 3 02-26-2006 04:04 AM
Eth0 set up for Static, obtaining DHCP address?! IndustrialGeek Linux - Networking 2 01-03-2005 12:39 AM
Using DHCP with a static IP ninmonkeys Linux - Networking 9 11-30-2004 07:32 AM
FC2 Overriding static if in favor of dhcp system set for static pkraus109 Linux - Networking 8 09-21-2004 11:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 12:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration