From owner-freebsd-questions@FreeBSD.ORG Fri Dec 18 09:36:57 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 6C3011065679 for ; Fri, 18 Dec 2009 09:36:57 +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 CA5B48FC29 for ; Fri, 18 Dec 2009 09:36:56 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id 16so1422217fgg.13 for ; Fri, 18 Dec 2009 01:36:55 -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=tkwCuRCl3E9NTCQCKexDAlRPtJmmPjxbEoyW+U0UyPQ=; b=sXTNwp5QL5p96fvzSjA9i2P6YH+RhFA5YfZwmdu7M/jBbfEisObnauDbrZWSNqC5qc 6yCo2No1yX7gBjJdyl4Mxj/cvNTK1aHTuRC0f3Xc5rqSiRzzvn1gwwjAz/3lFtGsnz5t Dx6iNEN4baqB89kcWL0cbJ7MtDmg39GOOSYVA= 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=xn9MOQMa9uLpGZrvMkx5tgShyd4ka0QAp0qVwlTusvIOew+6MISSyESd+b1vwLioz0 UdALsIBdejQgy3OVSlx7/YlLjCqIFO3qhpMNpX1r2MRhIz7wKrRMgpbG6Dgp9TlY73Fx KngdebQFVJiUtJmz3Onz1f+xZn2CI+zCxZ+VU= MIME-Version: 1.0 Received: by 10.239.143.214 with SMTP id l22mr393381hba.167.1261129015688; Fri, 18 Dec 2009 01:36:55 -0800 (PST) In-Reply-To: <4B2A4BA3.10309@FreeBSD.org> References: <91b92520912140623n188e2dd7h1b9115f36faef2ac@mail.gmail.com> <91b92520912170609h2b4d9e8fv8c380924130e04fa@mail.gmail.com> <91b92520912170655u2625aeedkf83fbb220696f06d@mail.gmail.com> <91b92520912170656n1ac767e4i4f51d77790f996@mail.gmail.com> <4B2A4BA3.10309@FreeBSD.org> Date: Fri, 18 Dec 2009 10:36:55 +0100 Message-ID: <91b92520912180136s2a0c0916s8f82d07c8a1c0fb2@mail.gmail.com> From: Sandra Kachelmann To: glarkin@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: 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: Fri, 18 Dec 2009 09:36:57 -0000 On Thu, Dec 17, 2009 at 4:17 PM, Greg Larkin wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Sandra Kachelmann wrote: >> 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 > > Hi all, > > I use "/etc/netstart", since it includes all of the commands listed > previously, as well as others that start the DHCP client, firewall, etc. That's what i was looking for. How do you use it correctly? Just "sh /etc/netstart"? Sandra