You are not logged in.

#1 2008-08-20 19:27:20

smyp
Member
Registered: 2008-08-20
Posts: 9

[SOLVED] Unstable ethernet connection

I have a RTL8169 gigabit ethernet controller. I configured it to use a static ip address. This works, but the connection drops out all the time and I can't find any hints what it is. It's not the controller, as the same happens with the Marvell onboard ethernet. SSH connections (even inside the local network) tend to stop working after a few seconds, web browsing sometimes just drops out for some minutes and then comes back to normal again.

dmesg is not showing any errors. no packages seems to be lost. Other computers in the network don't have any problems, so it's not the router. I'm out of ideas....

ifconfig -a

eth0      Link encap:Ethernet  HWaddr 00:11:6B:62:94:E4
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::211:6bff:fe62:94e4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6546 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4388 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:7951967 (7.5 Mb)  TX bytes:381749 (372.8 Kb)
          Interrupt:10 Base address:0x4c00

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:22 errors:0 dropped:0 overruns:0 frame:0
          TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1100 (1.0 Kb)  TX bytes:1100 (1.0 Kb)
/etc/rc.conf

eth0="eth0 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255"
INTERFACES=(eth0)

Last edited by smyp (2008-08-22 19:01:15)

Offline

#2 2008-08-22 19:02:05

smyp
Member
Registered: 2008-08-20
Posts: 9

Re: [SOLVED] Unstable ethernet connection

It turned out that I had address conflicts. My router leased my computers address via DHCP to another device in the network.

Offline

#3 2008-08-22 20:02:51

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: [SOLVED] Unstable ethernet connection

A good way to avoid this is to use dhcp, but have the router always assign the same IP to the same MAC address. Not all routers support this unfortunately.

Offline

Board footer

Powered by FluxBB