LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-17-2006, 04:00 AM   #1
adilturbo
Member
 
Registered: Jun 2006
Location: morocco
Posts: 195

Rep: Reputation: 30
From which file did get the init process information to configure my eth0 interface


hi kind ppl
i'm using a redhat linux as OS,connected to a LAN.
before i had a *.*.*.69 net address.
now i want to use *.*.*.53.because somebody else is using the 1st address.
at the boot time when init configure my eth0 interface(netaddr *.*.*.69),sends the gratuitous ARP,and got an ICMP message saying that an other host is using this address,so configuration fails.

my solutions:
1/ configuring manually the eth0 interfae after the
the system is up.(ridiculous)
2/ writing a script file.

your welcome help:
which file the init process read from while configuring eth0? i searched in the rc.d directory and its subdirectories but i did not found

many thanks
 
Old 12-17-2006, 07:16 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Redhat stores IP info in /etc/sysconfig/network-scripts in files named icfg-<interface> where the first one is usually ifcfg-eth0 (first ethernet NIC). You can edit these files with the correct information and so long as you don't have DHCP enabled the address will be the same after every boot.

You can test the change by typing "service network restart" then running ifconfig against the NIC to see if it is OK rather than doing a full reboot.
 
Old 12-17-2006, 10:40 AM   #3
adilturbo
Member
 
Registered: Jun 2006
Location: morocco
Posts: 195

Original Poster
Rep: Reputation: 30
hi again

i'm not using DHCP protocol .thank you so much for help.
thanks
 
Old 12-17-2006, 03:06 PM   #4
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Whenever I need to find a file containing some verbage, I usually try the following.

1. Go to the lowest level directory that you think contains the data. In this case, I'd suggest "/etc" for you.

2. type
Code:
find . -print |xargs grep "your text here"
In your case, I'd suggest either "route" or perhaps the bogus IP within the quotes. Of course, you can skip step 1 and put the directory in in place of the ".". The word "xargs" is mandatory for this to work.
 
Old 12-17-2006, 08:15 PM   #5
Sertys
Member
 
Registered: Oct 2006
Posts: 42

Rep: Reputation: 15
well, instead of using xargs for such a silly task, i'd suggest you use -R (for recursive)

cd etc ; grep -R "Quakeboy02 just likes typing more and more" *
 
Old 12-17-2006, 09:26 PM   #6
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
well, instead of using xargs for such a silly task, i'd suggest you use -R (for recursive)

Thanks for letting me know. I just got back into Linux/Unix after being away for about 10 years. I don't remember grep having that function back then. Of course, it could have, but you weren't there to correct me.
 
Old 12-18-2006, 02:58 AM   #7
adilturbo
Member
 
Registered: Jun 2006
Location: morocco
Posts: 195

Original Poster
Rep: Reputation: 30
hi nice folks

i thank you all so much for informations

thanks
 
  


Reply



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
What /proc file(s) have process information pat_and_cami Programming 3 03-09-2006 05:18 PM
What /proc file(s) have process information pat_and_cami SUSE / openSUSE 1 03-08-2006 12:17 PM
Not able to find/configure eth0 interface on Dell Poweredge 700 nageshs Linux - Networking 5 03-04-2005 03:12 PM
Bringing up interface eth0: determining ip information for eth0... failed ralphethomas Linux - Networking 0 01-24-2004 05:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:39 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