Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
baselayout-1.11.9-r1 autostarting net.ethX problem
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
Master One
l33t
l33t


Joined: 25 Aug 2003
Posts: 754
Location: Austria

PostPosted: Fri Feb 25, 2005 8:01 pm    Post subject: baselayout-1.11.9-r1 autostarting net.ethX problem Reply with quote

eth0: e1000 (compiled as module)
eth1: ipw2200 (only available as module)

nothing in /etc/modules.autoload.d/kernel-2.6 (using coldplug in boot runlevel instead)

Relevant content of /etc/init.d:
Code:
lrwxrwxrwx   1 root root     6 24. Feb 22:05 net.eth0 -> net.lo
lrwxrwxrwx   1 root root     6 25. Feb 14:59 net.eth1 -> net.lo
-rwxr-xr-x   1 root root 24259 24. Feb 22:05 net.lo

net.lo is in boot, net.eth0 & net.eth1 are not in any runlevel

Relevant content of /etc/conf.d/rc:
Code:
RC_PARALLEL_STARTUP="yes"
RC_NET_STRICT_CHECKING="no"

Content of /etc/conf.d/net:
Code:
config_eth0=( "dhcp" )
dhcpcd_eth0="-t 10"
config_eth1=( "dhcp" )
dhcpcd_eth1="-t 10"

Content of /etc/conf.d/wireless:
Code:
mac_essid_xxxxxxxxxxxx="xxxxx"
key_PWLAN="xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xx enc open"
preferred_aps=( "xxxxx" )
iwconfig_eth1="power timeout 300u all"


The strange thing is now, that both (eth0 & eth1) get started during boot (eth0 starts fine, but eth1 can't connect to the AP):
Code:
# ifconfig
eth0      Protokoll:Ethernet  Hardware Adresse 00:11:25:2F:8B:E2
          inet Adresse:192.168.1.218  Bcast:192.168.1.255  Maske:255.255.255.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:275 errors:0 dropped:0 overruns:0 frame:0
          TX packets:77 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000
          RX bytes:22378 (21.8 Kb)  TX bytes:8804 (8.5 Kb)
          Basisadresse:0x8000 Speicher:c0220000-c0240000

lo        Protokoll:Lokale Schleife
          inet Adresse:127.0.0.1  Maske:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      unassociated  ESSID:off/any
          Mode:Managed  Channel=0  Access Point: 00:00:00:00:00:00
          Bit Rate=0 kb/s   Tx-Power=255 dBm
          RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0


On one hand, I don't understand, why eth0 & eth1 get started at all, since they are not in any runlevel, on the other hand I don't understand, why eth1 can not connect to the AP when it comes up (because "/etc/init.d/net.eth1 restart" brings it up without any problem then).

There is nothing unusual in dmesg, but looking at the loaded modules after boot shows the following:
Code:
 # lsmod
Module                  Size  Used by
parport_pc             30596  0
parport                20096  1 parport_pc
8250_pnp                8000  0
8250                   20132  1 8250_pnp
serial_core            18944  1 8250
ipw2200               128616  0
ieee80211              36164  1 ipw2200
ieee80211_crypt         4548  2 ipw2200,ieee80211
e1000                  80564  0
snd_intel8x0m          14404  0
snd_intel8x0           27328  0
snd_ac97_codec         68600  2 snd_intel8x0m,snd_intel8x0
snd_pcm                81096  3 snd_intel8x0m,snd_intel8x0,snd_ac97_codec
snd_timer              21060  1 snd_pcm
snd                    45988  5 snd_intel8x0m,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
snd_page_alloc          7364  3 snd_intel8x0m,snd_intel8x0,snd_pcm
i2c_i801                7308  0
i2c_core               17680  1 i2c_i801
intel_agp              18588  1
agpgart                27112  1 intel_agp

For the unfamiliar eye: The modules "ieee80211_crypt_wep" and "arc4" are missing, these get loaded when doing a "/etc/init.d/net.eth1 restart" (I already tried putting these two in /etc/modules.autoload.d/kernel-2.6, but that didn't change the problem, that no connect to the AP can be established during boot).

Is it about a bug in the latest baselayout, or am I missing something?
_________________
Las torturas mentales de la CIA
Back to top
View user's profile Send private message
transient
l33t
l33t


Joined: 13 Jan 2005
Posts: 759

PostPosted: Sat Feb 26, 2005 4:48 am    Post subject: Reply with quote

coldplug is to blame for the starting of your net.eth0 script.
As part of the coldplug script for detection of a network card, it starts the relevant network service.
The file, if youre interested in either looking at how it works or editing out the relevant section, is /etc/hotplug/net.agent This is the networking agent, and you will find the gentoo section a bit down in the file. To stop the autostarting of net.eth0 etc..., simply comment out this section
Back to top
View user's profile Send private message
Master One
l33t
l33t


Joined: 25 Aug 2003
Posts: 754
Location: Austria

PostPosted: Sat Feb 26, 2005 10:13 am    Post subject: Reply with quote

Thank's, commenting the relevant parts in /etc/hotplug/net.agent indeed did it. I now added net.eth0 to the default runlevel again, and everything seems to be working normally.
_________________
Las torturas mentales de la CIA
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