<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hello list.<br><br>I'm facing a weird setup with multiple TAPs devices in one Linux host. What I have to achieve is<br>force them to behave like independent isolated network devices. <br>Lets say we have 2 TAPs devices:<br><br>tap1 10.1.1.1/24 default gw 10.1.1.2<br>tap2 10.1.3.4/24 default gw 10.1.3.1<br><br>I've managed to configure routes using 2 additional tables. When pinging any host outside the current machine (ping -I 10.1.1.1 10.1.3.X, X!=4) works perfectly, and the first time<br>it ask for the gateway's mac address as we hoped. <br><br>Using Send-to-self pacth from http://www.ssi.bg/~ja/#loop&nbsp; I do get packets on the right interface (no loopback) when pinging between TAPs<br>ping -I 10.1.1.1 10.1.3.4.<br>But the problem here is that it uses destination address to ask for MAC address in the arp resolution, instead of asking for gateway's one. I'm pretty sure this<br>is due to the local entries in local routing table. How can I avoid local policies for outgoing flows and still mantain kernel's knowledge about local interfaces for incoming packets.<br><br>Searching google and this list I've found this very same case in an old post.<br>http://lists.shmoo.com/pipermail/hostap/2002-December/000833.html<br><br>There is suggested that deleting local routes in local route table, but then, as I've tested<br>incoming packets don't know where to go.<br><br>Last post in the list about that subject ends with a rate of 90% solved. As it is a quite old post I'm wondering if<br>a 100% working solution already exists for our problem :-)<br><br>Any help or clue would be really helpful, I'm almost desperate here<br><br><br>Best Regards.<br><br>Thankyou. <br>Alberto.<br><br /><hr />¡Que no te pillen atascos ni  radares! En MSN te damos toda la información sobre el estado de las carretas y te mostramos  <a href='http://motor.es.msn.com/servicios/' target='_new'>dónde se encuentran los radares de tráfico.</a></body>
</html>