View previous topic :: View next topic |
Author |
Message |
dracula007 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 17 Oct 2004 Posts: 20
|
Posted: Wed Nov 10, 2004 7:03 am Post subject: strange - not started network is working - bug or feature ? |
|
|
Hello everybody,
trying to solve some network problems I've noticed a strange behavior concerning the process of booting and starting network interface. I've removed the net.eth0 script from my gentoo machine, expecting the eth0 interface will be disabled next time the system boots.
But after logging in I've found I'm able to connect to other machines, and running "ifconfig eth0" gives me full info about perfectly configured interface, which is strange, because:
1) there are no startup scripts that require "net"
2) there's no message "bringing up eth0", so the eth0 script really isn't executed
3) the command "/etc/init.d/net.eth0 status" gives me "stopped" answer
I don't understand this situation, I'm not sure what is cause. I've suspected the "modprobe" command (I autoload the network driver at startup) and hotplug, but none of my tests indicated the cause.
Last edited by dracula007 on Wed Nov 10, 2004 11:20 am; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
texas1emt Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/112421156141919dbd894d5.jpg)
Joined: 27 Oct 2003 Posts: 352 Location: San Antonio, TX
|
Posted: Wed Nov 10, 2004 8:03 am Post subject: |
|
|
Hmm, you might want copy that back. Try copying net.eth0 back into your /etc/ directory from the Gentoo LiveCD. If you'd like to disable your networking at bootup, you can see what its boot up status is by running:
Just as an example, here's a little snippet of my output: Code: | local | default nonetwork
localmount | boot
metalog | default
modules | boot
mysql | default
net.eth0 | default
net.lo | boot |
DEFAULT means it WILL be run at boot time
That shows which scripts are going to be run at boot time. If you find that your net.eth0 script IS going to run at boot and you want it OFF on bootup: Code: | rc-update del net.eth0 |
Trust me, it's safer than tossing out the /etc/init.d/net.eth0 script! What type of network problem are you having? _________________ M. Hayden - San Antonio, TX |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dracula007 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 17 Oct 2004 Posts: 20
|
Posted: Wed Nov 10, 2004 11:33 am Post subject: |
|
|
Of course - I'm using rc-update script to start/stop/add/remove services in the /etc/runlevels directory. In fact "removed from the machine" means "removed from all the runlevels using rc-update", so I still have net.eth0 script in the /etc/init.d directory. Sorry for this imprecision.
The point is:
1) the net.eth0 itself isn't started - it's not in any runlevel and the "/etc/init.d/net.eth0 status" gives me "stopped", but
2) the route tables are set and interface is up and I can use the network
This seems strange to me - i suppose I shouldn't be able to use a network until I start the net.eth0 service. I believe this is caused by the hotplug system, especially the /etc/hotplug/net.agent script - renaming/removing the script solves the 2. The confusing part is hotplug is not started either (is not listed in /etc/runlevels/ and no other service depends on it), and removing the net.agent script is not a solution I'd like.
What I want - the route table and interface should be set (modified) automatically but not before the net.eth0 script is run.
PS: I don't exactly know what the network problem I've tried to solve is - it simply dies without an apparent reason randomly, so I can't access drives mounted through samba etc. I'm not sure what causes that, so I have to do some more investigation. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
texas1emt Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/112421156141919dbd894d5.jpg)
Joined: 27 Oct 2003 Posts: 352 Location: San Antonio, TX
|
Posted: Wed Nov 10, 2004 7:35 pm Post subject: |
|
|
I couldn't reproduce the same thing here. My network was dead after rebooting without net.eth0 in the default runlevel (as I expected).
However, with my Cisco Aironet 350 PCMCIA wireless card in my laptop, I was able to get a similar thing to what you talked about. Upon bootup, no net.eth1 or net.wifi0 script exists, but ifconfig showed the interface as up and I could use the network. _________________ M. Hayden - San Antonio, TX |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
toralf Developer
![Developer Developer](/images/ranks/rank-dev.gif)
![](images/avatars/10034462014367c4dfe33c1.gif)
Joined: 01 Feb 2004 Posts: 3943 Location: Hamburg
|
Posted: Thu Nov 11, 2004 1:25 pm Post subject: |
|
|
hotplug resp coldplug is starting net.eth0 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|