* [gentoo-user] HELP! Network status changes randomly, how to diagnose?
@ 2006-08-30 18:37 Erik
0 siblings, 0 replies; 10+ messages in thread
From: Erik @ 2006-08-30 18:37 UTC (permalink / raw
To: gentoo-user
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?
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* [gentoo-user] HELP! Network status changes randomly, how to diagnose?
@ 2006-08-30 22:46 Erik
2006-08-30 22:50 ` Frank Jahn
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Erik @ 2006-08-30 22:46 UTC (permalink / raw
To: gentoo-user
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?
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] HELP! Network status changes randomly, how to diagnose?
2006-08-30 22:46 Erik
@ 2006-08-30 22:50 ` Frank Jahn
2006-08-31 15:59 ` Erik
2006-08-30 23:43 ` Neil Bothwick
2006-08-31 9:54 ` Roman Zilka
2 siblings, 1 reply; 10+ messages in thread
From: Frank Jahn @ 2006-08-30 22:50 UTC (permalink / raw
To: gentoo-user
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?
regards
Frank
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] HELP! Network status changes randomly, how to diagnose?
2006-08-30 22:50 ` Frank Jahn
@ 2006-08-31 15:59 ` Erik
2006-08-31 21:04 ` Erik
0 siblings, 1 reply; 10+ messages in thread
From: Erik @ 2006-08-31 15:59 UTC (permalink / raw
To: gentoo-user
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?
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] HELP! Network status changes randomly, how to diagnose?
2006-08-31 15:59 ` Erik
@ 2006-08-31 21:04 ` Erik
2006-08-31 21:42 ` Mick
0 siblings, 1 reply; 10+ messages in thread
From: Erik @ 2006-08-31 21:04 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] HELP! Network status changes randomly, how to diagnose?
2006-08-31 21:04 ` Erik
@ 2006-08-31 21:42 ` Mick
2006-09-01 9:42 ` Erik
0 siblings, 1 reply; 10+ messages in thread
From: Mick @ 2006-08-31 21:42 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 344 bytes --]
On Thursday 31 August 2006 22:04, Erik wrote:
> I have narrowed down the problem further. I am now connected with a
> static IP address and it works just fine.
I guess, there must be a setting in sysctl or some config file which sets how
often an IP address is renewed. Did you interefere with it by any chance?
--
Regards,
Mick
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] HELP! Network status changes randomly, how to diagnose?
2006-08-31 21:42 ` Mick
@ 2006-09-01 9:42 ` Erik
0 siblings, 0 replies; 10+ messages in thread
From: Erik @ 2006-09-01 9:42 UTC (permalink / raw
To: gentoo-user
Mick wrote:
> On Thursday 31 August 2006 22:04, Erik wrote:
>
>> I have narrowed down the problem further. I am now connected with a
>> static IP address and it works just fine.
>>
> I guess, there must be a setting in sysctl or some config file which sets how
> often an IP address is renewed. Did you interefere with it by any chance?
>
Not that I know.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] HELP! Network status changes randomly, how to diagnose?
2006-08-30 22:46 Erik
2006-08-30 22:50 ` Frank Jahn
@ 2006-08-30 23:43 ` Neil Bothwick
2006-08-31 9:54 ` Roman Zilka
2 siblings, 0 replies; 10+ messages in thread
From: Neil Bothwick @ 2006-08-30 23:43 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 388 bytes --]
Posting the same question three times in one day is likely to increase
the number of responses you get, but only from people complaining about
your repeated posting.
--
Neil Bothwick
NOTE: The most fundamental particles in your computer are held together
by a "glueing" force about which little is known and whose adhesive power
cannot therefore be permanently guaranteed.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] HELP! Network status changes randomly, how to diagnose?
2006-08-30 22:46 Erik
2006-08-30 22:50 ` Frank Jahn
2006-08-30 23:43 ` Neil Bothwick
@ 2006-08-31 9:54 ` Roman Zilka
2 siblings, 0 replies; 10+ messages in thread
From: Roman Zilka @ 2006-08-31 9:54 UTC (permalink / raw
To: gentoo-user
Sounds like you might've been trojaned in some weird way. Do you update
regularly? If you run out of options, maybe a complete reinstall (to be sure)
would be in place.
Is there nothing unusual in the logs?
-rz
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* [gentoo-user] HELP! Network status changes randomly, how to diagnose?
@ 2006-08-30 5:46 Erik
0 siblings, 0 replies; 10+ messages in thread
From: Erik @ 2006-08-30 5:46 UTC (permalink / raw
To: gentoo-user
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?
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2006-09-01 9:51 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-30 18:37 [gentoo-user] HELP! Network status changes randomly, how to diagnose? Erik
-- strict thread matches above, loose matches on Subject: below --
2006-08-30 22:46 Erik
2006-08-30 22:50 ` Frank Jahn
2006-08-31 15:59 ` Erik
2006-08-31 21:04 ` Erik
2006-08-31 21:42 ` Mick
2006-09-01 9:42 ` Erik
2006-08-30 23:43 ` Neil Bothwick
2006-08-31 9:54 ` Roman Zilka
2006-08-30 5:46 Erik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox