Hi,
I followed
http://www.tldp.org/HOWTO/Linux+IPv6...4-tunnels.html
to set up a 6to4 tunnel for my router.
But, when setting up a "ip route" using "metric 1" the problem is encountered as below.
if "metric 1" is excluded, the command succeeded. but I can't ping6 ipv6.google.com
-Problem
Code:
# ip tunnel add tun6to4 mode sit remote any local 150.150.140.233
# ip link set dev tun6to4 up
tun6to4: Disabled Privacy Extensions
# ip -6 addr add 2002:9696:8ce9::1/48 dev tun6to4
# ip -6 route add 2000::/3 via ::192.88.99.1 dev tun6to4 metric 1
ip: either "to" is duplicate, or "metric" is a garbage.
# ip -6 addr add 2002:9696:8ce9:ffff::1/64 dev br0
-Environment
Code:
# uname -a
Linux cpe.amazon_s.infineon.com 2.6.20.19 #21 Fri Aug 12 09:54:58 KST 2011 mips unknown
# busybox
BusyBox v1.00 (2011.08.03-08:42+0000) multi-call binary
-ip -6 route
Code:
# ip -6 route
::/96 via :: dev tun6to4 metric 256 expires -34sec
2002:9696:8ce9:ffff::/64 dev br0 metric 256 expires -17sec
2002:9696:8ce9::/48 dev tun6to4 metric 256 expires -26sec
fe80::/64 dev br0 metric 256 expires -155sec
fe80::/64 dev eth0 metric 256 expires -153sec
fe80::/64 dev wan metric 256 expires -145sec
fe80::/64 dev eth1 metric 256 expires -145sec
fe80::/64 dev tun6to4 metric 256 expires -26sec
unreachable default dev lo metric -1 error -128
ff00::/8 dev br0 metric 256 expires -155sec
ff00::/8 dev eth0 metric 256 expires -153sec
ff00::/8 dev wan metric 256 expires -145sec
ff00::/8 dev eth1 metric 256 expires -145sec
ff00::/8 dev tun6to4 metric 256 expires -26sec
unreachable default dev lo metric -1 error -128
#
-ifconfig
Code:
# ifconfig
br0 Link encap:Ethernet HWaddr 00:E0:92:00:01:40
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: 2002:9696:8ce9:ffff::1/64 Scope:Global
inet6 addr: fe80::220:daff:fe86:2374/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:1270 (1.2 KiB)
eth0 Link encap:Ethernet HWaddr 00:E0:92:00:01:40
inet6 addr: fe80::2e0:92ff:fe00:140/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:26 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4294967276 (3.9 GiB) TX bytes:2092 (2.0 KiB)
eth1 Link encap:Ethernet HWaddr 00:20:DA:86:23:75
inet6 addr: fe80::220:daff:fe86:2375/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12617 errors:0 dropped:121 overruns:0 frame:0
TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:978599 (955.6 KiB) TX bytes:1206 (1.1 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
tun6to4 Link encap:UNSPEC HWaddr 96-96-8C-E9-00-00-00-00-00-00-00-00-00-00-00-00
inet6 addr: 2002:9696:8ce9::1/48 Scope:Global
inet6 addr: ::150.150.140.233/128 Scope:Compat
UP RUNNING NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wan Link encap:Ethernet HWaddr 00:20:DA:86:23:75
inet addr:150.150.140.233 Bcast:150.150.255.255 Mask:255.255.0.0
inet6 addr: fe80::220:daff:fe86:2375/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11734 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:937885 (915.9 KiB) TX bytes:720 (720.0 B)
#
Also, I tryed to use ifconfig and route command instead of 'ip' command as below
But, I coudn't also ping6
# /sbin/ifconfig sit0 up
# /sbin/ifconfig sit0 add <local6to4address>/16
# /sbin/route -A inet6 add 2000::/3 gw ::192.88.99.1 dev sit0