You are not logged in.

#1 2006-07-05 20:30:40

dedhart
Member
Registered: 2006-07-02
Posts: 123

network fails every other boot [SOLVED]

I seem to have a small prob when I startup my pc the network fails every other time. I had some probs w/ dhcp starting when I used gentoo, and found a workaround, putting "dhcpcd -k" in etc/conf.d/local.stop ran the dhcpcd -k command when I shutdown my pc, apparently arch's syntax is a bit different so I doubt etc/conf.d/local.stop exists, I tried /etc/rc.local.shutdown, but that didn't seem to do it either. Could someone please tell me the arch way to enter this command every shutdown?

Offline

#2 2006-07-05 20:40:51

Tim Theijsmeijer
Member
Registered: 2006-02-24
Posts: 20

Re: network fails every other boot [SOLVED]

How about rc.shutdown...

Offline

#3 2006-07-06 01:25:14

dedhart
Member
Registered: 2006-07-02
Posts: 123

Re: network fails every other boot [SOLVED]

/etc/rc.shutdown wrote:

if [ -x /etc/rc.local.shutdown ]; then
        /etc/rc.local.shutdown

Ok I think if I understand this right all I have to do is chmod +x /etc/rc.local.shutdown

Offline

#4 2006-07-19 12:39:00

Haiyadragon
Member
Registered: 2006-03-21
Posts: 56

Re: network fails every other boot [SOLVED]

I'm having the same problem. My motherbord has two network devices. It seems that the designations (eth0 and eth1) switch every boot. So every other boot eth0=dhcp is the right one.

Will "dhcpcd -k" fix it?

Offline

#5 2006-07-19 15:16:47

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: network fails every other boot [SOLVED]

Haiyadragon wrote:

I'm having the same problem. My motherbord has two network devices. It seems that the designations (eth0 and eth1) switch every boot. So every other boot eth0=dhcp is the right one.

Will "dhcpcd -k" fix it?

Check this: http://wiki.archlinux.org/index.php/Ude … _Each_Boot

Offline

#6 2006-07-19 16:29:18

dedhart
Member
Registered: 2006-07-02
Posts: 123

Re: network fails every other boot [SOLVED]

well using dhcpcd -k in the shutdown scripts worked for me, however setting udev rules would probably be the more correct way to fix this, it didn't occur to me that the comp. has a dial up modem as well as an ethernet port, that may be what udev was detecting every other time.

Offline

#7 2006-07-20 21:08:07

Haiyadragon
Member
Registered: 2006-03-21
Posts: 56

Re: network fails every other boot [SOLVED]

Snowman wrote:
Haiyadragon wrote:

I'm having the same problem. My motherbord has two network devices. It seems that the designations (eth0 and eth1) switch every boot. So every other boot eth0=dhcp is the right one.

Will "dhcpcd -k" fix it?

Check this: http://wiki.archlinux.org/index.php/Ude … _Each_Boot

Thanks.

Altough I find it quite weird they switch like that.

"Because udev loads all modules at once, devices are sometimes initialized in a different order. For example, with two network cards, you may notice they switch designations between eth0 and eth1"
Yeah, I don't buy it. They switched every boot.

I'm trying the udev-sanctified method. Will find out in a day or so (when I (re)boot).

Offline

#8 2006-07-21 20:03:24

Haiyadragon
Member
Registered: 2006-03-21
Posts: 56

Re: network fails every other boot [SOLVED]

Ok that worked. Had to use net0 and net1 (or anything else) instead of eth0 and eth1 but it works. Maybe a good idea to assign network devices this way by default.

Offline

Board footer

Powered by FluxBB