ifdown/ifup under FreeBSD?

Sandra Kachelmann s.kachelmann at googlemail.com
Thu Dec 17 14:56:39 UTC 2009


On Thu, Dec 17, 2009 at 3:46 PM, Igor V. Ruzanov <igorr at canmos.ru> 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


More information about the freebsd-questions mailing list