<html 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=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;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="IT">
<div class="WordSection1">
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi, I was playing with multiple wan interfaces and I noticed something I couldn’t understand. I have two pppoe interfaces, “wan and “test”, ip4table is set to “main” and “iptv” respectively. Here is what I get:</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">root@OpenWrt:~# ip route show table all | grep pppoe</p>
<p class="MsoNormal">default via 213.205.53.196 dev pppoe-test table iptv proto static metric 2</p>
<p class="MsoNormal">default via 213.205.53.196 dev pppoe-wan proto static</p>
<p class="MsoNormal">213.205.53.196 dev pppoe-wan proto kernel scope link src 62.11.90.x</p>
<p class="MsoNormal">213.205.53.196 dev pppoe-test proto kernel scope link src 62.11.84.x</p>
<p class="MsoNormal">local 62.11.84.x dev pppoe-test table local proto kernel scope host src 62.11.84.x</p>
<p class="MsoNormal">local 62.11.90.x dev pppoe-wan table local proto kernel scope host src 62.11.90.x</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The default route for test belongs to iptv table as expected, however both routes to the gateway belong to main table. Is that normal? What if default route on iptv table is used? Would it always exit from pppoe-test even if gateway ip
is the same for both interfaces?</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thank you.</p>
<p class="MsoNormal">Luca P.</p>
</div>
</body>
</html>