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

Re: How to configure static route?



On Sun, 26 Jun 2011 10:53:21 +0800, Magicloud Magiclouds wrote:

>   I used to use configuration like "up ip route add 0.0.0.0/0 via
> a.b.c.d dev eth0" in /etc/network/interfaces to do this.

Is that option not available anymore?

>   But today, in debian doc
> (http://www.debian.org/doc/manuals/reference/ch05.en.html 5.5.14), I
> found that there is a /etc/network/routes to do this. Well, I cannot
> find more information about it.
>   Anyone could help giving me a clue? Thanks.

Indeed, the on file documentation is very brief. The important part says:

# This file includes a list of routes for differenet networks 
# following the format # Network Netmask Gateway Interface
#
# Example:
#
# 172.1.1.0 255.255.255.0 192.168.0.1 eth0

Greetings,

-- 
Camaleón


Reply to: