Date: Thu, 17 Dec 2009 15:35:50 +0100 From: Sandra Kachelmann <s.kachelmann@googlemail.com> To: Bas Smeelen <b.smeelen@ose.nl> Cc: freebsd-questions@freebsd.org Subject: Re: ifdown/ifup under FreeBSD? Message-ID: <91b92520912170635u4c9cf0e4pdeeac95b760c8905@mail.gmail.com> In-Reply-To: <4B2A3D63.1080804@ose.nl> References: <91b92520912140623n188e2dd7h1b9115f36faef2ac@mail.gmail.com> <91b92520912170609h2b4d9e8fv8c380924130e04fa@mail.gmail.com> <4B2A3D63.1080804@ose.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Dec 17, 2009 at 3:17 PM, Bas Smeelen <b.smeelen@ose.nl> 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 I was root but I didn't think of '/etc/rc.d/routing' also thanks to Ivan. Sandra
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?91b92520912170635u4c9cf0e4pdeeac95b760c8905>