From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xavier Subject: Re: very stupid question about debian Date: Thu, 23 Jan 2003 18:55:49 +0100 Sender: linux-admin-owner@vger.kernel.org Message-ID: <20030123175549.GA2500@reivax.org> References: <20030122102107.GA4390@fede2.tumsan.fi> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <20030122102107.GA4390@fede2.tumsan.fi> List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: urgrue Cc: linux-admin@vger.kernel.org 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