11bf7 native IPv6 and miredo coexisting problem - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Server & Networking > Networking

Networking Network related discussions (including general TCP/IP stuff, routing, etc).

Reply
 
Thread Tools Display Modes
  #1  
Old June 27th, 2011, 08:34
haohaolee haohaolee is offline
Junior Member
 
Join Date: Jun 2011
Posts: 18
Thanks: 7
Thanked 0 Times in 0 Posts
Default native IPv6 and miredo coexisting problem

I have a native IPv6 setting that worked well until I installed the miredo client. After starting the miredo daemon, it will create a new default route overriding the original one. My intention is to use miredo to connect to other teredo nodes, not for IPv6 surfing.

And, according to the miredo.conf:

Code:
 NOTE:  Use  of Miredo as a Teredo client is possible even if the
              system  already  has  IPv6  connectivity  through  another   way
              (native, 6to4, TSP, etc). In that case, Miredo will only be used
              to reach other Teredo clients, as its tunneling interface has  a
              default route with a higher metric (which is to say a lower pri-
              ority) than the other network interfaces.
So I'm sure it can work that way, and it did work on my other (Linux) box. Any suggestion is appreciated.

Last edited by DutchDaemon; June 27th, 2011 at 12:55.
Reply With Quote
  #2  
Old June 27th, 2011, 21:57
tingo tingo is offline
Member
 
Join Date: Nov 2008
Location: Oslo, Norway
Posts: 825
Thanks: 133
Thanked 82 Times in 68 Posts
Default

So, what are the metrics for the routes involved?
__________________
Torfinn
Reply With Quote
  #3  
Old June 28th, 2011, 07:05
haohaolee haohaolee is offline
Junior Member
 
Join Date: Jun 2011
Posts: 18
Thanks: 7
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by tingo View Post
So, what are the metrics for the routes involved?
It seems there is no routing metric concept in FreeBSD, so I cannot use different default routes with different metrics.

Last edited by DutchDaemon; June 28th, 2011 at 17:13.
Reply With Quote
  #4  
Old July 2nd, 2011, 23:09
tingo tingo is offline
Member
 
Join Date: Nov 2008
Location: Oslo, Norway
Posts: 825
Thanks: 133
Thanked 82 Times in 68 Posts
Default

How about posting the output of # netstat -r?

Why do you think that you can have more than one default route?
__________________
Torfinn
Reply With Quote
  #5  
Old July 3rd, 2011, 07:42
haohaolee haohaolee is offline
Junior Member
 
Join Date: Jun 2011
Posts: 18
Thanks: 7
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by tingo View Post
How about posting the output of # netstat -r?

Why do you think that you can have more than one default route?
Sorry, it's a concept on other platform. Maybe the correct question is how to make balance route when having multi-interface
Reply With Quote
  #6  
Old July 3rd, 2011, 19:13
tingo tingo is offline
Member
 
Join Date: Nov 2008
Location: Oslo, Norway
Posts: 825
Thanks: 133
Thanked 82 Times in 68 Posts
Default

Another platform than FreeBSD? If so, why are you asking this question in a FreeBSD forum?
__________________
Torfinn
Reply With Quote
The Following User Says Thank You to tingo For This Useful Post:
haohaolee (July 4th, 2011)
  #7  
Old July 4th, 2011, 00:43
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,824
Thanks: 30
Thanked 1,884 Times in 1,330 Posts
Default

Look at things like lagg(4), setfib(1), setfib(2). Not sure what you're looking for exactly.
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Adminstrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
The Following User Says Thank You to DutchDaemon For This Useful Post:
haohaolee (July 4th, 2011)
  #8  
Old July 4th, 2011, 10:25
haohaolee haohaolee is offline
Junior Member
 
Join Date: Jun 2011
Posts: 18
Thanks: 7
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by tingo View Post
Another platform than FreeBSD? If so, why are you asking this question in a FreeBSD forum?
I'm new to FreeBSD, so I thought it would have the same concept. Never mind, I solved this specific problem myself.

Miredo has a script called client-hook, which is called when teredo tunnel is established and is to set up routing:

Code:
....
case "$STATE" in
        up)
                "$IFCONFIG" "$IFACE" up
                "$IFCONFIG" "$IFACE" inet6 "${LLADDRESS}/64"
                "$IFCONFIG" "$IFACE" inet6 "${ADDRESS}/32"
                "$ROUTE" delete -inet6 default
                "$ROUTE" add -inet6 default -iface "$IFACE"
                ;;
.....
I just commented out two lines of the above to make mine work.

BTW, this script on other platforms like Linux does not delete default route, but adds another default route with different metric. I think this is why the default install on Linux seems all right.

Last edited by DutchDaemon; July 4th, 2011 at 14:29. Reason: It's "FreeBSD"
Reply With Quote
  #9  
Old July 4th, 2011, 13:28
ecazamir ecazamir is offline
Member
 
Join Date: Mar 2009
Posts: 215
Thanks: 5
Thanked 28 Times in 26 Posts
Default

FreeBSD does not allow at this time to have multiple routes to the same destination on a single FIB (Forward Information Base, routing table).
If you need to reach some destination using multiple paths, one solution can be 'pf', which is able to override kernel's routing table on a single FIB and it allows use of multiple routes to the same destination network/mask.
If you need to use 'metrics', /usr/ports/net/quagga's zebra routing daemon can be helpful.
__________________
My blog: http://ghid-it.blogspot.com
Other guides: http://sites.google.com/site/ghidit/
Reply With Quote
The Following 2 Users Say Thank You to ecazamir For This Useful Post:
haohaolee (July 5th, 2011), SreenathaSetty (July 12th, 2011)
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
IPSec + ipv6 + pf = problem STux Firewalls 7 January 22nd, 2013 14:04
IPV6 UDP Socket recvfrom problem yavuzg Userland Programming & Scripting 0 August 6th, 2010 14:36
freebsd 7.1 default ipv6 gateway problem yavuzg Networking 4 June 9th, 2009 08:10
IPv6 DAD disables IPv6 Traffic, how to turn IPv6 back on? benzh512 Networking 6 March 10th, 2009 16:57
SATA Native Support petike Installing & Upgrading 11 January 5th, 2009 16:27


All times are GMT +1. The time now is 08:33.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0