From owner-freebsd-questions@FreeBSD.ORG Thu Dec 17 15:03:33 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9EB851065692 for ; Thu, 17 Dec 2009 15:03:33 +0000 (UTC) (envelope-from s.kachelmann@googlemail.com) Received: from mail-fx0-f227.google.com (mail-fx0-f227.google.com [209.85.220.227]) by mx1.freebsd.org (Postfix) with ESMTP id 32B7C8FC19 for ; Thu, 17 Dec 2009 15:03:32 +0000 (UTC) Received: by fxm27 with SMTP id 27so1990647fxm.3 for ; Thu, 17 Dec 2009 07:03:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=q7VvnNVAsZ8uPbbc3XV7ddV0F5QivOOpvFkK0ezGd5k=; b=DoFkadu8l9XKCz0EHCVOvw1SNi2wbGvptVPDT3Ek1mze7fxPtjBV2Y2io2W3okiEo+ Of07QoPdnQkE4MHNos5zwHN5KxsD191ItLgY/jOYoaGbInzua1dQjVKx3vgrGuooA4QI z/oqxWGCo5IQ9+tRyvVRlZVi5Lg9DLbR9SohY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=rBx1r31pfhRaJ2BuECi3wuHguFUufRxhUmY6knhd0cXVst8xcN92rBsYKYaGVw7NIr otHgGgwKMtr3E2WlAp1oLsdx0GjgtNF4Y2Arg7CpUvi5X3xK+QXn6F3de8UjrUFgQkik FYEr5ORdUwUIqDvz9KJDZgPegDHuLfUq2mfIw= MIME-Version: 1.0 Received: by 10.239.179.98 with SMTP id c34mr261233hbg.17.1261060550665; Thu, 17 Dec 2009 06:35:50 -0800 (PST) In-Reply-To: <4B2A3D63.1080804@ose.nl> References: <91b92520912140623n188e2dd7h1b9115f36faef2ac@mail.gmail.com> <91b92520912170609h2b4d9e8fv8c380924130e04fa@mail.gmail.com> <4B2A3D63.1080804@ose.nl> Date: Thu, 17 Dec 2009 15:35:50 +0100 Message-ID: <91b92520912170635u4c9cf0e4pdeeac95b760c8905@mail.gmail.com> From: Sandra Kachelmann To: Bas Smeelen Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-questions@freebsd.org Subject: Re: ifdown/ifup under FreeBSD? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Dec 2009 15:03:33 -0000 On Thu, Dec 17, 2009 at 3:17 PM, Bas Smeelen wrote: > Sandra Kachelmann wrote: >> Under RedHat Linux I can configure an interface, routes and so on in >> /etc/sysconfig/network-scripts/ifcfg-eth1, >> /etc/sysconfig/network-scripts/routes-eth1 then simply run: >> >> $ ifup eth1 >> >> and it will set all the routes/netconfig/aliases I just configured. >> >> Is there something similar in FreeBSD? >> >> I tried configuring aliases in /etc/rc.conf and running: >> >> $ /etc/rc.d/netif restart >> >> but that just ended in errors that the route was already configured >> and so on. Sure I could do all the work manually with ifconfig and >> route but that's not my question. >> > Usually I do this from remote with /etc/rc.d/netif restart && > /etc/rc.d/routing restart & > Maybe you are not root (because of the $ prompt)? > #/etc/rc.d/netif restart && /etc/rc.d/routing restart & > This always works for me I was root but I didn't think of '/etc/rc.d/routing' also thanks to Ivan. Sandra