From owner-freebsd-questions@FreeBSD.ORG Thu Dec 17 15:47:04 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 814EC10656A7 for ; Thu, 17 Dec 2009 15:47:04 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (113901-app1.sourcehosting.net [72.32.213.11]) by mx1.freebsd.org (Postfix) with ESMTP id 5A6C48FC1C for ; Thu, 17 Dec 2009 15:47:04 +0000 (UTC) Received: from 68-189-245-235.dhcp.oxfr.ma.charter.com ([68.189.245.235] helo=cube.entropy.prv) by mail1.sourcehosting.net with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1NLI75-000MGq-9V; Thu, 17 Dec 2009 10:18:04 -0500 Received: from [127.0.0.1] (fireball.entropy.prv [192.168.1.12]) by cube.entropy.prv (Postfix) with ESMTP id 5E63B38E11A2; Thu, 17 Dec 2009 10:17:59 -0500 (EST) Message-ID: <4B2A4BA3.10309@FreeBSD.org> Date: Thu, 17 Dec 2009 10:17:55 -0500 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Sandra Kachelmann References: <91b92520912140623n188e2dd7h1b9115f36faef2ac@mail.gmail.com> <91b92520912170609h2b4d9e8fv8c380924130e04fa@mail.gmail.com> <91b92520912170655u2625aeedkf83fbb220696f06d@mail.gmail.com> <91b92520912170656n1ac767e4i4f51d77790f996@mail.gmail.com> In-Reply-To: <91b92520912170656n1ac767e4i4f51d77790f996@mail.gmail.com> X-Enigmail-Version: 0.96.0 OpenPGP: id=1C940290 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: -0.4 (/) Cc: 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: glarkin@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Dec 2009 15:47:04 -0000 -----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. Regards, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFLKkuj0sRouByUApARAh+yAJ9BDz1Bo+7sBvDL0zZp+tz8J3R+twCgh+jj 6O0Z/CzmMdvm6ZOhIYCED/o= =ZSP1 -----END PGP SIGNATURE-----