[Chester LUG] Routing a specific IP through a non-default interface

Ben Arnold BenArnold at fsfe.org
Thu Mar 6 16:59:08 UTC 2014


On 6 March 2014 16:15, Les Pritchard <les.pritchard at gmail.com> wrote:

> Have you tried just doing something like this?
>
> route add -net 222.222.222.222 netmask 255.255.255.255 gw 1.1.1.1
> If you're going for a whole range of IPs via there, you'd just need to
> alter the subnet mask
>


Indeed I can use that to set an IP against a specific gateway, but 1.1.1.1
isn't set as a gateway to go through, so I get "SIOCADDRT: No such process".
(The syntax is okay though, as I can use the command with the eth0 gateway
without issue to go through there.)

Apparently to add a second gateway, I have to use a second routing table,
and against that table add the wlan0 gateway and route the IP.


Ben

-- 
*Ben Arnold*
*Liverpool, UK*

*Free Software Foundation (Europe)*
*e: benarnold at fsfe.org <http://fsfe.org>  |  **ben at
seawolfsanctuary.com <http://seawolfsanctuary.com>*
*w: seawolfsanctuary.com <http://seawolfsanctuary.com>  |  chat: benarnold
at jabber.fsfe.org <http://jabber.fsfe.org>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/chester/attachments/20140306/1f65ccdf/attachment.html>


More information about the Chester mailing list