netdev
[Top] [All Lists]

IPv6 src address selection rules and 2.2.19

To: netdev@xxxxxxxxxxx
Subject: IPv6 src address selection rules and 2.2.19
From: Michael Richardson <mcr@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 05 Nov 2001 22:39:05 -0500
Sender: owner-netdev@xxxxxxxxxxx
-----BEGIN PGP SIGNED MESSAGE-----


  Are there known problems with src address selection with IPv6 on 2.2.19?
(I am reluctant to upgrade this box to 2.4 until Debian Woody ships..)

  Using lukemftp, this is what I see:

tcp        0      1 2002:c08b:2e21:2:2:1817 2001:410:401:c::2:21    SYN_SENT    

cassidy-[~] mcr 1003 %ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:60:97:04:3D:70  
          inet addr:192.139.46.28  Bcast:192.139.46.31  Mask:255.255.255.240
          inet6 addr: 2002:c08b:2e21:2:260:97ff:fe04:3d70/64 Scope:Global
          inet6 addr: 2001:410:402:2:260:97ff:fe04:3d70/64 Scope:Global
          inet6 addr: fe80::260:97ff:fe04:3d70/10 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1744309 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2195004 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:466277893 (444.6 Mb)  TX bytes:2748556151 (2621.2 Mb)
          Interrupt:11 Base address:0xdc00 

cassidy-[~] mcr 1007 %ip -f inet6 route show         
2001:410:402:2::/64 dev eth0  proto kernel  metric 256  expires 2591536sec mtu 
1280 rtt 375ms
2002:c08b:2e21:2::/64 dev eth0  proto kernel  metric 256  expires 2591536sec 
mtu 1280 rtt 375ms
fe80::/10 dev eth0  proto kernel  metric 256  mtu 1280 rtt 375ms
ff00::/8 dev eth0  proto kernel  metric 256  mtu 1280 rtt 375ms
default via fe80::280:c8ff:feca:766b dev eth0  proto kernel  metric 1024  
expires 3136sec mtu 1280 rtt 375ms
unreachable default dev lo  metric -1  error -101

Both routes were learnt from rtadvd from my gateway box. Since I have a
2001:401: address, I believe that it should pick that source address. For
whatever reasons, crc.ca does not have a 6to4 gate. 

I also can't remove the 2002: address:

cassidy:/home/mcr# ip -f inet6 addr del 2002:c08b:2e21:2:260:97ff:fe04:3d70 dev 
eth0
RTNETLINK answers: Cannot assign requested address

(ifconfig gives even less traction)

]       ON HUMILITY: to err is human. To moo, bovine.           |  firewalls  [
]   Michael Richardson, Sandelman Software Works, Ottawa, ON    |net architect[
] mcr@xxxxxxxxxxxxxxxxxxxxxx http://www.sandelman.ottawa.on.ca/ |device driver[
] panic("Just another NetBSD/notebook using, kernel hacking, security guy");  [

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: latin1
Comment: Finger me for keys

iQCVAwUBO+dbVoqHRg3pndX9AQFbUQQAzlfB5UpoHSiki+iT0u8tXv4HImGwF58d
jxrcPuLUgk0/2u1TjU94EcNiwQ6CxxjR7y5T3J5xd0Iptau7rjuXrKyQ/iMvDaBU
+c7f3+X72ahW48ltDCyoqaAFsOo97TMCvHLd26N0jEtDgLrD0x8dcMILf4tT3Wn1
gdxyKJPvvno=
=Odis
-----END PGP SIGNATURE-----

<Prev in Thread] Current Thread [Next in Thread>