<div dir="ltr"><div>On Machine B (notice new IP :( )</div><div><br></div><div><div>root@raspberrypi:/etc/tinc/erix# tincd -n erix -d 3<br></div><div><br></div><div>root@raspberrypi:/etc/tinc/erix# route -n</div><div>Kernel IP routing table</div>
<div>Destination     Gateway         Genmask         Flags Metric Ref    Use Iface</div><div>0.0.0.0         10.16.0.1       0.0.0.0         UG    0      0        0 eth0</div><div>10.16.0.0       0.0.0.0         255.255.0.0     U     0      0        0 eth0</div>
<div><br></div><div>root@raspberrypi:/etc/tinc/erix# INTERFACE=erix /etc/tinc/erix/tinc-up</div><div>RTNETLINK answers: File exists</div></div><div><br></div><div><br></div><div>On Machine A</div><div><div>root@homer1:/etc/tinc/erix# tincd -n erix -d 3</div>
<div><br></div><div>root@homer1:/etc/tinc/erix# route -n</div><div>Kernel IP routing table</div><div>Destination     Gateway         Genmask         Flags Metric Ref    Use Iface</div><div>0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 em1</div>
<div>172.17.0.0      0.0.0.0         255.255.0.0     U     0      0        0 docker0</div><div>192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 em1</div><div><br></div><div>root@homer1:/etc/tinc/erix# INTERFACE=erix /etc/tinc/erix/tinc-up</div>
<div>RTNETLINK answers: File exists</div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 8, 2014 at 1:27 PM, Guus Sliepen <span dir="ltr"><<a href="mailto:guus@tinc-vpn.org" target="_blank">guus@tinc-vpn.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Tue, Jul 08, 2014 at 12:33:10PM -0700, Zia Syed wrote:<br>
<br>
> Thanks guys. First off, i removed the 15.0.0.0 and now I can am not able to<br>
> ping even A and B. Here is the updated network diagram.<br>
> <a href="http://cl.ly/image/0E1n0s1v043u" target="_blank">http://cl.ly/image/0E1n0s1v043u</a><br>
><br>
</div><div class="">> On Machine A:<br>
> ---------------------------<br>
> ubuntu@homer:/etc/tinc/erix$ more hosts/esprit1<br>
> Subnet = <a href="http://192.168.1.0/32" target="_blank">192.168.1.0/32</a><br>
> Address = <Public IP><br>
<br>
</div>The Subnet should be <a href="http://192.168.1.0/24" target="_blank">192.168.1.0/24</a>, not /32.<br>
<div class=""><br>
> On Machine B:<br>
> ---------------------------<br>
> pi@raspberrypi /etc/tinc/erix $ more hosts/pi<br>
> Subnet = <a href="http://10.16.50.0/32" target="_blank">10.16.50.0/32</a><br>
<br>
</div>Here it's the same, it should be <a href="http://10.16.50.0/24" target="_blank">10.16.50.0/24</a>.<br>
<div class=""><br>
> ubuntu@homer1:/etc/tinc/erix$ route -n<br>
> Kernel IP routing table<br>
> Destination     Gateway         Genmask         Flags Metric Ref    Use<br>
> Iface<br>
> 0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 em1<br>
> 172.17.0.0      0.0.0.0         255.255.0.0     U     0      0        0<br>
> docker0<br>
> 192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 em1<br>
</div>[...]<br>
<div class="">> Even though I have 'ip route add .." in both tinc-up, i dont see the route<br>
> in 'route -n'.<br>
<br>
</div>Hm. When tinc is started, what happens if you run the tinc-up script by<br>
hand like this?<br>
<br>
INTERFACE=erix /etc/tinc/erix/tinc-up<br>
<div class=""><br>
> pi@raspberrypi /etc/tinc/erix $ ping 192.168.1.150<br>
> PING 192.168.1.150 (192.168.1.150) 56(84) bytes of data.<br>
> From 192.168.1.150 icmp_seq=1 Destination Net Unknown<br>
<br>
</div>That's tinc telling you it doesn't know about the IP address<br>
192.168.1.150, because you added /32 instead of /24 Subnets in the host<br>
config files.<br>
<div class=""><br>
> Could this be I am not setting the gateway for this route correctly on B?<br>
<br>
</div>You should not have to set a gateway. The rest of your configuration<br>
looks fine to me, so the only problems are the Subnets and the fact that<br>
the routes are not added by the tinc-up script.<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Met vriendelijke groet / with kind regards,<br>
     Guus Sliepen <<a href="mailto:guus@tinc-vpn.org">guus@tinc-vpn.org</a>><br>
</div></div><br>_______________________________________________<br>
tinc mailing list<br>
<a href="mailto:tinc@tinc-vpn.org">tinc@tinc-vpn.org</a><br>
<a href="http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc" target="_blank">http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc</a><br>
<br></blockquote></div><br></div>