Subject: wrong source address
To: None <tech-net@netbsd.org>
From: Ignatios Souvatzis <ignatios@cs.uni-bonn.de>
List: tech-net
Date: 05/14/2004 13:11:04
--cWoXeonUoKmBZSoM
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hi,
a machine otherwise having IPv6 connectivity using Ethernet (ep0) has
been given an experimental (gif) tunnel.
Now, packets going out the default route (via Ethernet) get the gif0
address as the source address.
Is something fishy going on in the source address selection code? Did=20
I forget some magic switch?
> uname -v
NetBSD 1.6.2_STABLE (GENERIC) #0: Tue Apr 27 17:43:03 CEST 2004 ignatio=
s@sinus:/usr/local/src/1.6/oi/sys/arch/i386/compile/GENERIC
> /sbin/ifconfig -a
ep0: flags=3D8963<UP,BROADCAST,NOTRAILERS,RUNNING,PROMISC,SIMPLEX,MULTICAST=
> mtu 1500
address: 00:a0:24:88:af:0f
media: Ethernet 100baseTX
status: active
inet 131.220.4.180 netmask 0xffffff00 broadcast 131.220.4.255
inet6 fe80::2a0:24ff:fe88:af0f%ep0 prefixlen 64 scopeid 0x1
inet6 3ffe:400:450:1000:2a0:24ff:fe88:af0f prefixlen 64
lo0: flags=3D8009<UP,LOOPBACK,MULTICAST> mtu 33220
inet 127.0.0.1 netmask 0xff000000
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet6 ::1 prefixlen 128
gif0: flags=3D8151<UP,POINTOPOINT,RUNNING,PROMISC,MULTICAST> mtu 1280
tunnel inet 131.220.4.180 --> 212.224.0.188
inet6 2001:6f8:900:242::2 -> 2001:6f8:900:242::1 prefixlen 128
inet6 fe80::2a0:24ff:fe88:af0f%gif0 -> :: prefixlen 64 scopeid 0x9
> netstat -rn | grep gif
2001:6f8:900:242::1 2001:6f8:900:242::2 UH =
0 78 - gif0
fe80::%gif0/64 link#9 UC =
0 0 - gif0
fe80::2a0:24ff:fe88:af0f%gif0 ::1 UH =
0 5 33220 lo0
ff02::%gif0/32 link#9 UC =
0 5 - gif0
> netstat -Lrnf inet6 |grep ep0
default fe80::2d0:b7ff:fe75:c02c%ep0 UG =
1 48 - ep0
3ffe:400:450:1000::/64 link#1 UC =
3 0 - ep0
fe80::%ep0/64 link#1 UC =
2 0 - ep0
ff02::%ep0/32 link#1 UC =
0 0 - ep0
--cWoXeonUoKmBZSoM
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: 2.6.i
iQEVAgUBQKSpRjCn4om+4LhpAQEsdAf+JWhC4pVZco4whGmitYfzk7wAbNNskNyE
jRnkIlg9Q8opKfAEMIU7PX4bI4KluMHiSRmqh+3hkykGvI8K4ZIGQGad5Wdza08x
IM7M1TT0pY491mkcPIOiZoyNud7NLOlPm4rSPaQTs/CSq71l/gpHIoO4V4vwLlxi
lwV0k952GFtmG8Rn07P+O9utLfvoOMyVV4ojyZ1oThW9B8bswLY1ad7UiD5ijW8U
HUPz/ZxcvM4jJh/YJfAv1h6icvxCkjisU9HkI58lrD0pDJ8Bxs4q3A3n8bzPygBF
Z+Wd8izs/G1B1DWc3/9Ofrm1SKmpUOO5bf8/3zqrtGmp66MPUga9iA==
=4tCC
-----END PGP SIGNATURE-----
--cWoXeonUoKmBZSoM--