Hurricane Electric's IPv6 Tunnel Broker Forums
May 20, 2013, 01:29:32 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to Hurricane Electric's Tunnelbroker.net forums!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Source routing / multiple tunnels  (Read 11011 times)
wackysquirrel
Newbie
*
Posts: 1


View Profile
« 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:
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: 577



View Profile
« 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
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!