Find the answer to your Linux question:
Results 1 to 5 of 5
Hi, I am using RHEL 5.1 and i would like to know, How to find, whether my system is using DHCP or STATIC IP with out looking at /etc/sysconfig/network-scripts/ifconfig-eth0 configuration ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2009
    Posts
    2

    [SOLVED] 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, whether my system is using DHCP or STATIC IP
    with out looking at /etc/sysconfig/network-scripts/ifconfig-eth0 configuration file.

    Regards,
    venkat

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    Do you mean based on the IP address itself or using another file? There is no real way to know unless you look at a configuration file for your network or syslog, or checking to see if there is a dhclient pid file saying that you leased an IP.

  3. #3
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Welcome to the forums!

    In my own experience, I've always had to setup any static IP address that I wanted to use, so that it would work, whereas DHCP worked without any added effort from me.

    Just curious... did you setup a static IP address on your machine, or did it connect automatically to the web?
    oz

  4. #4
    Linux Engineer rcgreen's Avatar
    Join Date
    May 2006
    Location
    the hills
    Posts
    1,134
    If you are using gnome, try looking in the menu.
    system->administration->network

    Something there should indicate if it's static or DHCP.

    I'm not using RHEL, but your menu should be similar.

  5. #5
    Just Joined!
    Join Date
    Sep 2009
    Posts
    2
    Quote Originally Posted by coopstah13 View Post
    Do you mean based on the IP address itself or using another file? There is no real way to know unless you look at a configuration file for your network or syslog, or checking to see if there is a dhclient pid file saying that you leased an IP.
    Thank you for providing the solution.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •