Odd issue with 6in4 (sit) tunnels

Ruben Laban r.laban at ism.nl
Tue Mar 1 12:43:08 UTC 2011


Replying to myself here.

On Monday 28 February 2011 at 17:03 (CET), Ruben Laban wrote:
> I'm seeing something very odd with 6in4/sit tunnels: when I specify the
> local IPv4 address, the link local address of the tunnel gets a /128 mask
> assigned instead of the usual /64:

I noticed that the sixxs interface created by aiccu didn't show the same 
symptoms. After digging around its source I found out why:

Instead of doing:
ip tunnel create sitX mode sit local A.B.C.D remote E.F.G.H ttl 64
ip link set sitX up

it does:
ip tunnel create sitX mode sit remote E.F.G.H ttl 64
ip link set sitX up
ip tunnel change sitX local A.B.C.D

It's nasty, really nasty, but it does get the job done.

Regards,
Ruben Laban




More information about the kernel-team mailing list