linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Xavier <xavier@reivax.org>
To: urgrue <urgrue@tumsan.fi>
Cc: linux-admin@vger.kernel.org
Subject: Re: very stupid question about debian
Date: Thu, 23 Jan 2003 18:55:49 +0100	[thread overview]
Message-ID: <20030123175549.GA2500@reivax.org> (raw)
In-Reply-To: <20030122102107.GA4390@fede2.tumsan.fi>


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

      parent reply	other threads:[~2003-01-23 17:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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
2003-01-22 15:57 ` Matt Hemingway
2003-01-23 17:55 ` Xavier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030123175549.GA2500@reivax.org \
    --to=xavier@reivax.org \
    --cc=linux-admin@vger.kernel.org \
    --cc=urgrue@tumsan.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).