FreeBSD 4.11 IPv6-over-IPv4 tunnel problem

Leon Messner lwlbsd at
Mon Jul 4 12:15:03 GMT 2005

Hi List,

I want to establish an IPv6-over-IPv4 tunnel to my ISP. After some
hours trying i got myself acounts at HE and XS26 for testing and they
work. My Setup is FreeBSD 4.11-STABLE with ip(6)fw (stateful) and natd running.
My ISP gave the appended setup information which is for Debian Linux
(which i've never used). The IPv4 endpoints are and the IPv6 endpoints are 2001:bf0:c00c::c00c:0002:2(me)
and 2001:bf0:c00c::c00c:0002:1(ISP). I asked my ISP for support but
they don't know the way for FreeBSD and they tell me the tunnel is
definitely working. 

I tried doing the following but this and several other approaches did
not yield anything :

zwelf:~# ifconfig gif0 create tunnel up 
zwelf:~# ifconfig gif0 inet6 alias 2001:bf0:c00c::c00c:0002:2
zwelf:~# ping6 ff02::1%gif0
PING6(56=40+8+8 bytes) fe80::250:bfff:fe58:6c75%gif0 --> ff02::1%gif0
16 bytes from fe80::250:bfff:fe58:6c75%gif0, icmp_seq=0 hlim=64 time=0.746 ms
16 bytes from fe80::250:bfff:fe58:6c75%gif0, icmp_seq=1 hlim=64 time=0.422 ms
16 bytes from fe80::250:bfff:fe58:6c75%gif0, icmp_seq=2 hlim=64 time=0.427 ms
--- ff02::1%gif0 ping6 statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/std-dev = 0.422/0.532/0.746/0.152 ms

Thanks for reading, any comments appreciated


/* /etc/network/interfaces for a Debian system */

auto zwelf6
iface zwelf6 inet6 v4tunnel
      address   2001:bf0:c00c::c00c:0002:2
      netmask   112
      ttl       64
      up ip tunnel change zwelf6 ttl 64
      up echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
      up   ip -6 route add    2001::/3 dev zwelf6
      down ip -6 route delete 2001::/3 dev zwelf6

/* full ifconfig */

        inet netmask 0xffffff00 broadcast
        inet6 fe80::250:bfff:fe58:6c75%rl0 prefixlen 64 scopeid 0x1 
        ether 00:50:bf:58:6c:75
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
        inet6 fe80::230:84ff:fe0b:15d4%rl1 prefixlen 64 scopeid 0x2 
        ether 00:30:84:0b:15:d4
        media: Ethernet 10baseT/UTP
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 ::1 prefixlen 128 
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 
        inet netmask 0xff000000 
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1492
        inet --> netmask 0xffffffff 
        inet6 fe80::250:bfff:fe58:6c75%tun0 prefixlen 64 scopeid 0x7 
        Opened by PID 70
gif0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1280
        tunnel inet -->
        inet6 fe80::250:bfff:fe58:6c75%gif0 prefixlen 64 scopeid 0x8 
        inet6 2001:bf0:c00c::c00c:2:2 prefixlen 64 


gnupg key ID: 9B820836 & Fingerprint:

6081 8F41 8FEC 0D69 DB98  F014 0FD4 B47D 9B82 0836

More information about the freebsd-questions mailing list