* Re: very stupid answer about debian :-)
2003-01-22 10:21 very stupid question about debian urgrue
@ 2003-01-22 11:46 ` szonyi calin
2003-01-22 11:53 ` very stupid question about debian Carl
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: szonyi calin @ 2003-01-22 11:46 UTC (permalink / raw)
To: urgrue, linux-admin
--- urgrue <urgrue@tumsan.fi> a écrit : > i feel like a moron,
but ive gone through document after
> document and i
> cant find the answer to a profoundly simple question:
> where are static routes defined in debian????
> every manual and tutorial on configuring debian gleefully
> skips this
> rather fundamental part of setting up a network!
Hi
I think you can add he command
route add ....
to your /etc/rc./rc.local (i think)
Bye
Calin
=====
--
A mouse is a device used to point at
the xterm you want to type in.
Kim Alm on a.s.r.
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: very stupid question about debian
2003-01-22 10:21 very stupid question about debian urgrue
2003-01-22 11:46 ` very stupid answer about debian :-) szonyi calin
@ 2003-01-22 11:53 ` Carl
2003-01-22 12:36 ` terry white
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Carl @ 2003-01-22 11:53 UTC (permalink / raw)
To: linux-admin
At 12:21 22/01/2003 +0200, urgrue wrote:
>i feel like a moron, but ive gone through document after document and i
>cant find the answer to a profoundly simple question:
>where are static routes defined in debian????
>every manual and tutorial on configuring debian gleefully skips this
>rather fundamental part of setting up a network!
>-
>To unsubscribe from this list: send the line "unsubscribe linux-admin" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at http://vger.kernel.org/majordomo-info.html
I couldn't find anything either after a quick search.
If you know the route commands you need, you can then put them in a script and
get them executed at boot time by init.
See http://www.debian.org/doc/manuals/debian-faq/ch-customizing.en.html#s-custombootscripts
for custom boot scripts.
--
Carl
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: very stupid question about debian
2003-01-22 10:21 very stupid question about debian urgrue
2003-01-22 11:46 ` very stupid answer about debian :-) szonyi calin
2003-01-22 11:53 ` very stupid question about debian Carl
@ 2003-01-22 12:36 ` terry white
2003-01-22 12:49 ` Boris Bezlaj
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: terry white @ 2003-01-22 12:36 UTC (permalink / raw)
To: linux-admin
... ciao:
: i feel like a moron, but ive gone through document after document and i
: cant find the answer to a profoundly simple question:
: where are static routes defined in debian????
on RH, 'locate static-routes' offered:
/etc/sysconfig/static-routes
/etc/sysconfig/static-routes.save
/etc/static-routes.10-5
/root/temp/static-routes
so, if debian has 'locate' AND 'static-routes' the file's name ...
--
... i'm a man, but i can change,
if i have to , i guess ...
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: very stupid question about debian
2003-01-22 10:21 very stupid question about debian urgrue
` (2 preceding siblings ...)
2003-01-22 12:36 ` terry white
@ 2003-01-22 12:49 ` Boris Bezlaj
2003-01-22 15:57 ` Matt Hemingway
2003-01-23 17:55 ` Xavier
5 siblings, 0 replies; 7+ messages in thread
From: Boris Bezlaj @ 2003-01-22 12:49 UTC (permalink / raw)
To: urgrue; +Cc: linux-admin
On Wed, Jan 22, 2003 at 12:21:07PM +0200, urgrue wrote:
> where are static routes defined in debian????
try to grep for route in /etc/rc scripts
it could look like:
route add net <net_addr> dev ethX
> every manual and tutorial on configuring debian gleefully skips this
> rather fundamental part of setting up a network!
--
With best regards,
Boris B.
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: very stupid question about debian
2003-01-22 10:21 very stupid question about debian urgrue
` (3 preceding siblings ...)
2003-01-22 12:49 ` Boris Bezlaj
@ 2003-01-22 15:57 ` Matt Hemingway
2003-01-23 17:55 ` Xavier
5 siblings, 0 replies; 7+ messages in thread
From: Matt Hemingway @ 2003-01-22 15:57 UTC (permalink / raw)
To: urgrue, linux-admin
Does this help?:
==========
matth:/etc/network# vi /etc/network/interfaces
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
auto lo
iface lo inet loopback
# The first network card - this entry was created during the Debian
installation
# (network, broadcast and gateway are optional)
auto eth0
iface eth0 inet static
address 205.11.170.30
netmask 255.255.255.0
network 205.11.170.0
broadcast 205.11.170.255
gateway 205.11.170.1
==========
You can define aliases in this file as well:
auto eth0:5
iface eth0:5 inet static
address 205.11.170.5
netmask 255.255.255.0
You bring up/down the interface(s) with the ifup/ifdown command:
ifdown eth0
ifup eth0
/etc/network/interfaces is called by /etc/init.d/networking upon boot.
-Matt
On Wednesday 22 January 2003 02:21 am, urgrue wrote:
> i feel like a moron, but ive gone through document after document and i
> cant find the answer to a profoundly simple question:
> where are static routes defined in debian????
> every manual and tutorial on configuring debian gleefully skips this
> rather fundamental part of setting up a network!
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
----------
Matt Hemingway
matt.hemingway@pcnalert.com
http://www.pcnalert.com
626-585-2788 x136
----------
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: very stupid question about debian
2003-01-22 10:21 very stupid question about debian urgrue
` (4 preceding siblings ...)
2003-01-22 15:57 ` Matt Hemingway
@ 2003-01-23 17:55 ` Xavier
5 siblings, 0 replies; 7+ messages in thread
From: Xavier @ 2003-01-23 17:55 UTC (permalink / raw)
To: urgrue; +Cc: linux-admin
hi,
The documentation is not very clear, I think I've found the answer:
use the "up" instruction in /etc/network/interfaces, example:
iface eth0:1 inet static
address 192.168.0.11
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
up route add -net 192.168.1.0/24 gw 192.168.0.1
from the interface(5) man page:
up command
Run command after bringing the interface up. This option can
be given multiple times for a single interface. If so, the commands will
be executed in order. If one of the commands fails, none of the
others will be executed, but the interface will remain configured.
(You can ensure a command never fails by suffixing "|| true".)
there is also the pre-up, down, and post-down similar commands.
And don't be so hard with you, this kind of question is not stupid.
IMHO this is much less stupid asking the question how to configure it
properly than doing it the quick-and-dirty way ;)
Xavier
On Wed, Jan 22, 2003 at 12:21:07PM +0200, urgrue wrote:
> i feel like a moron, but ive gone through document after document and i
> cant find the answer to a profoundly simple question:
> where are static routes defined in debian????
> every manual and tutorial on configuring debian gleefully skips this
> rather fundamental part of setting up a network!
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 7+ messages in thread