From owner-freebsd-questions@FreeBSD.ORG Thu Dec 17 14:56:39 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4C57E1065670 for ; Thu, 17 Dec 2009 14:56:39 +0000 (UTC) (envelope-from s.kachelmann@googlemail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by mx1.freebsd.org (Postfix) with ESMTP id D4BCB8FC17 for ; Thu, 17 Dec 2009 14:56:38 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id 16so1166347fgg.13 for ; Thu, 17 Dec 2009 06:56:38 -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:content-type; bh=GfEqT9ZdCptQNaFsv7DGY2O2uRgZYdAE0RteMNFtDak=; b=BowwebQam4Z4A84ZLjaBoU+evwmceWjFkqD+Wt9qI7od5Ge3qnYSR5SvM1USLRaBnK IDnx3BG7O+AzSuEoa1uQu7H5qD/m73p9B7pFvInZfZeEcJALMyMEm6vYR4H/opE8HueM J+u8V8FmQFQfXQxvcL14gjVsyFWDHaT9b3BOs= 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 :content-type; b=jhDv7FiQFld7Z7CwGp2jFW4eGu3DtpfNEroAX9O5PYp5MBqoRpv0hJemAlW+K6SiMb 1FfBquPs7lIJjsl6n9liy5ukym+1HaZEDWjQAnNFaAtWqYo0WZ/YyYz9uuFZqqDyAnW4 9nHD3CtzYSECLEznyHRBvSIs6rgXsaarZrsLA= MIME-Version: 1.0 Received: by 10.239.163.204 with SMTP id q12mr272683hbd.39.1261061797823; Thu, 17 Dec 2009 06:56:37 -0800 (PST) In-Reply-To: <91b92520912170655u2625aeedkf83fbb220696f06d@mail.gmail.com> References: <91b92520912140623n188e2dd7h1b9115f36faef2ac@mail.gmail.com> <91b92520912170609h2b4d9e8fv8c380924130e04fa@mail.gmail.com> <91b92520912170655u2625aeedkf83fbb220696f06d@mail.gmail.com> Date: Thu, 17 Dec 2009 15:56:37 +0100 Message-ID: <91b92520912170656n1ac767e4i4f51d77790f996@mail.gmail.com> From: Sandra Kachelmann To: questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: 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:56:39 -0000 On Thu, Dec 17, 2009 at 3:46 PM, Igor V. Ruzanov 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. > | > Under FreeBSD (as well as under Linux) you could use Zebra (Zebra/Quagga > projects) to configure any interfaces/routing specific things. I try to avoid doing complex routing things on my servers. I leave that up to the NOC guys. They can do that on their fancy cisco switches. I want just one route per interface :-) I just wanted to add a seperate route/ip for the second interface, make it permanent by adding it to /etc/rc.conf and tell my FreeBSD to pretend it's booting up by running /etc/rc.d/netif restart. As others pointed out I forgot /etc/rc.d/route. Sandra