Skip to contentSkip to conversation

Kernel 2.6.33-2 - ip -6 addr list does not show any addresses

DISCUSSION Samuel Suter 1 participant 1 message May 5, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hello all

I am repeatedly hitting a problem on two of my servers running kernel.org 2.6.33-2 on Debian 5.0 x86_64 using the Debian 5.0 stable iproute package (iproute2-ss080725).

There is a clear discrepancy between the information returned by 'ifconfig' and 'ip addr' (or 'ip -6 addr'). This server has 26 physical interfaces and ifconfig lists all of them with all their assigned addresses, but 'ip addr' only lists my loopback and one of the interfaces.

The actual problem emerges when I try and flush all addresses and add them again:

# ip -6 addr flush dev eth24
Nothing to flush.
# ip -6 addr add 2001:470:921b:7845::3d/64 dev eth24
RTNETLINK answers: File exists
# ifconfig eth24
eth24     Link encap:Ethernet  HWaddr 00:22:19:c4:7a:1d 
         inet addr:10.7.24.61  Bcast:0.0.0.0  Mask:255.255.255.128
         inet6 addr: 2001:470:921b:7845::77/64 Scope:Global
         inet6 addr: 2001:470:921b:7845::66/64 Scope:Global
         inet6 addr: 2001:470:921b:7845::55/64 Scope:Global
         inet6 addr: 2001:470:921b:7845::44/64 Scope:Global
         inet6 addr: 2001:470:921b:7845::76/64 Scope:Global
         inet6 addr: 2001:470:921b:7845::67/64 Scope:Global
         .
         .
         .
# ip -6 addr list dev eth24
#

This shows that 'ifconfig' knows about these addresses, but 'ip' does not. All the IPv6 addresses show up in /proc/net/if_inet6.

# grep eth24 /proc/net/if_inet6 | wc -l
57
# ifconfig eth24 | grep inet6 | wc -l
57

This leaves me in a situation where I an unable to flush the IP addresses on a device.

This problem seems to happen more often on a server running kernel.org 2.6.33-2 kernel as opposed to the Debian patched 2.6.26, though it did happen with the debian kernel.

Regards

Samuel Suter