linux ip command and routing
Perry Couprie
perry at couprie.net
Thu Jan 6 13:01:51 CET 2011
Hi,
I have a routing problem.
When i start tinc it creates the following route in the main routing table.
192.168.2.0/24 dev nb003004 proto kernel scope link src 192.168.2.8
The problem is that i want to use extra routing tables for each tinc vpn.
When i set the netmask for the tinc device to 255.255.255.255.
The route is not created, how can i add it to a another route table.
Setting a new route in the extra table is no problem:
ip route add table company10703004 10.0.0.0/24 via 192.168.2.7
But how can i add the routing for the tinc device to company10703004
routing table.
The following does not work:
ip route add table company10703004 192.168.2.0/24 via 192.168.2.8
ip route add table company10703004 10.0.0.0/24 via 192.168.2.7
ip route add table company10703004 10.0.11.0/24 via 192.168.2.9
Greeting and best wishes for 2011,
Perry
More information about the tinc
mailing list