LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-11-2011, 09:52 PM   #1
jazzsir
LQ Newbie
 
Registered: Aug 2011
Posts: 8

Rep: Reputation: Disabled
Unhappy [IPv6] Problem with 6to4 tunnels


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

Last edited by jazzsir; 08-17-2011 at 01:20 AM.
 
Old 08-12-2011, 07:12 PM   #2
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 14.2, slackware 13.1
Posts: 371

Rep: Reputation: 54
Quote:
Originally Posted by jazzsir View Post
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
why do you use prefix /48 instead of /16 like the howto says?
Quote:
Originally Posted by jazzsir View Post
Code:
# 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.
have you tried the propper IPv6 notation (not the IPv4 compatible one?
From your howto:
Code:
# /sbin/ip -6 route add 2000::/3 via 2002:c058:6301::1 dev tun6to4 metric 1
 
Old 08-15-2011, 08:07 PM   #3
jazzsir
LQ Newbie
 
Registered: Aug 2011
Posts: 8

Original Poster
Rep: Reputation: Disabled
the problem is not solved

Quote:
Originally Posted by janhe View Post
why do you use prefix /48 instead of /16 like the howto says?

have you tried the propper IPv6 notation (not the IPv4 compatible one?
From your howto:
Code:
# /sbin/ip -6 route add 2000::/3 via 2002:c058:6301::1 dev tun6to4 metric 1
I followed your advice,
However, problems still remain. as below

# 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/16 dev tun6to4
# ip -6 route add 2000::/3 via 2002:c058:6301::1 dev tun6to4 metric 1
ip: either "to" is duplicate, or "metric" is a garbage.

Last edited by jazzsir; 08-15-2011 at 09:18 PM.
 
Old 08-16-2011, 03:59 AM   #4
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 14.2, slackware 13.1
Posts: 371

Rep: Reputation: 54
Ok, maybe try to add the "metric 1" part before the "via 2002:..." part?
Code:
ip -6 route add 2000::/3 metric 1 via 2002:c058:6301::1 dev tun6to4
What distro are you using? What version of iproute2?
Code:
ip -Version
 
Old 08-16-2011, 05:17 AM   #5
jazzsir
LQ Newbie
 
Registered: Aug 2011
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by janhe View Post
Ok, maybe try to add the "metric 1" part before the "via 2002:..." part?
Code:
ip -6 route add 2000::/3 metric 1 via 2002:c058:6301::1 dev tun6to4
What distro are you using? What version of iproute2?
Code:
ip -Version
The result is the same as before.
My environment is below

# 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

Anyway, Thank you for your reply~
 
Old 08-17-2011, 01:20 AM   #6
jazzsir
LQ Newbie
 
Registered: Aug 2011
Posts: 8

Original Poster
Rep: Reputation: Disabled
After upgrading busybox from 1.00 to 1.13.2
I can set up "ip -6 route" with "metric 1"
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I use proxy-arp and NAT to route an "alien" computer to the Internet? mson77 Linux - Networking 14 10-19-2009 10:01 PM
Routing problem is reporting this error "Unable to find default route interface name" vsanandan Linux - Networking 1 03-29-2009 11:44 AM
IPTABLES: interface on "192.168.1.0/24" won't route clients from "10.65.0.0" zivota Linux - Networking 2 06-09-2008 01:35 PM
In Linux Slackware Project how do I update Slack 12 following the "Changelogs" route? JamesAG Slackware 7 04-20-2008 02:01 PM
Route to subnet exists but I get "Network unreachable" when adding default route fciuffani Linux - Networking 4 08-18-2004 02:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration