[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#726142: Realtek NIC (r8169 driver) won't work at gigabit speed, must be forced to 100MB



On 10/12/2013 8:52 PM, Ben Hutchings wrote:
> In this original broken configuration, were there any ethtool settings
> in /etc/network/interfaces ?
> 
> Is the firmware-realtek package installed?
> 
> Can you provide the boot log messages from r8169
> (grep r8169/var/log/dmesg) ?

When I first set up lenny, there were no ethtool settings.  Everything
was auto, and it negotiated 1000/Full.

Now, the following added to /etc/network/interfaces will allow link to
be established, at 100/Full without autoneg:

	pre-up /sbin/ethtool -s eth0 autoneg off speed 100 duplex full
	post-up /sbin/ethtool -s eth0 autoneg off speed 100 duplex full

Here's the grep of /var/log/dmesg:

[    0.723485] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[    0.723503] r8169 0000:02:00.0: PCI INT A -> GSI 18 (level, low) ->
IRQ 18
[    0.723538] r8169 0000:02:00.0: setting latency timer to 64
[    0.723591] r8169 0000:02:00.0: irq 26 for MSI/MSI-X
[    0.724062] r8169 0000:02:00.0: eth0: RTL8168b/8111b at
0xffffc90001850000, 00:e0:4c:1d:9b:ac, XID 18000000 IRQ 26
[    0.724106] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[    0.724117] r8169 0000:03:00.0: PCI INT A -> GSI 18 (level, low) ->
IRQ 18
[    0.724144] r8169 0000:03:00.0: setting latency timer to 64
[    0.724182] r8169 0000:03:00.0: irq 27 for MSI/MSI-X
[    0.724644] r8169 0000:03:00.0: eth1: RTL8168d/8111d at
0xffffc90001864000, 00:25:22:24:e8:21, XID 081000c0 IRQ 27
[    8.488770] r8169 0000:02:00.0: eth0: link down
[    8.488776] r8169 0000:02:00.0: eth0: link down
[    8.519320] r8169 0000:02:00.0: eth0: link up

The one with the MAC ending in 9b:ac is the PCI express NIC.  The one
ending in e8:21 is the onboard NIC.  Both exhibit the same behavior.


Reply to: