<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 27/03/2019 06.36, Hohl Matthias
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:2140926437.2323607.1553683016210.JavaMail.zimbra@mx.telematica.at">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<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;}
/* 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;}
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;}
span.E-MailFormatvorlage17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.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 70.85pt 2.0cm 70.85pt;}
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]-->
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hello,<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">in my test environment I
want following setup:<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">I want 2 network
interfaces in the same subnet for ipv4 and ipv6.<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">So I created 1 main
interface eth0 and 1 alias interface (virtual interface)
eth0:1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">On eth0 the subscriber
should connect and on eth0:1 the peering should connect
(inbound and outbound)<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">My Problem:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">If I create a second
network interface like eth1 instead of eth0:1 I have a
problem with routing, cause same IP addresses are in the
same subnet, so I have to create the alias eth0:1.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">eth0:1 for rtp_engine
works, but if I generate the config ngcp created an
additional eth0 RTP_Interface:<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">
rtp_interface eth0:1_peering=eth0:1_peering is sync between
config and db<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">
rtp_interface eth0=eth0 is sync between config and db<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">
rtp_interface ext=ext is sync between config and db<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">is this a bug? Normally
eth0 is the “ext” interface, so there is no need to generate
eth0 as rtp_interface separately.</span></p>
</div>
</blockquote>
<p>No, that's actually a feature. :)</p>
<p>The colon has a special meaning in RTP interface names. The idea
is that if an interface is named `foo:bar`, then an additional
pseudo-interface `foo` is created for load balancing purposes. If
multiple interfaces are named in this way, let's say `foo:bar`,
`foo:quux`, and `foo:baz`, then selecting `foo` as RTP interface
in the preferences will make rtpengine use all of those 3
interfaces in a round-robin fashion.</p>
<p>This is documented under 12.2.4 on <a
href="https://www.sipwise.org/doc/mr6.5.3/spce/ar01s12.html">https://www.sipwise.org/doc/mr6.5.3/spce/ar01s12.html</a></p>
<p>Cheers<br>
</p>
</body>
</html>