How to configure static route?
Hi,
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. 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. -- 竹密岂妨流水过 山高哪阻野云飞 -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org Archive: BANLkTiku6qYJAjLa+4p8iMHPG4EkMC5+Aw@mail.gmail.com ">http://lists.debian.org/BANLkTiku6qYJAjLa+4p8iMHPG4EkMC5+Aw@mail.gmail.com |
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, -- Camalen -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org Archive: pan.2011.06.26.09.14.21@gmail.com">http://lists.debian.org/pan.2011.06.26.09.14.21@gmail.com |
How to configure static route?
On 06/26/11 at 10:53am, Magicloud Magiclouds wrote:
> Hi, > 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. I assume this was just an example, but if you really wanted a route to 0.0.0.0 you would use the 'gateway' parameter ;P -- Liam |
How to configure static route?
On Du, 26 iun 11, 10:53:21, Magicloud Magiclouds wrote:
> Hi, > 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. > 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. $ apt-file search /etc/network/routes ifupdown-extra: /etc/network/routes $ apt-cache show ifupdown-extra ... Description: Network scripts for ifupdown This package provides a set of network testing scripts to be used together with the ifupdown package. These scripts can: - check the network cable before an interface is configured. - test if an assigned IP address is already in use in the network. - test if default network gateways are reachable. - setup default static routes for interfaces. . This package also provides 'network-test', a script to test the network configuration status by checking: - Status of available interface. - Availability of configured gateway routes. - If host resolution is working properly (DNS checks). - If network connectivity is working, including ICMP and web connections to remote web servers. Tag: admin::configuring, network::configuration, network::routing, role::program, scope::utility, use::checking, use::configuring, works-with::network-traffic IMVHO the static routes part should be moved to ifupdown. How about a 'whishlist' bug? Hope this helps, Andrei -- Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic |
How to configure static route?
http://kindlund.wordpress.com/2007/11/19/configuring-multiple-default-routes-in-linux/
or use interfaces file like this allow-hotplug eth1 iface eth1 inet static address 192.168.0.2 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 post-up ip route add 192.168.0.0/24 dev eth1 src 192.168.0.2 table rt2 post-up ip route add default via 192.168.0.254 dev eth1 table rt2 post-up ip rule add from 192.168.0.0/24 table rt2 post-up ip rule add to 192.168.0.0/24 table rt2 post-up ip rule add from 10.0.0.0/24 table rt2 post-up ip rule add to 10.0.0.0/24 table rt2 the table rt2 or other name do you like is inserted in /etc/iproute2/rt_tables like this line 1 rt2 -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org Archive: BANLkTinj91zX5B=TeKuBL6+3Q1iNG4Qqxg@mail.gmail.com ">http://lists.debian.org/BANLkTinj91zX5B=TeKuBL6+3Q1iNG4Qqxg@mail.gmail.com |
How to configure static route?
On Ma, 28 iun 11, 13:16:42, owl700@gmail.com wrote:
[snip] That's not what the OP was looking for... Regards, Andrei -- Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic |
How to configure static route?
On 06/28/11 at 11:43am, Andrei POPESCU wrote:
> On Du, 26 iun 11, 10:53:21, Magicloud Magiclouds wrote: > $ apt-cache show ifupdown-extra > ... > - setup default static routes for interfaces. > IMVHO the static routes part should be moved to ifupdown. How about a > 'whishlist' bug? Seconded. I'll check for one and file tonight (: -- Liam |
How to configure static route?
On Tue, Jun 28, 2011 at 11:43:39AM +0300, Andrei POPESCU wrote:
... > IMVHO the static routes part should be moved to ifupdown. How about a > 'whishlist' bug? Yah! With new maintainer team, it may be worth it. But make sure to provide compatible patch. ifupdown package is a bit involved one :-) Osamu PS: Part of the reason upstream if ifupdown did not accept this was because there are other ways to do the same as posted here. -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org Archive: 20110708150807.GB26204@debian.org">http://lists.debian.org/20110708150807.GB26204@debian.org |
| All times are GMT. The time now is 07:05 PM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.