Hurricane Electric's IPv6 Tunnel Broker Forums

General IPv6 Topics => IPv6 on Linux & BSD & Mac => Topic started by: sense on May 08, 2013, 10:07:12 AM

Title: Problem add two subnet (native + hurricane)
Post by: sense on May 08, 2013, 10:07:12 AM
Hi all, If I add to /etc/network /interfaces the following lines:

auto he-ipv6
iface he-ipv6 inet6 v4tunnel
         address 2001:470:x x: x :: 2
         netmask 64
         endpoint 216.66.x.x
         local 77.78.x.x
         ttl 255
         gateway 2001:470:x x: x :: 1

to the one already there:

# The primary network interface

iface eth0 inet6 static
     address 2001:1528:x:x ::2
     netmask 64
     2001:1528:x:x gateway :: 1

Reboot and I have problems. The subnet native (2001:1528:x:x:: 2) crash and only subnet Hurricane works temporarily. Can you explain me , please, how to solve this problem and add both subnet? Can you tell me how to add in /etc/network/interfaces the second subnet (Hurricane)? Thanks.

Title: Re: Problem add two subnet (native + hurricane)
Post by: cholzhauer on May 08, 2013, 10:40:38 AM
What are you trying to acclomplish?
Title: Re: Problem add two subnet (native + hurricane)
Post by: kasperd on May 08, 2013, 11:23:12 AM
2001:1528:x:x gateway :: 1
This looks like a syntax error to me.

Also, having two default gateways requires two separate routing tables. You need to create rules which use the source IP address to choose a routing table, and then have different default gateways in those two routing tables.

Without that you'll run into problems with filtering, because by default the same route will be used regardless of the source IP, but many providers will only allow you to send packets with a source IP, they have assigned to you.
Title: Re: Problem add two subnet (native + hurricane)
Post by: sense on May 08, 2013, 12:18:28 PM
Hello and thank you, but what you have just explained exceeds my expertise in