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 |
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.
|
Thanks! Are there any other scripts that are involved when netconfig is finished with the network settings that you know of?
|
What other types are there? If not eth0 ? :twocents:
|
Quote:
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. |
Quote:
|
Appreciate all of your feedback! Thanks!
|
All times are GMT -5. The time now is 12:27 PM. |