You are not logged in.

#1 2009-10-18 02:43:41

bcdarwin
Member
Registered: 2009-08-18
Posts: 3

[SOLVED]net-profiles (re)start with ethernet connection failing

So I've never been able to get an ethernet connection working properly from /etc/rc.conf using the network daemon, so instead I've set up the net-profiles daemon using the following profile:

~$ cat /etc/network.d/eth-nw
CONNECTION="ethernet-iproute"
INTERFACE="eth0"
#eth0="dhcp"
#gateway="192.168.0.1"
#ROUTES=(gateway)
IP="dhcp"

Here's the network-related part from /etc/rc.conf:

HOSTNAME="SomeHost"
NETWORKS=(!wireless-open eth-nw)
# all the rest of the networking stuff is commented out

The trouble is that this fails when booting up:

:: eth-nw up   [BUSY]
  - No connection [FAIL]

But restarting net-profiles after logging in works.  In fact, the following funny thing happens: every second restart of net-profiles fails:

~$ sudo /etc/rc.d/net-profiles restart
:: eth-nw up  [DONE] 
~$ sudo /etc/rc.d/net-profiles restart
:: eth-nw down  [DONE] 
:: eth-nw up      [BUSY]
  - No connection     [FAIL] 
~$ sudo /etc/rc.d/net-profiles restart
:: eth-nw up [DONE]

Can anyone explain this?  I have used a couple of other profiles previously for various wireless networks and never had similar problems.   If I could get this working, it would be awesome, since it gets rid of all the ugly stuff in /etc/rc.conf (which is ugly and never worked anyway) and doesn't require adding "sudo dhcpcd" to some startup script.

edit: changed the title to make [SOLVED] fit ... sorry ...

Last edited by bcdarwin (2009-10-20 06:09:49)

Offline

#2 2009-10-19 11:28:37

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,221
Website

Re: [SOLVED]net-profiles (re)start with ethernet connection failing

What module are you using for your NIC?

Some modules/drivers require a QUIRKS=()-setting, f.e. 'preup' or 'predown' in your profile.

Offline

#3 2009-10-19 13:00:30

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: [SOLVED]net-profiles (re)start with ethernet connection failing

There's a problem with the cable check. Some hardware is a bit slow to come up and so netcfg incorrect believes there's nothing plugged in.

You can try this newer version and let me know how you go:
http://mess.iphitus.org/netcfg-2.5.0a1-1-any.pkg.tar.gz

Or edit /usr/lib/network/connections/ethernet-iproute and remove lines 24-27, and from /usr/lib/network/connections/ethernet remove lines 17-20.

Last edited by iphitus (2009-10-19 13:01:06)

Offline

#4 2009-10-20 05:57:02

bcdarwin
Member
Registered: 2009-08-18
Posts: 3

Re: [SOLVED]net-profiles (re)start with ethernet connection failing

The new netcfg package worked, but complains a bit:

~$ sudo /etc/rc.d/net-profiles restart
/bin/stty: standard input: Invalid argument
:: eth-nw down [-9G   [BUSY]
/bin/stty: standard input: Invalid argument [-9G   [DONE] 
:: eth-nw up  [BUSY]
find: `/var/run/network//suspend/': No such file or directory
~$

I don't ever get a [DONE], and yeah, those nonprinting characters are real, but it comes up anyway, including at boot time, which is the main thing ...

Anyway, thanks a lot!

Last edited by bcdarwin (2009-10-20 06:25:56)

Offline

#5 2009-10-20 06:11:32

sandy8
Member
Registered: 2009-10-16
Posts: 3

Re: [SOLVED]net-profiles (re)start with ethernet connection failing

Hi, bcdarwin.
Your problem seems critical and tricky. Connection restarts at an interval of time indicates that your connection establishes once between router and server. Just try out few steps that may solve your problem. Open CPU cabinet, clean NIC, uninstall all configuration and configure it with command lines.


where there is a will there is a way

Offline

Board footer

Powered by FluxBB