From owner-freebsd-questions@FreeBSD.ORG Thu Jan 29 17:03:00 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 98AE210656D4 for ; Thu, 29 Jan 2009 17:03:00 +0000 (UTC) (envelope-from kes-kes@yandex.ru) Received: from forwards4.yandex.ru (forwards4.yandex.ru [77.88.32.20]) by mx1.freebsd.org (Postfix) with ESMTP id 2381F8FC12 for ; Thu, 29 Jan 2009 17:03:00 +0000 (UTC) (envelope-from kes-kes@yandex.ru) Received: from smtp12.yandex.ru (smtp12.yandex.ru [77.88.32.82]) by forwards4.yandex.ru (Yandex) with ESMTP id B7CBE4C5F1A; Thu, 29 Jan 2009 20:02:58 +0300 (MSK) Received: from 213-120-179-94.pool.ukrtel.net ([94.179.120.213]:50951 "EHLO HOMEUSER" smtp-auth: "kes-kes" TLS-CIPHER: TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S5325906AbZA2RCs (ORCPT + 1 other); Thu, 29 Jan 2009 20:02:48 +0300 X-Yandex-Spam: 1 X-Yandex-Front: smtp12 X-Yandex-TimeMark: 1233248568 X-BornDate: 1149541200 X-Yandex-Karma: 0 X-Yandex-KarmaStatus: 0 X-MsgDayCount: 12 X-Comment: RFC 2476 MSA function at smtp12.yandex.ru logged sender identity as: kes-kes Date: Thu, 29 Jan 2009 19:02:45 +0200 From: KES X-Mailer: The Bat! (v4.0.24) Professional Organization: SaftTen X-Priority: 3 (Normal) Message-ID: <825952815.20090129190245@yandex.ru> To: "Arjan van der Oest" In-Reply-To: References: <1868031977.20090129180026@yandex.ru> <161257714.20090129182553@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Cc: questions@freebsd.org Subject: Re[4]: FreeBSD 7.1, routing tables, rc.conf X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: KES List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jan 2009 17:03:01 -0000 Здравствуйте, Arjan. Yes, it is possible to use 'setfib'. As I write: AvdO> Then I do manually: AvdO> setfib 0 route add default AvdO> setfib 1 route add default Also to run services, I can edit /etc/rc.d scripts, but this is ugly, very ugly. As I said it be handy to have: apache_enable="YES" apache_fib="1" named_enable="YES" named_fib="2" etc Вы писали 29 января 2009 г., 18:33:53: AvdO> Funny, I wasn't aware of this new option in 7.1, hence my AvdO> question. From what I see some stuff is already modified to use AvdO> this new option (like ipfw), but others require the setfib AvdO> utility. I'm not sure if you can add routes directly from AvdO> rc.conf, but why not try 'setfib - route add xxx' ? AvdO> (http://www.freebsd.org/releases/7.1R/errata.html) AvdO> -- AvdO> -----Original Message----- AvdO> From: KES [mailto:kes-kes@yandex.ru] AvdO> Sent: donderdag 29 januari 2009 17:26 AvdO> To: Arjan van der Oest AvdO> Cc: questions@freebsd.org AvdO> Subject: Re[2]: FreeBSD 7.1, routing tables, rc.conf AvdO> Здравствуйте, Arjan. AvdO> I mean: AvdO> options ROUTETABLES=2 AvdO> Then I do manually: AvdO> setfib 0 route add default AvdO> setfib 1 route add default AvdO> in rc.conf I can do for FIB0: AvdO> defaultrouter="" AvdO> How to do same thing for other routing tables? AvdO> I exepct next feature to exists: AvdO> defaultrouter_fib1="" AvdO>> What exactly do you mean with two routing tables? AvdO>> -- AvdO>> Met vriendelijke groet / Kind Regards, AvdO>> Worldmax Operations B.V. AvdO>> AvdO>> Arjan van der Oest AvdO>> Network Design Engineer AvdO>> AvdO>> T.: +31 (0) 88 001 7912 AvdO>> F.: +31 (0) 88 001 7902 AvdO>> M.: +31 (0) 6 10 62 58 46 AvdO>> AvdO>> GPG: https://keyserver.pgp.com/ (Key ID: 07286F78) fingerprint: AvdO>> 2E9F 3AE2 0A8B 7579 75A9 169F 5D9E 5312 0728 6F78 AvdO>> -----Original Message----- AvdO>> From: owner-freebsd-questions@freebsd.org AvdO>> [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of KES AvdO>> Sent: donderdag 29 januari 2009 17:00 AvdO>> To: questions@freebsd.org AvdO>> Subject: FreeBSD 7.1, routing tables, rc.conf AvdO>> Здравствуйте, Questions. AvdO>> I have two routing tables. AvdO>> How to setup two default routes for each routing table in rc.conf? -- С уважением, KES mailto:kes-kes@yandex.ru