From owner-freebsd-questions@FreeBSD.ORG Thu Dec 17 14:17:11 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 5ECBB1065670 for ; Thu, 17 Dec 2009 14:17:11 +0000 (UTC) (envelope-from b.smeelen@ose.nl) Received: from mail.ose.nl (mail.ose.nl [212.178.134.164]) by mx1.freebsd.org (Postfix) with ESMTP id EC50B8FC15 for ; Thu, 17 Dec 2009 14:17:10 +0000 (UTC) Received: from localhost ([127.0.0.1]) by mail.ose.nl for freebsd-questions@freebsd.org; Thu, 17 Dec 2009 15:17:08 +0100 Message-ID: <4B2A3D63.1080804@ose.nl> Date: Thu, 17 Dec 2009 15:17:07 +0100 From: Bas Smeelen User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <91b92520912140623n188e2dd7h1b9115f36faef2ac@mail.gmail.com> <91b92520912170609h2b4d9e8fv8c380924130e04fa@mail.gmail.com> In-Reply-To: <91b92520912170609h2b4d9e8fv8c380924130e04fa@mail.gmail.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable 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 14:17:11 -0000 Sandra Kachelmann wrote=3A =3E Under RedHat Linux I can configure an interface=2C routes and so on in= =3E /etc/sysconfig/network-scripts/ifcfg-eth1=2C =3E /etc/sysconfig/network-scripts/routes-eth1 then simply run=3A =3E =3E =24 ifup eth1 =3E =3E and it will set all the routes/netconfig/aliases I just configured=2E= =3E =3E Is there something similar in FreeBSD=3F =3E =3E I tried configuring aliases in /etc/rc=2Econf and running=3A =3E =3E =24 /etc/rc=2Ed/netif restart =3E =3E but that just ended in errors that the route was already configured =3E and so on=2E Sure I could do all the work manually with ifconfig and =3E route but that=27s not my question=2E =3E =20 Usually I do this from remote with /etc/rc=2Ed/netif restart =26=26 /etc/rc=2Ed/routing restart =26 Maybe you are not root =28because of the =24 prompt=29=3F =23/etc/rc=2Ed/netif restart =26=26 /etc/rc=2Ed/routing restart =26 This always works for me DISCLAIMER=3A This e-mail is for the intended recipient=28s=29 only If you have received it by mistake please let us know by reply and then del= ete it from your system=3B Access=2C disclosure=2C copying=2C distribution or reliance on any of it by= anyone else is prohibited=2E If you as intended recipient have received this e-mail incorrectly=2C pleas= e notify the sender =28via e-mail=29=2E