From owner-freebsd-questions@FreeBSD.ORG Thu Dec 17 14:19:17 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 33A5B106568B for ; Thu, 17 Dec 2009 14:19:17 +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 C3A928FC1F for ; Thu, 17 Dec 2009 14:19:16 +0000 (UTC) Received: from localhost ([127.0.0.1]) by mail.ose.nl for freebsd-questions@freebsd.org; Thu, 17 Dec 2009 15:19:14 +0100 Message-ID: <4B2A3DE1.8080809@ose.nl> Date: Thu, 17 Dec 2009 15:19:13 +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> <4B2A3D63.1080804@ose.nl> In-Reply-To: <4B2A3D63.1080804@ose.nl> 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:19:17 -0000 Bas Smeelen wrote=3A =3E Sandra Kachelmann wrote=3A =3E =20 =3E=3E Under RedHat Linux I can configure an interface=2C routes and so on= in =3E=3E /etc/sysconfig/network-scripts/ifcfg-eth1=2C =3E=3E /etc/sysconfig/network-scripts/routes-eth1 then simply run=3A =3E=3E =3E=3E =24 ifup eth1 =3E=3E =3E=3E and it will set all the routes/netconfig/aliases I just configured= =2E =3E=3E =3E=3E Is there something similar in FreeBSD=3F =3E=3E =3E=3E I tried configuring aliases in /etc/rc=2Econf and running=3A =3E=3E =3E=3E =24 /etc/rc=2Ed/netif restart =3E=3E =3E=3E but that just ended in errors that the route was already configured= =3E=3E and so on=2E Sure I could do all the work manually with ifconfig and= =3E=3E route but that=27s not my question=2E =3E=3E =20 =3E=3E =20 =3E Usually I do this from remote with /etc/rc=2Ed/netif restart =26=26 =3E /etc/rc=2Ed/routing restart =26 =3E Maybe you are not root =28because of the =24 prompt=29=3F =3E =23/etc/rc=2Ed/netif restart =26=26 /etc/rc=2Ed/routing restart =26 =3E This always works for me =3E =20 Sorry=2C omit the last =26 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