• Welcome to Hurricane Electric's IPv6 Tunnel Broker Forums.

Source routing / multiple tunnels

Started by wackysquirrel, December 28, 2011, 01:46:48 PM

Previous topic - Next topic

wackysquirrel

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:


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

snarked

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