Netdev List
 help / color / mirror / Atom feed
From: Samuel Suter <samuel.suter@mylansite.org>
To: netdev@vger.kernel.org
Subject: Kernel 2.6.33-2 - ip -6 addr list does not show any addresses
Date: Wed, 05 May 2010 15:43:47 +0100	[thread overview]
Message-ID: <4BE18423.6090600@mylansite.org> (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

                 reply	other threads:[~2010-05-05 15:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BE18423.6090600@mylansite.org \
    --to=samuel.suter@mylansite.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox