<div dir="ltr">Hi Ben,<div><br></div><div>Would the gateway of <span style="font-family:arial,sans-serif;font-size:13px">1.1.1.1 only be available via your wlan? If you added a static route for the destination IP as going via </span><span style="font-family:arial,sans-serif;font-size:13px">1.1.1.1 that it should take that route when your wifi is connected. The only issue is that when you don't have your wifi connected it may route to your destination IP via the eth, would that be an issue?</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Les</span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On 6 March 2014 14:25, Ben Arnold <span dir="ltr"><<a href="mailto:BenArnold@fsfe.org" target="_blank">BenArnold@fsfe.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><p dir="ltr">Hi all,</p><p dir="ltr"><br></p>I have a system with a default Ethernet connection, through which all network traffic should go -- it'll be an internal-only network -- and is set-up correctly as any other. I want one specific host (say, 222.222.222.222) through another interface (wlan0,  gateway of 1.1.1.1) that may or may not be up and connected.<br>

<p dir="ltr">I've read that this would be possible by creating a second routing table for the wifi connection, which has 1.1.1.1 listed as that default gateway and create a rule that applies the specific IP to that routing table. Having added "<span style="font-family:courier new,monospace">1 wifi</span>" to <span style="font-family:courier new,monospace">/etc/iproute2/rt_tables</span>, how can I correct the following, and are there any other considerations that mean it's not that simple? <br>

</p>
<p dir="ltr"><span style="font-family:courier new,monospace">    ip route add default via 1.1.1.1 dev wlan0 table wifi</span><span style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"><br>


    ip rule add from </span></span><span style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">222.222.222.222</span> table wifi</span></span><span style="font-family:courier new,monospace"><br>


    ip rule add to 222.222.222.222 table wifi</span></p><p>As I've said before my routing knowledge is as strong as a chocolate teapot, I really must get reading and some spare kit...<br></p><p><br></p><div><p dir="ltr">

Much obliged,<br>
Ben</p>
</div></div>
<br>_______________________________________________<br>
Chester mailing list<br>
<a href="mailto:Chester@mailman.lug.org.uk">Chester@mailman.lug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/chester" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/chester</a><br>
<br></blockquote></div><br></div>