You are not logged in.
Greetings community,
After searching around the forum a bit, I see some people are having
a similar problem to mine, but not exactly the same. I hope someone
can offer some insight into it.
After performing a system update with pacman -Syu, the network
daemon doesn't seem to be functioning correctly on my system.
I have it in my daemons array in /etc/rc.conf; it reports no problems
at boot, likewise if I explicitly restart it with sudo /etc/rc.d/network restart.
But in both cases, no network access.
The strange thing is that if I stop the network daemon, and issue
dchpcd eth0, I get a lease from my router and I have network access.
Pings, digs etc all work fine after getting a lease with dhcpcd, but not
when restarting the network daemon explicitly. I'm using a stock 2.6.31
kernel. I hope someone can point out if I'm doing something incredibly
stupid, or offer any insight into my problem.
Thank you in advance!
Last edited by ultra_violence (2009-10-31 17:00:24)
We are Pentium Borg. Division is futile, you will be approximated.
Offline
Could you post your rc.conf, please?
I made it long
as I lacked the time to make it short...
Offline
Certainly, I haven't changed anything there since my system upgrade.
LOCALE="en_IE.utf8"
HARDWARECLOCK="localtime"
USEDIRECTISA="no"
TIMEZONE="Europe/Dublin"
KEYMAP="uk"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"
# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
MODULES=(forcedeth !sndpcsp snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-alloc snd-pcm snd-timer snd snd-hda-intel soundcore !ipv6)
# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"
# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="darkstar"
eth0="dhcp"
INTERFACES=(eth0)
gateway="default gw 192.168.1.1"
ROUTES=(!gateway)
# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
# - prefix a daemon with a ! to disable it
# - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng @iptables @dnsmasq @sshd @network @crond @sensors)
Last edited by ultra_violence (2009-10-30 12:06:14)
We are Pentium Borg. Division is futile, you will be approximated.
Offline
Is there any indication as to why in your log files, eg. daemons.log, dmesg.log, messages.log etc?
I made it long
as I lacked the time to make it short...
Offline
Nothing erroneous sticks out in either daemon.log, dmesg.log or messages.log.
I started all the daemons in the foreground, ie took the @ from in front of them
all in /etc/rc.conf, and none of them report any failure.
ifconfig tells me eth0 has an IP, but there aren't any servers in /etc/resolv.conf.
When I use dhcpcd, I get nameservers, a lease and a network connection, so
I don't think there's any problem with hardware, either my NIC or router.
We are Pentium Borg. Division is futile, you will be approximated.
Offline
You could check few things:
1. Change DEAMONS line to this:
DAEMONS=(syslog-ng network iptables dnsmasq @sshd @crond @sensors)
and see if there are any errors.
2. Post the output of these commands
ifconfig -a
route
ps auxww
and these files
/etc/resolv.conf
right after boot.
Offline
No errors present themselves when I rearranged the DAEMONS array in
/etc/rc.conf as you suggested.
After boot we have:
The output of ifconfig -a:
eth0 Link encap:Ethernet HWaddr 00:1F:C6:4A:E1:4F
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21f:c6ff:fe4a:e14f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:590 (590.0 b) TX bytes:1158 (1.1 Kb)
Interrupt:26 Base address:0xc000
eth1 Link encap:Ethernet HWaddr 00:1F:C6:4A:E1:50
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:21 Base address:0xa000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
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
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
The output of route:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 202 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 202 0 0 eth0
The output of ps auxww:
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 1.7 0.0 1684 560 ? Ss 16:08 0:00 ini
root 2 0.0 0.0 0 0 ? S< 16:08 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? S< 16:08 0:00 [migration/0]
root 4 0.0 0.0 0 0 ? S< 16:08 0:00 [ksoftirqd/0]
root 5 0.0 0.0 0 0 ? S< 16:08 0:00 [watchdog/0]
root 6 0.0 0.0 0 0 ? S< 16:08 0:00 [migration/1]
root 7 0.0 0.0 0 0 ? S< 16:08 0:00 [ksoftirqd/1]
root 8 0.0 0.0 0 0 ? S< 16:08 0:00 [watchdog/1]
root 9 0.0 0.0 0 0 ? S< 16:08 0:00 [migration/2]
root 10 0.0 0.0 0 0 ? S< 16:08 0:00 [ksoftirqd/2]
root 11 0.0 0.0 0 0 ? S< 16:08 0:00 [watchdog/2]
root 12 0.0 0.0 0 0 ? S< 16:08 0:00 [migration/3]
root 13 0.0 0.0 0 0 ? S< 16:08 0:00 [ksoftirqd/3]
root 14 0.0 0.0 0 0 ? S< 16:08 0:00 [watchdog/3]
root 15 0.0 0.0 0 0 ? S< 16:08 0:00 [events/0]
root 16 0.0 0.0 0 0 ? S< 16:08 0:00 [events/1]
root 17 0.0 0.0 0 0 ? S< 16:08 0:00 [events/2]
root 18 0.0 0.0 0 0 ? S< 16:08 0:00 [events/3]
root 19 0.0 0.0 0 0 ? S< 16:08 0:00 [khelper]
root 20 0.0 0.0 0 0 ? S< 16:08 0:00 [async/mgr]
root 21 0.0 0.0 0 0 ? S< 16:08 0:00 [kblockd/0]
root 22 0.0 0.0 0 0 ? S< 16:08 0:00 [kblockd/1]
root 23 0.0 0.0 0 0 ? S< 16:08 0:00 [kblockd/2]
root 24 0.0 0.0 0 0 ? S< 16:08 0:00 [kblockd/3]
root 25 0.0 0.0 0 0 ? S< 16:08 0:00 [kacpid]
root 26 0.0 0.0 0 0 ? S< 16:08 0:00 [kacpi_notify]
root 27 0.0 0.0 0 0 ? S< 16:08 0:00 [kacpi_hotplug]
root 28 0.0 0.0 0 0 ? S< 16:08 0:00 [kseriod]
root 29 0.0 0.0 0 0 ? S 16:08 0:00 [khungtaskd]
root 30 0.0 0.0 0 0 ? S 16:08 0:00 [pdflush]
root 31 0.0 0.0 0 0 ? S 16:08 0:00 [pdflush]
root 32 0.0 0.0 0 0 ? S< 16:08 0:00 [kswapd0]
root 33 0.0 0.0 0 0 ? S< 16:08 0:00 [aio/0]
root 34 0.0 0.0 0 0 ? S< 16:08 0:00 [aio/1]
root 35 0.0 0.0 0 0 ? S< 16:08 0:00 [aio/2]
root 36 0.0 0.0 0 0 ? S< 16:08 0:00 [aio/3]
root 37 0.0 0.0 0 0 ? S< 16:08 0:00 [crypto/0]
root 38 0.0 0.0 0 0 ? S< 16:08 0:00 [crypto/1]
root 39 0.0 0.0 0 0 ? S< 16:08 0:00 [crypto/2]
root 40 0.0 0.0 0 0 ? S< 16:08 0:00 [crypto/3]
root 534 0.0 0.0 0 0 ? S< 16:08 0:00 [ata/0]
root 536 0.0 0.0 0 0 ? S< 16:08 0:00 [ata/1]
root 541 0.0 0.0 0 0 ? S< 16:08 0:00 [ata/2]
root 542 0.0 0.0 0 0 ? S< 16:08 0:00 [ata/3]
root 543 0.0 0.0 0 0 ? S< 16:08 0:00 [ata_aux]
root 550 0.0 0.0 0 0 ? S< 16:08 0:00 [scsi_eh_0]
root 551 0.0 0.0 0 0 ? S< 16:08 0:00 [scsi_eh_1]
root 554 0.0 0.0 0 0 ? S< 16:08 0:00 [scsi_eh_2]
root 555 0.0 0.0 0 0 ? S< 16:08 0:00 [scsi_eh_3]
root 558 0.0 0.0 0 0 ? S< 16:08 0:00 [scsi_eh_4]
root 559 0.0 0.0 0 0 ? S< 16:08 0:00 [scsi_eh_5]
root 565 0.0 0.0 0 0 ? S< 16:08 0:00 [scsi_eh_6]
root 569 0.0 0.0 0 0 ? S< 16:08 0:00 [scsi_eh_7]
root 688 0.0 0.0 0 0 ? S< 16:08 0:00 [reiserfs/0]
root 689 0.0 0.0 0 0 ? S< 16:08 0:00 [reiserfs/1]
root 690 0.0 0.0 0 0 ? S< 16:08 0:00 [reiserfs/2]
root 691 0.0 0.0 0 0 ? S< 16:08 0:00 [reiserfs/3]
root 716 0.0 0.0 2264 1048 ? S<s 16:08 0:00 /sbin/udevd --daemon
root 1616 0.0 0.0 0 0 ? S< 16:08 0:00 [ksuspend_usbd]
root 1620 0.0 0.0 0 0 ? S< 16:08 0:00 [khubd]
root 1621 0.0 0.0 0 0 ? S< 16:08 0:00 [kpsmoused]
root 1818 0.0 0.0 0 0 ? S< 16:08 0:00 [khpsbpkt]
root 1821 0.0 0.0 0 0 ? S< 16:08 0:00 [knodemgrd_0]
root 1931 0.0 0.0 0 0 ? S< 16:08 0:00 [hd-audio0]
root 2147 0.0 0.0 0 0 ? S< 16:08 0:00 [scsi_eh_8]
root 2148 0.0 0.0 0 0 ? S< 16:08 0:00 [usb-storage]
root 2330 0.0 0.0 0 0 ? S< 16:08 0:00 [usbhid_resumer]
root 3117 0.0 0.0 2600 812 ? Ss 16:08 0:00 /sbin/mount.ntfs-3g /dev/sdb1 /mnt/thor -o rw,noexec,nosuid,nodev,user,force,umask=0
root 3120 0.0 0.0 2600 816 ? Ss 16:08 0:00 /sbin/mount.ntfs-3g /dev/sdc1 /mnt/odin -o rw,noexec,nosuid,nodev,user,force,umask=0
root 3234 0.0 0.0 4664 488 ? S 16:08 0:00 supervising syslog-ng
root 3235 0.0 0.0 4844 1772 ? Ss 16:08 0:00 /usr/sbin/syslog-ng
root 3261 0.0 0.0 1872 316 ? Ss 16:08 0:00 /sbin/dhcpcd -q -C resolv.conf eth0
root 3292 0.0 0.0 2260 1016 ? S< 16:08 0:00 /sbin/udevd --daemon
root 3293 0.0 0.0 2260 956 ? S< 16:08 0:00 /sbin/udevd --daemon
nobody 3295 0.0 0.0 1844 488 ? S 16:08 0:00 /usr/sbin/dnsmasq
root 3301 0.0 0.0 2372 1124 tty1 Ss 16:08 0:00 /bin/login --
root 3302 0.0 0.0 1684 528 tty2 Ss+ 16:08 0:00 /sbin/agetty -8 38400 tty2 linux
root 3303 0.0 0.0 1684 524 tty3 Ss+ 16:08 0:00 /sbin/agetty -8 38400 tty3 linux
root 3304 0.0 0.0 1684 532 tty4 Ss+ 16:08 0:00 /sbin/agetty -8 38400 tty4 linux
root 3305 0.0 0.0 1684 528 tty5 Ss+ 16:08 0:00 /sbin/agetty -8 38400 tty5 linux
root 3306 0.0 0.0 1684 528 tty6 Ss+ 16:08 0:00 /sbin/agetty -8 38400 tty6 linux
root 3322 0.0 0.0 1720 572 ? S 16:08 0:00 /usr/sbin/crond
root 3333 0.0 0.0 6164 972 ? Ss 16:08 0:00 /usr/sbin/sshd
conor 3336 0.0 0.0 5068 1828 tty1 S 16:08 0:00 -bash
conor 3342 0.0 0.0 4076 1028 tty1 R+ 16:08 0:00 ps auxww
And finally the contents of /etc/resolv.conf:
# Generated by dhcpcd
# /etc/resolv.conf.head can replace this line
# /etc/resolv.conf.tail can replace this line
Also, in daemon.log this is confirmed by:
Oct 31 16:08:25 darkstar dnsmasq[3295]: no servers found in /etc/resolv.conf, will retry
I hope something here sheds some light on the problem.
Last edited by ultra_violence (2009-10-31 16:23:00)
We are Pentium Borg. Division is futile, you will be approximated.
Offline
And here it is:
root 3261 0.0 0.0 1872 316 ? Ss 16:08 0:00 /sbin/dhcpcd -q -C resolv.conf eth0
The "-C resolv.conf" option is causing the problem. Check /etc/conf.d/dhcpcd and /etc/rc.d/network files if you didn't add this option there and remove the option.
Last edited by robertp (2009-10-31 17:06:55)
Offline
Gah, how can I not have seen that!
That solved it, thank you robertp - I owe you a whiskey!
We are Pentium Borg. Division is futile, you will be approximated.
Offline