From owner-freebsd-net@FreeBSD.ORG Sun Aug 15 08:56:56 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B8C3C10656A8 for ; Sun, 15 Aug 2010 08:56:56 +0000 (UTC) (envelope-from zeus@ibs.dn.ua) Received: from ibs.dn.ua (ibs.dn.ua [91.216.196.30]) by mx1.freebsd.org (Postfix) with ESMTP id 3C8C48FC2F for ; Sun, 15 Aug 2010 08:56:55 +0000 (UTC) Received: from ibs.dn.ua (localhost [127.0.0.1]) by ibs.dn.ua with ESMTP id o7F8uqvr022102 for ; Sun, 15 Aug 2010 11:56:52 +0300 (EEST) Received: (from zeus@localhost) by ibs.dn.ua (8.14.4/8.14.4/Submit) id o7F8uqcD022101 for freebsd-net@freebsd.org; Sun, 15 Aug 2010 11:56:52 +0300 (EEST) Date: Sun, 15 Aug 2010 11:56:52 +0300 From: Zeus V Panchenko To: FreeBSD Net Message-ID: <20100815085652.GE95405@ibs.dn.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 8.1-RELEASE X-Editor: GNU Emacs 23.2.1 Subject: startup network configuration choice X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Aug 2010 08:56:56 -0000 Hi All, may somebody advice, please ... i'd like to get automatic network configuration for my netbook while startup depending on the network it connected to while starting up ... not dhcp, but system startup script to detect the network and to configure the interfaces i have written script which receives arguments -h for home and -j for job and cosequently configures network, and configured network in rc.conf for one of the connections (default is job) but i'd like the system to do that automaticaly to avoid timeouts of network services like sshd/sendmail/e.t.c. when i'm starting up with "wrong" connection is there correct way to do that with some of the sturtup scripts or i have to do that by hands somewhere in rc.early? -- Zeus V. Panchenko IT Dpt., IBS ltd GMT+2 (EET)