LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
LinkBack Search this Thread
Old 01-25-2013, 03:43 PM   #1
ratotopi
Member
 
Registered: Dec 2011
Posts: 105

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, 04:35 PM   #2
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,019

Rep: Reputation: 284Reputation: 284Reputation: 284
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:
Code:
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.

Regards
 
Old 01-25-2013, 04:41 PM   #3
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 1,821

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


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 12:38 AM
Funny Error msg from my XP Box LoungeLizard General 6 02-19-2004 01:17 PM
qmail acting funny maybe box owned zuessh Linux - Software 2 09-22-2003 09:49 PM


All times are GMT -5. The time now is 11:19 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration