From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GItls-000459-UV for garchives@archives.gentoo.org; Thu, 31 Aug 2006 21:08:21 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k7VL61L0018025; Thu, 31 Aug 2006 21:06:01 GMT Received: from swip.net (mailfe03.swip.net [212.247.154.65]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k7VL3nkV016048 for ; Thu, 31 Aug 2006 21:03:49 GMT X-T2-Posting-ID: xM5+dyx+bA+XkPEuvlDX1Q== X-Cloudmark-Score: 0.000000 [] Received: from [213.100.41.17] (HELO [192.168.0.16]) by mailfe03.swip.net (CommuniGate Pro SMTP 5.0.8) with ESMTP id 275699204 for gentoo-user@lists.gentoo.org; Thu, 31 Aug 2006 23:03:49 +0200 Message-ID: <44F74EE5.6000805@home.se> Date: Thu, 31 Aug 2006 23:04:37 +0200 From: Erik User-Agent: Thunderbird 1.5.0.5 (X11/20060806) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] HELP! Network status changes randomly, how to diagnose? References: <44F6153A.6070201@home.se> <44F6162D.5000501@gmx.de> <44F7076F.4060507@home.se> In-Reply-To: <44F7076F.4060507@home.se> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 51fb5487-2d17-4c0d-a7f9-c476a20c9556 X-Archives-Hash: 0c1982db8cc43b80b88b0bf9d3775da1 Erik wrote: > Frank Jahn wrote: >> Erik schrieb: >>> I am trying to connect my Gentoo computer to my D-Link DVG-1120 (VoIP >>> Gateway with NAT) again after 3 months. It used to work great, but now >>> the network status is changing randomly. Sometimes I can load a >>> webpage, >>> but then when I click on a link I get an error message. Then it may >>> suddenly work again. The Internet connection to the gateway works fine >>> and I can make phonecalls with the phones that are connected to it. It >>> is the link to the computer that is broken. The computer works when >>> connected directly to the internet and the cable works perfectly too >>> (tested elsewhere). I see that it is changing randomly by executing the >>> command >>> ifconfig eth0|grep "inet addr:" >>> repeateldy. Sometimes I get nothing, sometimes I get: >>> inet addr:192.168.0.46 Bcast:192.168.0.255 >>> Mask:255.255.255.0 >>> It looks random. What can I do about it? Is there some software for >>> analyzing it? >> could you post your config please? > Thanks for your answer. Here is some configuration: > ================================================= > # cat /etc/modules.autoload.d/kernel-2.6|grep -E "(b44|ipw2100)" > b44 > ipw2100 > # lsmod|grep -E "(b44|ipw2100)" > b44 18636 0 > ipw2100 71028 0 > ieee80211 26184 1 ipw2100 > firmware_class 6976 1 ipw2100 > # cat /etc/modules.d/b44 > alias eth0 b44 > # cat /etc/modules.d/ipw2100 > alias eth1 ipw2100 > # ls -l /etc/conf.d/net* /etc/init.d/net* > -rw-r--r-- 1 root root 32176 28 aug 20.43 /etc/conf.d/net.example > lrwxrwxrwx 1 root root 6 28 aug 20.43 /etc/init.d/net.eth0 -> net.lo > lrwxrwxrwx 1 root root 6 18 feb 2006 /etc/init.d/net.eth1 -> net.lo > -rwxr-xr-x 1 root root 30045 28 aug 20.43 /etc/init.d/net.lo > -rwxr-xr-x 1 root root 3046 28 aug 20.43 /etc/init.d/netmount > # ps aux|grep -E "(ifplug|dhcp|eth)" > root 1010 0.0 0.0 1472 428 ? Ss 16:27 0:00 > /usr/sbin/ifplugd --iface=eth0 > root 1530 0.0 0.0 1600 228 ? Ss 16:28 0:00 > /sbin/dhcpcd -h c213-100-41-30.swipnet.se eth0 > root 1980 0.0 0.0 1780 652 pts/1 R+ 17:03 0:00 grep > -E (ifplug|dhcp|eth) > # rc-update show > acpid | default > alsasound | default > bootmisc | boot > checkfs | boot > checkroot | boot > clock | boot > consolefont | boot > cpufreq | boot > gpm | boot > hdparm | boot > hostname | boot > hotplug | boot > kbdrate | boot > keymaps | boot > local | default nonetwork > localmount | boot > modules | boot > net.lo | boot > netmount | default > postfix | default > power | default > rmnologin | boot > syslog-ng | default > urandom | boot > xdm | default > # emerge -pv baselayout net-tools iproute2 > > These are the packages that would be merged, in order: > > Calculating dependencies... done! > [ebuild R ] sys-apps/baselayout-1.12.4-r7 USE="unicode -bootstrap > -build -static" 0 kB > [ebuild R ] sys-apps/net-tools-1.60-r11 USE="nls -static" 0 kB > [ebuild R ] sys-apps/iproute2-2.6.15.20060110 USE="berkdb -atm > -minimal" 0 kB > > Total size of downloads: 0 kB > ================================================= > > > What does this mean?: > # /etc/init.d/net.eth0 start > * Service net.eth0 starting > * WARNING: net.eth0 has started but is inactive > > I made this script to test how often it fails. It checks ifconfig 10 > 000 times and reports how many times it did NOT have an address: > #! /bin/bash > export I=0 > export FAILURES=0 > while test $I -lt 10000; do > export I=$(dc -e "$I 1 + p"); > export FAILURES=$(dc -e "$FAILURES $(ifconfig eth0|grep "inet > addr:">/dev/null; echo $?) + p"); > done > echo FAILURES=$FAILURES > > > When I run it I get: > FAILURES=9786 > FAILURES=9787 > FAILURES=9779 > (numbers vary somewhat between runs) > > Running the script with the computer connected directly to the > Internet gives: > FAILURES=0 > > What else should I do? I have narrowed down the problem further. I am now connected with a static IP address and it works just fine. # grep "^[^#]" /etc/conf.d/net.eth0 config_eth0=( "192.168.0.16 netmask 255.255.255.0 broadcast 192.168.0.255" ) routes_eth0=( "default via 192.168.0.1" # IPv4 default route ) So I guess it must be the DHCP client on the computer that fails somehow. -- gentoo-user@gentoo.org mailing list