You are not logged in.

#1 2012-06-16 22:26:38

MoonSwan
Member
From: Great White North
Registered: 2008-01-23
Posts: 881

Netcfg & net-auto-wired issue

I am having trouble with Netcfg auto-wired setting.  I've looked at the wiki page for Netcfg and followed all of its advice.  As far as I can tell, my configuration should work.  However, the only way I can get connected to my LAN/Internet is if I use "netcfg-menu" and select my network from there.
For whatever reason my ethernet profile will not connect automatically when starting up the computer.  To make sure ifplugd works I've disconnected the wire from the comp to the switch and reconnected it; ifplugd then resumes my connection.  At this point I have no idea what I'm doing wrong so I'm hoping someone will kindly point out my error.

Daemons line from rc.conf:

DAEMONS=(@syslog-ng @dbus @network @net-profiles @net-auto-wired @ifplugd @ntpd @sshd @crond @nscd)

/etc/conf.d/netcfg settings:

#NETWORKS=(menu)

## custom ~HL June 2012
NETWORKS=(wired-dhcp)

## Specify the name of your wired interface for net-auto-wired
WIRED_INTERFACE="eth0"

## Specify the name of your wireless interface for net-auto-wireless
#WIRELESS_INTERFACE="wlan0"

## List of profiles that can be started by net-auto-wireless
## defaults to the list of all wireless profiles
#AUTO_PROFILES="profile1 profile2"

My netcfg profile for ethernet, wired-dhcp:

CONNECTION='ethernet'
DESCRIPTION='A basic dhcp ethernet connection using iproute'
INTERFACE='eth0'
IP='dhcp'
## for DHCPv6
#IP6='dhcp'
## for IPv6 autoconfiguration
#IP6='stateless'
## Prefer this interface (eth0) to be connected over all other types of interfaces netcfg will try.

AUTO_WIRED=1

I've looked through a few of the logs but the only thing I see are lines like these:

Jun 12 16:29:15 BlueYunzi dhcpcd[384]: eth0: releasing lease of 192.168.0.18

Jun 12 16:30:50 BlueYunzi dhcpcd[329]: eth0: leased 192.168.0.18 for 604800 seconds

Jun 12 16:54:36 BlueYunzi dhcpcd[463]: received SIGHUP, releasing

Jun 12 16:54:36 BlueYunzi dhcpcd[463]: eth0: releasing lease of 192.168.0.18

Jun 12 16:54:36 BlueYunzi dhcpcd[463]: eth0: removing interface

I'm pretty sure those lines only reflect my experimentation with netcfg.

Last edited by MoonSwan (2012-06-16 22:45:56)

Offline

#2 2012-06-16 23:08:22

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,429

Re: Netcfg & net-auto-wired issue

I'm not using netcfg (but network only), but what happens if you leave out the "network" daemon and re-check you don't have eth0 assigned in rc.conf?

Offline

#3 2012-06-17 06:02:24

adam777
Member
Registered: 2012-05-28
Posts: 161

Re: Netcfg & net-auto-wired issue

Following Strike0's advice, I think you actually should remove the network daemon from your daemon array, seems like some sort of race conditions between network and netcfg.
Removing the network interface from rc.conf won't hurt either.
Net-auto-wired by itself is sufficient.

Last edited by adam777 (2012-06-17 06:03:56)

Offline

#4 2012-06-17 07:35:37

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Netcfg & net-auto-wired issue

The same applies to net-profiles and ifplugd. net-auto-wired should be the only network script listed in your DAEMONS array.

Offline

#5 2012-06-17 20:52:49

MoonSwan
Member
From: Great White North
Registered: 2008-01-23
Posts: 881

Re: Netcfg & net-auto-wired issue

As suggested I did remove the other network-related daemons from my rc.conf file.  I also have made sure eth0 is not referenced at all in rc.conf.  It is present in my /etc/conf.d/netcfg file where it should be, I believe.

Unfortunately netcfg still refuses to start on boot-up (cold or warm boot).  I am at a total loss as to why this configuration does not work.


My current rc.conf (with the changes):

# LOCALIZATION
# ------------
HARDWARECLOCK="UTC"
TIMEZONE="America/Edmonton"
KEYMAP=
CONSOLEFONT="Lat2-Terminus16"
CONSOLEMAP=
LOCALE=
DAEMON_LOCALE="yes"
USECOLOR="yes"

# HARDWARE
# --------
#MODULES=(!arusb_lnx !ar9170usb )
MODULES=()
USEDMRAID="no"
USEBTRFS="no"
USENILFS="yes"
USELVM="yes"

# NETWORKING
# ----------
HOSTNAME=BlueYunzi

#interface=
#address=
#netmask=
#broadcast=
#gateway=

NETWORK_PERSIST="no"

# DAEMONS
# -------
#
DAEMONS=(@syslog-ng @dbus @net-auto-wired @ntpd @sshd @crond @nscd)

My hosts file:

# /etc/hosts: static lookup table for host names
#

#<ip-address>	<hostname.domain.org>	<hostname>
127.0.0.1		localhost.localdomain	BlueYunzi

My /etc/conf.d/netcfg file has not changed and I have installed no networking utilities since first installing Arch on this computer.  IE I have the stock dhcpcd and net-utilities as well as whatever other networking utilities necessary for wired/wireless configuration.

I grepped the word "net" through /var/log/everything.log file and managed to only find these entries:

Jun 11 18:11:46 BlueYunzi kernel: [    0.014225] Initializing cgroup subsys net_cls
Jun 11 18:11:46 BlueYunzi kernel: [    0.902195] audit: initializing netlink socket (disabled)
Jun 11 18:11:46 BlueYunzi kernel: [    1.503874] Initializing network drop monitor service
Jun 12 16:17:31 BlueYunzi kernel: [    0.014233] Initializing cgroup subsys net_cls
Jun 12 16:17:31 BlueYunzi kernel: [    0.902213] audit: initializing netlink socket (disabled)
Jun 12 16:17:31 BlueYunzi kernel: [    1.503920] Initializing network drop monitor service
Jun 12 16:25:03 BlueYunzi kernel: [    0.014225] Initializing cgroup subsys net_cls
Jun 12 16:25:03 BlueYunzi kernel: [    0.902197] audit: initializing netlink socket (disabled)
Jun 12 16:25:03 BlueYunzi kernel: [    1.503943] Initializing network drop monitor service
Jun 12 16:27:09 BlueYunzi kernel: [    0.014222] Initializing cgroup subsys net_cls
Jun 12 16:27:09 BlueYunzi kernel: [    0.902178] audit: initializing netlink socket (disabled)
Jun 12 16:27:09 BlueYunzi kernel: [    1.503900] Initializing network drop monitor service
Jun 12 16:30:46 BlueYunzi kernel: [    0.014233] Initializing cgroup subsys net_cls
Jun 12 16:30:46 BlueYunzi kernel: [    0.902211] audit: initializing netlink socket (disabled)
Jun 12 16:30:46 BlueYunzi kernel: [    1.503931] Initializing network drop monitor service

I have manually combed through all the logs on the system and I can't find any errors or oddities regarding the network or eth0.  I'm certain this is a misconfiguration error somewhere on my part but I'm running out of ideas about where to look next.

Last edited by MoonSwan (2012-06-17 20:55:32)

Offline

#6 2012-06-17 22:04:45

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,429

Re: Netcfg & net-auto-wired issue

Why does your grep not show a line for the Ethernet module?
You could try starting dbus in foreground, i.e. removing the @.

Offline

Board footer

Powered by FluxBB