From owner-freebsd-questions@FreeBSD.ORG Thu Dec 17 14:49:12 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 EEE821065672 for ; Thu, 17 Dec 2009 14:49:12 +0000 (UTC) (envelope-from ricardo.meb.jesus@gmail.com) Received: from gate.criticalsoftware.com (gate.criticalsoftware.com [62.28.132.186]) by mx1.freebsd.org (Postfix) with ESMTP id 699FF8FC1F for ; Thu, 17 Dec 2009 14:49:12 +0000 (UTC) Received: from [192.168.1.142] (unknown [192.168.1.142]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by gate.criticalsoftware.com (Postfix) with ESMTP id AF7AA2285A2; Thu, 17 Dec 2009 14:49:10 +0000 (WET) Message-ID: <4B2A44E5.10804@gmail.com> Date: Thu, 17 Dec 2009 14:49:09 +0000 From: Ricardo Jesus User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091204 Lightning/1.0b2pre Thunderbird/3.0 MIME-Version: 1.0 To: Bas Smeelen References: <91b92520912140623n188e2dd7h1b9115f36faef2ac@mail.gmail.com> <91b92520912170609h2b4d9e8fv8c380924130e04fa@mail.gmail.com> <4B2A3D63.1080804@ose.nl> <4B2A3DE1.8080809@ose.nl> In-Reply-To: <4B2A3DE1.8080809@ose.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 Reply-To: ricardo.m.jesus@criticalsoftware.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Dec 2009 14:49:13 -0000 On 17/12/2009 14:19, Bas Smeelen wrote: > 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 >> > Sorry, omit the last& > > > DISCLAIMER: > This e-mail is for the intended recipient(s) only > > If you have received it by mistake please let us know by reply and then delete it from your system; > Access, disclosure, copying, distribution or reliance on any of it by anyone else is prohibited. > > If you as intended recipient have received this e-mail incorrectly, please notify the sender (via e-mail). > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > The configuration files you're looking are /etc/resolv.conf and /etc/rc.conf. The start/stop scripts are /etc/rc.d/routing and /etc/rc.d/netif respectively. You can view then to check out what arguments they accept (restart, stop, etc). You can have a look at man resolv.conf and rc.conf man pages for more info.