Gentoo Archives: gentoo-user

From: Erik <sigra@××××.se>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] HELP! Network status changes randomly, how to diagnose?
Date: Thu, 31 Aug 2006 16:05:04
Message-Id: 44F7076F.4060507@home.se
In Reply to: Re: [gentoo-user] HELP! Network status changes randomly, how to diagnose? by Frank Jahn
1 Frank Jahn wrote:
2 > Erik schrieb:
3 >> I am trying to connect my Gentoo computer to my D-Link DVG-1120 (VoIP
4 >> Gateway with NAT) again after 3 months. It used to work great, but now
5 >> the network status is changing randomly. Sometimes I can load a webpage,
6 >> but then when I click on a link I get an error message. Then it may
7 >> suddenly work again. The Internet connection to the gateway works fine
8 >> and I can make phonecalls with the phones that are connected to it. It
9 >> is the link to the computer that is broken. The computer works when
10 >> connected directly to the internet and the cable works perfectly too
11 >> (tested elsewhere). I see that it is changing randomly by executing the
12 >> command
13 >> ifconfig eth0|grep "inet addr:"
14 >> repeateldy. Sometimes I get nothing, sometimes I get:
15 >> inet addr:192.168.0.46 Bcast:192.168.0.255 Mask:255.255.255.0
16 >> It looks random. What can I do about it? Is there some software for
17 >> analyzing it?
18 > could you post your config please?
19 Thanks for your answer. Here is some configuration:
20 =================================================
21 # cat /etc/modules.autoload.d/kernel-2.6|grep -E "(b44|ipw2100)"
22 b44
23 ipw2100
24 # lsmod|grep -E "(b44|ipw2100)"
25 b44 18636 0
26 ipw2100 71028 0
27 ieee80211 26184 1 ipw2100
28 firmware_class 6976 1 ipw2100
29 # cat /etc/modules.d/b44
30 alias eth0 b44
31 # cat /etc/modules.d/ipw2100
32 alias eth1 ipw2100
33 # ls -l /etc/conf.d/net* /etc/init.d/net*
34 -rw-r--r-- 1 root root 32176 28 aug 20.43 /etc/conf.d/net.example
35 lrwxrwxrwx 1 root root 6 28 aug 20.43 /etc/init.d/net.eth0 -> net.lo
36 lrwxrwxrwx 1 root root 6 18 feb 2006 /etc/init.d/net.eth1 -> net.lo
37 -rwxr-xr-x 1 root root 30045 28 aug 20.43 /etc/init.d/net.lo
38 -rwxr-xr-x 1 root root 3046 28 aug 20.43 /etc/init.d/netmount
39 # ps aux|grep -E "(ifplug|dhcp|eth)"
40 root 1010 0.0 0.0 1472 428 ? Ss 16:27 0:00
41 /usr/sbin/ifplugd --iface=eth0
42 root 1530 0.0 0.0 1600 228 ? Ss 16:28 0:00
43 /sbin/dhcpcd -h c213-100-41-30.swipnet.se eth0
44 root 1980 0.0 0.0 1780 652 pts/1 R+ 17:03 0:00 grep -E
45 (ifplug|dhcp|eth)
46 # rc-update show
47 acpid | default
48 alsasound | default
49 bootmisc | boot
50 checkfs | boot
51 checkroot | boot
52 clock | boot
53 consolefont | boot
54 cpufreq | boot
55 gpm | boot
56 hdparm | boot
57 hostname | boot
58 hotplug | boot
59 kbdrate | boot
60 keymaps | boot
61 local | default nonetwork
62 localmount | boot
63 modules | boot
64 net.lo | boot
65 netmount | default
66 postfix | default
67 power | default
68 rmnologin | boot
69 syslog-ng | default
70 urandom | boot
71 xdm | default
72 # emerge -pv baselayout net-tools iproute2
73
74 These are the packages that would be merged, in order:
75
76 Calculating dependencies... done!
77 [ebuild R ] sys-apps/baselayout-1.12.4-r7 USE="unicode -bootstrap
78 -build -static" 0 kB
79 [ebuild R ] sys-apps/net-tools-1.60-r11 USE="nls -static" 0 kB
80 [ebuild R ] sys-apps/iproute2-2.6.15.20060110 USE="berkdb -atm
81 -minimal" 0 kB
82
83 Total size of downloads: 0 kB
84 =================================================
85
86
87 What does this mean?:
88 # /etc/init.d/net.eth0 start
89 * Service net.eth0 starting
90 * WARNING: net.eth0 has started but is inactive
91
92 I made this script to test how often it fails. It checks ifconfig 10 000
93 times and reports how many times it did NOT have an address:
94 #! /bin/bash
95 export I=0
96 export FAILURES=0
97 while test $I -lt 10000; do
98 export I=$(dc -e "$I 1 + p");
99 export FAILURES=$(dc -e "$FAILURES $(ifconfig eth0|grep "inet
100 addr:">/dev/null; echo $?) + p");
101 done
102 echo FAILURES=$FAILURES
103
104
105 When I run it I get:
106 FAILURES=9786
107 FAILURES=9787
108 FAILURES=9779
109 (numbers vary somewhat between runs)
110
111 Running the script with the computer connected directly to the Internet
112 gives:
113 FAILURES=0
114
115 What else should I do?
116 --
117 gentoo-user@g.o mailing list

Replies