• Welcome to Hurricane Electric's IPv6 Tunnel Broker Forums.

News:

Welcome to Hurricane Electric's Tunnelbroker.net forums!

Main Menu

Fritz Box 5140

Started by dluketic, January 21, 2013, 02:53:19 AM

Previous topic - Next topic

dluketic

ok the fritz box 5140 doesn't support ipv6 out of the box (pun intended)
so I compiled a freetz image with a modified kernel
added the ipv6 module. set it to load on boot
set the box to add the interface and tunnel
also added dnsmasq (might replace it with radvd, at least radvd gave my local pc an ipv6 address)
the dnsmasq problem is secondary

the primary problem is dropped packets.

the fb 5140 has 1 dsl plug and 4 lan plugs
the connection to the internet is done over the dsl interface and the local PCs are connected to the LAN ports.
my isp is 1&1 Germany.

/tmp/flash/mod/rc.custom

modprobe ipv6
ip tunnel add he-ipv6 mode sit remote 216.66.80.30 local 192.168.178.1 ttl 255
ip link set he-ipv6 up
ip addr add 2001:470:1f0a:c53::2/64 dev he-ipv6
ip route add ::/0 dev he-ipv6


this is all done on the box

# ip addr

1: cpmac0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:15:0c:e6:21:9b brd ff:ff:ff:ff:ff:ff
    inet6 fe80::215:cff:fee6:219b/64 scope link
       valid_lft forever preferred_lft forever
2: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
3: sit0: <NOARP> mtu 1480 qdisc noop
    link/sit 0.0.0.0 brd 0.0.0.0
4: eth0: <BROADCAST,MULTICAST,UP200> mtu 1500 qdisc pfifo_fast qlen 128
    link/ether 00:15:0c:e6:21:9b brd ff:ff:ff:ff:ff:ff
    inet6 fe80::215:cff:fee6:219b/64 scope link
       valid_lft forever preferred_lft forever
5: lan: <BROADCAST,MULTICAST,UP200> mtu 1500 qdisc noqueue
    link/ether 00:15:0c:e6:21:9b brd ff:ff:ff:ff:ff:ff
    inet 192.168.178.1/24 brd 192.168.178.255 scope global lan
    inet 169.254.1.1/16 brd 169.254.255.255 scope global lan:0
    inet6 fe80::200:ff:fe00:0/64 scope link
       valid_lft forever preferred_lft forever
13: he-ipv6@NONE: <POINTOPOINT,NOARP,UP> mtu 1480 qdisc noqueue
    link/sit 192.168.178.1 peer 216.66.80.30
    inet6 2001:470:1f0a:c53::2/64 scope global
       valid_lft forever preferred_lft forever
    inet6 fe80::c0a8:b201/128 scope link
       valid_lft forever preferred_lft forever
15: dsl: <POINTOPOINT,MULTICAST,NOARP,UP> mtu 1500 qdisc pfifo_fast qlen 100
    link/ppp
    inet 169.254.2.1/32 scope global dsl


# ip ro

192.168.180.1 dev dsl  metric 2
192.168.180.2 dev dsl  metric 2
192.168.178.0/24 dev lan  src 192.168.178.1
169.254.0.0/16 dev lan  src 169.254.1.1
default dev dsl  metric 2


# ip -6 ro

2001:470:1f0a:c53::/64 via :: dev he-ipv6  metric 256
fe80::/64 dev cpmac0  metric 256
fe80::/64 dev lan  metric 256
fe80::/64 dev eth0  metric 256
fe80::/64 via :: dev he-ipv6  metric 256
ff00::/8 dev cpmac0  metric 256
ff00::/8 dev lan  metric 256
ff00::/8 dev eth0  metric 256
ff00::/8 dev he-ipv6  metric 256
default dev he-ipv6  metric 1024


# ping6 ipv6.google.com

PING ipv6.google.com (2a00:1450:4016:802::1010): 56 data bytes
64 bytes from 2a00:1450:4016:802::1010: seq=7 ttl=57 time=33.671 ms

--- ipv6.google.com ping statistics ---
57 packets transmitted, 1 packets received, 98% packet loss
round-trip min/avg/max = 33.671/33.671/33.671 ms


# traceroute6 ipv6.google.com

traceroute to ipv6.google.com (2a00:1450:4016:802::1010), 30 hops max, 16 byte packets
1  2001:470:1f0a:c53::1 (2001:470:1f0a:c53::1)  27.123 ms  *  *
2  *  *  *
3  *  *  *
4  *  *  *
5  2001:4860::8:0:3015 (2001:4860::8:0:3015)  24.216 ms  *  *
6  *  *  *
7  *  *  *
8  *  *  *
9  *  2a00:1450:8000:28::1 (2a00:1450:8000:28::1)  31.470 ms  *


do I need to create a bridge or what would I have to do to get it to work?