[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: two local networks



Adam Hardy:
> Jochen Schulz on 25/01/10 14:46, wrote:
>> 
>> # route add -host 192.168.2.253 eth0
> 
> OK grand, with that route cmd, I can access the printer server.
> 
> One more question - where should I put this in the gateway's networking 
> setup to make it permanent?

AFAICT, there's no special mechanism for static routes. But you can add
them to /etc/network/interfaces like this:

iface eth0 inet dhcp
    …
    up route add -host 192.168.2.253 eth0
    down route del -host 192.168.2.253 eth0

J.
-- 
I eat meat and am concerned about bugs which are resistant to
antibiotics.
[Agree]   [Disagree]
                 <http://www.slowlydownward.com/NODATA/data_enter2.html>

Attachment: signature.asc
Description: Digital signature


Reply to: