<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Arial Black";
        panose-1:2 11 10 4 2 1 2 2 2 4;}
@font-face
        {font-family:"AvantGarde Bk BT";}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
h4
        {mso-style-priority:9;
        mso-style-link:"Heading 4 Char";
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        font-weight:bold;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
samp
        {mso-style-priority:99;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.Heading4Char
        {mso-style-name:"Heading 4 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 4";
        font-family:"Times New Roman",serif;
        mso-fareast-language:IT;
        font-weight:bold;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";
        mso-fareast-language:IT;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="IT" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">I read tinc documentation part:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">“<o:p></o:p></span></p>
<h4 style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:13.5pt;color:black">For Branch A<o:p></o:p></span></h4>
<p style="margin:0cm;margin-bottom:.0001pt;orphans: auto;text-align:start;widows: 1;-webkit-text-stroke-width: 0px;word-spacing:0px">
<em><span lang="EN-US" style="font-size:13.5pt;color:black">BranchA</span></em><span class="apple-converted-space"><span lang="EN-US" style="font-size:13.5pt;color:black"> </span></span><span lang="EN-US" style="font-size:13.5pt;color:black">would be configured
 like this:<o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;orphans: auto;text-align:start;widows: 1;-webkit-text-stroke-width: 0px;word-spacing:0px">
<span lang="EN-US" style="font-size:13.5pt;color:black"><o:p> </o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span lang="EN-US" style="font-size:13.5pt;color:black">In<span class="apple-converted-space"> </span></span><samp><span lang="EN-US" style="font-size:13.5pt;color:black">/etc/tinc/company/tinc-up</span></samp><span lang="EN-US" style="font-size:13.5pt;color:black">:<o:p></o:p></span></p>
<pre><span lang="EN-US" style="color:black"><o:p> </o:p></span></pre>
<pre><span lang="EN-US" style="color:black"># Real interface of internal network:<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black"># ifconfig eth0 </span><b><span lang="EN-US" style="color:red">10.1.54.1</span></b><span lang="EN-US" style="color:black"> netmask </span><b><span lang="EN-US" style="color:red">255.255.0.0</span></b><span lang="EN-US" style="color:black"><o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">ifconfig $INTERFACE </span><b><span lang="EN-US" style="color:red">10.1.54.1</span></b><span lang="EN-US" style="color:black"> netmask </span><b><span lang="EN-US" style="color:red">255.0.0.0</span></b><span lang="EN-US" style="color:black"><o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black"><o:p> </o:p></span></pre>
<pre><span lang="EN-US" style="color:black">…<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black"><o:p> </o:p></span></pre>
<p style="margin:0cm;margin-bottom:.0001pt;orphans: auto;text-align:start;widows: 1;-webkit-text-stroke-width: 0px;word-spacing:0px">
<b><u><span lang="EN-US" style="font-size:13.5pt;color:red">Note that the IP addresses of eth0 and tap0 are the same. This is quite possible, if you make sure that the netmasks of the interfaces are different</span></u></b><span lang="EN-US" style="font-size:13.5pt;color:black">.
 It is in fact recommended to give both real internal network interfaces and tap interfaces the same IP address, since that will make things a lot easier to remember and set up.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">“<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Can you explain best the last statement saying that real eth0 and tap0 can have some ip with different netmask ?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Overlapping: 10.1.0.0 - 10.1.255.255  and 10.0.0.0 - 10.255.255.255<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Cannot be arise conflicts ?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">If my internal network is 172.16.0.0/19 and I have eth0 ip = 172.16.1.10/255.255.224.0 and I set tun/tap ip = 172.16.1.10/255.0.0.0  I’ve<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">172.16.0.0 - 172.16.31.255 range network for eth0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">and<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">172.0.0.0 - 172.255.255.255 range network for tun/tap<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">How the system knows how to resolve this overlapping ?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Doesn’t be the two networks totally independent (non overlapping) to allow correct routing ?
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><i><span style="font-size:10.0pt;font-family:"Arial Black",sans-serif;color:navy;mso-fareast-language:IT">Roberto</span></i><span lang="EN-US" style="font-size:10.0pt;font-family:"AvantGarde Bk BT",serif;color:navy;mso-fareast-language:IT"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:IT"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:IT"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>