Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
net.eth0 server auto-starting!!! [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6069
Location: Removed by Neddy

PostPosted: Sat May 06, 2006 10:37 am    Post subject: net.eth0 server auto-starting!!! [solved] Reply with quote

I have a wired NIC and a wireless NIC,
the wired NIC can be started via /etc/init.d/net.eth0
the wireless by /etc/init.d/net.ra0

I removed net.eth0 from all run-levels so it does not try to detect a DHCP server (it wont since not plugged it), i still need it say once every 4months if wifi goes wrong

net.ra0 is in the defaut runlevel and starts fine.

For some reason a recent change to baselayout and init-scripts means that all network devices try to start!!!

at startup there is a line that goes

"found net.eth0 net.ra0"

later it then tries to start eth0 even though it is not in by runlevel! this causes the machine to sit for 5min as it fails to find a server, this also cause GNOEM to not login via GDM.

net.ra0 starts fine.
IF i delete the link net.eth0 it re-appears next boot, the only way to get a good boot is to press "i" during init and when it asks whether I want to start net.eth0 I say NO

how can I stop eth0 from trying to start?
_________________
#define HelloWorld int
#define Int main()
#define Return printf
#define Print return
#include <stdio>
HelloWorld Int {
Return("Hello, world!\n");
Print 0;


Last edited by Naib on Sat May 06, 2006 12:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Sat May 06, 2006 10:53 am    Post subject: Reply with quote

remember doing an etc-update back there somewhere? You probably missed a line somewhere or other and eth0 was likely added as a dependancy to something, that's my guess.

check it out.

Code:
slim matty # ls -l /etc/init.d/net*
lrwxrwxrwx  1 root root     6 Apr 24 19:48 /etc/init.d/net.eth0 -> net.lo
-rwxr-xr-x  1 root root 24317 Feb 14 02:08 /etc/init.d/net.lo

See how the file net.eth0 is just a symlink to net.lo?
If I were you , I would just delete that file. you can aloways recreate it anyways with 'cd /etc/init.d/; ln -s net.lo net.eth0 ; ' as root.

but if your wifi points to eth0 {
you'll have to move it to point to net.lo first.
but if net.eth0 does not point to net.lo itself, then it's possible that your computer dosn't have net.lo configured the same as me. (this is unlikely)
}

in conclusion: unless net.eth0 doesn't point to net.lo, delete it.
unless it already does, make sure net.<wireless-something> points to net.lo
_________________
Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit!
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6069
Location: Removed by Neddy

PostPosted: Sat May 06, 2006 10:55 am    Post subject: Reply with quote

erik258 wrote:
remember doing an etc-update back there somewhere? You probably missed a line somewhere or other and eth0 was likely added as a dependancy to something, that's my guess.

check it out.

Code:
slim matty # ls -l /etc/init.d/net*
lrwxrwxrwx  1 root root     6 Apr 24 19:48 /etc/init.d/net.eth0 -> net.lo
-rwxr-xr-x  1 root root 24317 Feb 14 02:08 /etc/init.d/net.lo

See how the file net.eth0 is just a symlink to net.lo?
If I were you , I would just delete that file. you can aloways recreate it anyways with 'cd /etc/init.d/; ln -s net.lo net.eth0 ; ' as root.

but if your wifi points to eth0 {
you'll have to move it to point to net.lo first.
but if net.eth0 does not point to net.lo itself, then it's possible that your computer dosn't have net.lo configured the same as me. (this is unlikely)
}

in conclusion: unless net.eth0 doesn't point to net.lo, delete it.
unless it already does, make sure net.<wireless-something> points to net.lo


net.eth0 is a sym to net.lo (just like net.ra0) but it has been re-made on two occasion now.
I have added an option to my rc file

RC_PLUG_SERVICES="!net.eth0"

hopefully will stop coldplug (I think this is the culpret) from starting it
_________________
#define HelloWorld int
#define Int main()
#define Return printf
#define Print return
#include <stdio>
HelloWorld Int {
Return("Hello, world!\n");
Print 0;
Back to top
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Sat May 06, 2006 11:16 am    Post subject: good Reply with quote

looks like a good start at least
_________________
Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit!
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6069
Location: Removed by Neddy

PostPosted: Sat May 06, 2006 12:32 pm    Post subject: Reply with quote

that solved it
_________________
#define HelloWorld int
#define Int main()
#define Return printf
#define Print return
#include <stdio>
HelloWorld Int {
Return("Hello, world!\n");
Print 0;
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum