[OpenWrt-Devel] IPv6-question / fe80 / linklocal / uniq?

2014-07-22 Thread Bastian Bittorf
when reading http://en.wikipedia.org/wiki/IPv6#Link_local_address
it seems to me, that the linklocal-address should be uniq,
but here:

root@box:~ ip neigh | grep ^'fe80::' | grep lladdr $mac
fe80::1cfc:fe65:769:3784 dev wlan0 lladdr 84:b1:53:b2:b8:b3 STALE
fe80::cea:3b47:5812:96be dev wlan0 lladdr 84:b1:53:b2:b8:b3 STALE

why this? bye, bastian
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] IPv6-question / fe80 / linklocal / uniq?

2014-07-22 Thread Baptiste Jonglez
On Tue, Jul 22, 2014 at 11:50:55AM +0200, Bastian Bittorf wrote:
 when reading http://en.wikipedia.org/wiki/IPv6#Link_local_address
 it seems to me, that the linklocal-address should be uniq,

unique is ambiguous: do you mean that the same LL address can't be
present on different interfaces? on different hosts?  That a host can only
have one link-local address per interface?

 but here:
 
 root@box:~ ip neigh | grep ^'fe80::' | grep lladdr $mac
 fe80::1cfc:fe65:769:3784 dev wlan0 lladdr 84:b1:53:b2:b8:b3 STALE
 fe80::cea:3b47:5812:96be dev wlan0 lladdr 84:b1:53:b2:b8:b3 STALE

  # ip -6 addr add fe80::1cfc:fe65:769:3784/64 dev eth0
  # ip -6 addr add fe80::cea:3b47:5812:96be/64 dev eth0

I don't see any problem with that.

In your case, fe80::1cfc:fe65:769:3784 is an EUI64 address, while the
other one is not (so, probably added manually).

 why this? bye, bastian
 ___
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


pgpXK1tDgw62q.pgp
Description: PGP signature
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] IPv6-question / fe80 / linklocal / uniq?

2014-07-22 Thread Gui Iribarren
On 22/07/14 06:50, Bastian Bittorf wrote:
 when reading http://en.wikipedia.org/wiki/IPv6#Link_local_address
 it seems to me, that the linklocal-address should be uniq,
 but here:
 
 root@box:~ ip neigh | grep ^'fe80::' | grep lladdr $mac
 fe80::1cfc:fe65:769:3784 dev wlan0 lladdr 84:b1:53:b2:b8:b3 STALE
 fe80::cea:3b47:5812:96be dev wlan0 lladdr 84:b1:53:b2:b8:b3 STALE

different link-local addresses, same MAC address. nothing wrong about that

try doing ip a add fe80::1234/64 dev eth0 in your laptop or wherever;
voila! you have an extra, manually-set link-local address, that resolves
to the same MAC address (when asked by icmpv6)

the uniqueness of the link-local address you mention, means there
should not be two different computers/devices with the same ipv6 address
on the same collision domain.

It does not mean that a host must have only 1 link-local address.

 
 why this? bye, bastian
 ___
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
 
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] IPv6-question / fe80 / linklocal / uniq?

2014-07-22 Thread Bastian Bittorf
* Baptiste Jonglez bjong...@illyse.org [22.07.2014 13:21]:
 On Tue, Jul 22, 2014 at 11:50:55AM +0200, Bastian Bittorf wrote:
  when reading http://en.wikipedia.org/wiki/IPv6#Link_local_address
  it seems to me, that the linklocal-address should be uniq,
 
 unique is ambiguous: do you mean that the same LL address can't be
 present on different interfaces? on different hosts?  That a host can only
 have one link-local address per interface?

I wondered, that the same host/mac has 2 different link-local addresses.

  root@box:~ ip neigh | grep ^'fe80::' | grep lladdr $mac
  fe80::1cfc:fe65:769:3784 dev wlan0 lladdr 84:b1:53:b2:b8:b3 STALE
  fe80::cea:3b47:5812:96be dev wlan0 lladdr 84:b1:53:b2:b8:b3 STALE
 
   # ip -6 addr add fe80::1cfc:fe65:769:3784/64 dev eth0
   # ip -6 addr add fe80::cea:3b47:5812:96be/64 dev eth0
 
 I don't see any problem with that.
 
 In your case, fe80::1cfc:fe65:769:3784 is an EUI64 address, while the
 other one is not (so, probably added manually).

ok, thanks for this explanation - now i'am unsure which process
give out fe80:: adresses which are not EUI64 - but thats another story 8-)

bye, bastian
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] IPv6-question / fe80 / linklocal / uniq?

2014-07-22 Thread Bastian Bittorf
* Gui Iribarren g...@altermundi.net [22.07.2014 13:21]:
  fe80::1cfc:fe65:769:3784 dev wlan0 lladdr 84:b1:53:b2:b8:b3 STALE
  fe80::cea:3b47:5812:96be dev wlan0 lladdr 84:b1:53:b2:b8:b3 STALE
 
 different link-local addresses, same MAC address. nothing wrong about that

any idea which part of OpenWrt is responsible for adding these
addresses? It's r41037 here - maybe odhcpd? bye, bastian
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] IPv6-question / fe80 / linklocal / uniq?

2014-07-22 Thread Bastian Bittorf
* Baptiste Jonglez bjong...@illyse.org [22.07.2014 13:21]:
  root@box:~ ip neigh | grep ^'fe80::' | grep lladdr $mac
  fe80::1cfc:fe65:769:3784 dev wlan0 lladdr 84:b1:53:b2:b8:b3 STALE
  fe80::cea:3b47:5812:96be dev wlan0 lladdr 84:b1:53:b2:b8:b3 STALE
 
   # ip -6 addr add fe80::1cfc:fe65:769:3784/64 dev eth0
   # ip -6 addr add fe80::cea:3b47:5812:96be/64 dev eth0
 
 I don't see any problem with that.
 
 In your case, fe80::1cfc:fe65:769:3784 is an EUI64 address, while the
 other one is not (so, probably added manually).

but should'nt be tge EUI64 of 84:b1:53:b2:b8:b3 the 
fe80::86b1:53ff:feb2:b8b3?
(or is this only the subset 'modified EUI64'?)

bye, bastian
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] IPv6-question / fe80 / linklocal / uniq?

2014-07-22 Thread Baptiste Jonglez
On Tue, Jul 22, 2014 at 02:08:16PM +0200, Bastian Bittorf wrote:
 * Baptiste Jonglez bjong...@illyse.org [22.07.2014 13:21]:
   root@box:~ ip neigh | grep ^'fe80::' | grep lladdr $mac
   fe80::1cfc:fe65:769:3784 dev wlan0 lladdr 84:b1:53:b2:b8:b3 STALE
   fe80::cea:3b47:5812:96be dev wlan0 lladdr 84:b1:53:b2:b8:b3 STALE
  
# ip -6 addr add fe80::1cfc:fe65:769:3784/64 dev eth0
# ip -6 addr add fe80::cea:3b47:5812:96be/64 dev eth0
  
  I don't see any problem with that.
  
  In your case, fe80::1cfc:fe65:769:3784 is an EUI64 address, while the
  other one is not (so, probably added manually).
 
 but should'nt be tge EUI64 of 84:b1:53:b2:b8:b3 the 
 fe80::86b1:53ff:feb2:b8b3?
 (or is this only the subset 'modified EUI64'?)

Maybe this machine is running a ND proxy or something similar?  Without
describing your setup, it's hard to tell.

Btw, you could check on this other machine (the one with the
84:b1:53:b2:b8:b3 MAC address, I assume you have access to it) whether it
really has multiple link-local addresses.


pgpndorxt2y1U.pgp
Description: PGP signature
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel