Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-25-2013, 04:43 PM   #1
Registered: Dec 2011
Posts: 114

Rep: Reputation: 6
Funny .. from where is the IP assigned in my linux box !!

I have a old linux box running Redhat. When I do ifconfig it show all the IP that are up and you can ping from other box. I can find the IP assigned to eth0 in /etc/sysconfig/network-scripts/ifcfg-eth0 but other IP assigned to eth0:0, eth0:1 eth0:2 etc are not there in the folder. My problem is I cannot locate from where this IP is assigned to this linux box, it is not there in /etc/sysconfig/network-scripts/ and not running from /etc/rc.d/rc.local. Do I need to grep all the files and search for the IP or is there a better way to find it. Thank you
Old 01-25-2013, 05:35 PM   #2
Senior Member
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 385Reputation: 385Reputation: 385Reputation: 385
If the IP isn't statically set then you have dhcp client running, which automatically set an available IP to your LAN card.
Try this on console:
ps aux | grep dhcp
This will show if you have the daemon running.
About your LAN card the config file maybe is at /etc/network/interfaces
Im not 100% sure about its location on RedHat its been long time since I last fiddle with it.
Those details might help you find out.

Old 01-25-2013, 05:41 PM   #3
Ser Olmy
Senior Member
Registered: Jan 2012
Distribution: Slackware
Posts: 2,806

Rep: Reputation: Disabled
Try grep -r eth0:0 /etc. It shouldn't take more than a few seconds.


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
Funny Dell Box - Adapter(R) SCSI Card 39320, driver needed chenglim Linux - Hardware 3 01-20-2005 01:38 AM
Funny Error msg from my XP Box LoungeLizard General 6 02-19-2004 02:17 PM
qmail acting funny maybe box owned zuessh Linux - Software 2 09-22-2003 10:49 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:57 AM.

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