Skip to contentSkip to conversation

very stupid question about debian

DISCUSSION urgrue 7 participants 7 messages Jan 22, 2003 – Jan 23, 2003

lore
Share & tools
lore

urgrue

author
#0 lore raw

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!

#1 lore raw

Re: very stupid answer about debian :-)

--- urgrue <[email protected]> a écrit : > i feel like a moron,
but ive gone through document after

Quoted 6 lines

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
In reply to urgrue
Quoted 9 lines · urgrue

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 [email protected]
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

#3 lore raw
In reply to urgrue

... 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 ...

Signature · 2 lines
... i'm a man, but i can change,
    if i have to , i guess ...
#4 lore raw
In reply to urgrue
Quoted 1 line · urgrue

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

Quoted 2 lines

every manual and tutorial on configuring debian gleefully skips this rather fundamental part of setting up a network!

Signature · 3 lines
With best regards,

		Boris B.
#5 lore raw
In reply to urgrue

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

Quoted 9 lines · urgrue

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 6 lines
----------
Matt Hemingway
[email protected]
http://www.pcnalert.com
626-585-2788 x136
----------
#6 lore raw
In reply to urgrue

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

Quoted 9 lines · urgrue

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html