Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bootup wireless problem -- dhcp already on [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
Naive
n00b
n00b


Joined: 07 Jan 2004
Posts: 7

PostPosted: Fri Feb 11, 2005 3:48 pm    Post subject: Bootup wireless problem -- dhcp already on [SOLVED] Reply with quote

Okay I've been fighting with this problem for the last day and I'm not sure how to fix it. I have my network setup working like the docs say to, but there seems to be a bug in the net.lo script because it keeps bringing up my dhcp before the net.eth0 script has time to set all the wireless configurations. So when eth0 comes around in default it gives the error "dhcpcd already running on eth0" and it is. I took out net.eth0 so I could run it manually to test, but after reboot I found dhcpcd was already running. So, I removed net.lo from boot and put net.eth0 back in default and it all runs smooth.

Does anyone know how to get more info from the rc-scripts on bootup or know a fix for the net.lo script so I can fix this myself?

I'm running:
    baselayout-1.11.9-r1
    wireless-tools-28_pre4
    kernel 2.6.10-gentoo-r7


my net in /etc/conf.d
Code:
config_eth1=( "10.1.1.100/24" )
config_eth0=( "dhcp" )


my wireless is
Code:
preferred_aps=( "myessid" )
associate_order="preferredonly"

essid_eth0="myessid"
mode_eth0="managed"
iwconfig_eth0="sens 3"
channel_eth0="6"
key_myessid="HEX_HERE enc open"

dhcpcd_myessid="-t 20 -G 192.168.0.1"
fallback_myessid=( "192.168.0.6" )


Any help would be appreciated.


Last edited by Naive on Tue Feb 15, 2005 5:11 am; edited 1 time in total
Back to top
View user's profile Send private message
allan
n00b
n00b


Joined: 24 Feb 2003
Posts: 48
Location: Ann Arbor,Michigan

PostPosted: Fri Feb 11, 2005 9:23 pm    Post subject: Reply with quote

I'm encountering the same issue.

baselayout-1.11.9-r1
wirelesstools-27
kernel 2.6.9-gentoo-13 (dev sources)

All my interfaces are managed by dhcp, so my /etc/conf.d/net file is the default blank one.

It does come up correctly if I do "/etc/net.eth0 restart" by hand.
Back to top
View user's profile Send private message
Naive
n00b
n00b


Joined: 07 Jan 2004
Posts: 7

PostPosted: Fri Feb 11, 2005 10:49 pm    Post subject: Reply with quote

If you take net.lo out of boot your dhcp should come up right: at least the first one. I moved net.lo into my local.start file just to have it come up, though late.

Not a good fix but it'll work for now.
Back to top
View user's profile Send private message
sibov
Tux's lil' helper
Tux's lil' helper


Joined: 09 Feb 2004
Posts: 147
Location: Germany

PostPosted: Sat Feb 12, 2005 11:57 am    Post subject: Reply with quote

same problem 2 me :?

I try to reboot without net.lo in rc-script. Let's see if it really works.

:wink:
_________________
Gentoo 2.6.17-gentoo-r5 with dmraid Raid0 Dualboot
AMD64 X2 3800+, 4x512MB DDR PC3200Pro Corsair Geforce EN6600GT silencer @ 256MB
4x250GB SATAII Samsung SP120, Asus A8N Premium, Plextor PX712SA DVDRW
Logitech Dinovo, SB Audigy4
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Sat Feb 12, 2005 6:24 pm    Post subject: Reply with quote

https://bugs.gentoo.org/show_bug.cgi?id=78495
Back to top
View user's profile Send private message
Naive
n00b
n00b


Joined: 07 Jan 2004
Posts: 7

PostPosted: Tue Feb 15, 2005 5:10 am    Post subject: Thanks Reply with quote

Just wanted to say thanks this was the problem and it solved it for me. The removing net.lo just worked on a warm reboot, guess it just sped up the boot enough that the config got set before dhcpcd quit ...
Back to top
View user's profile Send private message
kzan
n00b
n00b


Joined: 08 Jan 2004
Posts: 50
Location: Grand Haven, MI

PostPosted: Sat Feb 19, 2005 5:06 pm    Post subject: Reply with quote

UberLord wrote:
https://bugs.gentoo.org/show_bug.cgi?id=78495

I have been struck with this problem and it seems to be directly related to the bug you have shown above. Forgive me if this is a really stupid question, but the link gives a description of the problem and a patch, but no clue on how or where to install the patch! Any help would be greatly appreciated....thank you.
_________________
badger is my hero
Back to top
View user's profile Send private message
fjalvingh
n00b
n00b


Joined: 10 Jun 2004
Posts: 6

PostPosted: Sun Feb 20, 2005 12:22 pm    Post subject: Reply with quote

Kzan:
You need to login as root, cd to /etc/hotplug (where the net.agent file lives) and do:

patch < /home/xxx/net.agent.patch

Good luck ;-)

Frits
Back to top
View user's profile Send private message
kzan
n00b
n00b


Joined: 08 Jan 2004
Posts: 50
Location: Grand Haven, MI

PostPosted: Sun Feb 20, 2005 11:09 pm    Post subject: Reply with quote

fjalvingh wrote:
Kzan:
You need to login as root, cd to /etc/hotplug (where the net.agent file lives) and do:

patch < /home/xxx/net.agent.patch

Good luck ;-)

Frits


ahhhhh...you rock..thanks. That patched worked perfect!
_________________
badger is my hero
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