Hurricane Electric's IPv6 Tunnel Broker Forums

Advanced search  

News:

Welcome to Hurricane Electric's Tunnelbroker.net forums!

Author Topic: Source routing / multiple tunnels  (Read 12554 times)

wackysquirrel

  • Newbie
  • *
  • Posts: 1
Source routing / multiple tunnels
« on: December 28, 2011, 01:46:48 PM »

Hello everybody,

This is my setup: I have two IPv4 addresses on a single interface (eth0 and eth0:1). I have furthermore created two separate tunnels for both of these IPs for testing purposes. My problem is, that I cannot find out how to get both tunnels to work simultaneously.

I have tried this:


Code: [Select]
alpha-pi# ifup v6tun0
alpha-pi# ip -6 route add default dev v6tun0 table tun-alpha
alpha-pi# ip -6 rule add from 2001:470:9f75::/48 lookup tun-alpha
alpha-pi# ip -6 rule add from 2001:470:1f0a:80d::/64 lookup tun-alpha
alpha-pi# ip -6 rule add from 2001:470:1f0b:80d::/64 lookup tun-alpha
alpha-pi# ifup v6tun1
alpha-pi# ip -6 route add default dev v6tun1 table tun-beta
alpha-pi# ip -6 rule add from 2001:470:1f15:114::/64 lookup tun-beta
alpha-pi# ip -6 rule add from 2001:470:1f14:114::/64 lookup tun-beta
alpha-pi# ip -6 rule add from 2001:470:78bb::/48 lookup tun-beta

This is not working. I have previously added tun-alpha and tun-beta to the /etc/iproute2/rt_tables configuration. Any hints or advice would be appreciated!

Best Regards,
wackysquirrel
Logged

snarked

  • Hero Member
  • *****
  • Posts: 764
Re: Source routing / multiple tunnels
« Reply #1 on: December 28, 2011, 05:19:48 PM »

Unless you've installed the kernel options for multiple routes, you simply can't have two default routes.
Logged