native IPv6 and miredo coexisting problem

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

native IPv6 and miredo coexisting problem

Postby haohaolee » 27 Jun 2011, 07:34

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

And, according to the [FILE]miredo.conf[/FILE]:

Code: Select all
 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.
haohaolee
Junior Member
 
Posts: 18
Joined: 27 Jun 2011, 07:17

Postby tingo » 27 Jun 2011, 20:57

So, what are the metrics for the routes involved?
Torfinn
tingo
Member
 
Posts: 947
Joined: 16 Nov 2008, 22:02
Location: Oslo, Norway

Postby haohaolee » 28 Jun 2011, 06:05

tingo wrote: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.
haohaolee
Junior Member
 
Posts: 18
Joined: 27 Jun 2011, 07:17

Postby tingo » 02 Jul 2011, 22:09

How about posting the output of [CMD="#"]netstat -r[/CMD]?

Why do you think that you can have more than one default route?
Torfinn
tingo
Member
 
Posts: 947
Joined: 16 Nov 2008, 22:02
Location: Oslo, Norway

Postby haohaolee » 03 Jul 2011, 06:42

tingo wrote:How about posting the output of [CMD="#"]netstat -r[/CMD]?

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
haohaolee
Junior Member
 
Posts: 18
Joined: 27 Jun 2011, 07:17

Postby tingo » 03 Jul 2011, 18:13

Another platform than FreeBSD? If so, why are you asking this question in a FreeBSD forum?
Torfinn
tingo
Member
 
Posts: 947
Joined: 16 Nov 2008, 22:02
Location: Oslo, Norway

Postby DutchDaemon » 03 Jul 2011, 23:43

Look at things like [man=4]lagg[/man], [man=1]setfib[/man], [man=2]setfib[/man]. Not sure what you're looking for exactly.
User avatar
DutchDaemon
Old Fart
 
Posts: 10463
Joined: 16 Nov 2008, 20:17
Location: The Netherlands

Postby haohaolee » 04 Jul 2011, 09:25

tingo wrote: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 [FILE]client-hook[/FILE], which is called when teredo tunnel is established and is to set up routing:

Code: Select all
....
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. :D
haohaolee
Junior Member
 
Posts: 18
Joined: 27 Jun 2011, 07:17

Postby ecazamir » 04 Jul 2011, 12:28

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 '[FILE]pf[/FILE]', 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', [FILE]/usr/ports/net/quagga[/FILE]'s [FILE]zebra[/FILE] routing daemon can be helpful.
ecazamir
Member
 
Posts: 215
Joined: 10 Mar 2009, 14:01


Return to Networking

Who is online

Users browsing this forum: No registered users and 2 guests