Date: Thu, 17 Dec 2009 15:19:13 +0100 From: Bas Smeelen <b.smeelen@ose.nl> To: freebsd-questions@freebsd.org Subject: Re: ifdown/ifup under FreeBSD? Message-ID: <4B2A3DE1.8080809@ose.nl> 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
Bas Smeelen wrote=3A =3E Sandra Kachelmann wrote=3A =3E =20 =3E=3E Under RedHat Linux I can configure an interface=2C routes and so on= in =3E=3E /etc/sysconfig/network-scripts/ifcfg-eth1=2C =3E=3E /etc/sysconfig/network-scripts/routes-eth1 then simply run=3A =3E=3E =3E=3E =24 ifup eth1 =3E=3E =3E=3E and it will set all the routes/netconfig/aliases I just configured= =2E =3E=3E =3E=3E Is there something similar in FreeBSD=3F =3E=3E =3E=3E I tried configuring aliases in /etc/rc=2Econf and running=3A =3E=3E =3E=3E =24 /etc/rc=2Ed/netif restart =3E=3E =3E=3E but that just ended in errors that the route was already configured= =3E=3E and so on=2E Sure I could do all the work manually with ifconfig and= =3E=3E route but that=27s not my question=2E =3E=3E =20 =3E=3E =20 =3E Usually I do this from remote with /etc/rc=2Ed/netif restart =26=26 =3E /etc/rc=2Ed/routing restart =26 =3E Maybe you are not root =28because of the =24 prompt=29=3F =3E =23/etc/rc=2Ed/netif restart =26=26 /etc/rc=2Ed/routing restart =26 =3E This always works for me =3E =20 Sorry=2C omit the last =26 DISCLAIMER=3A This e-mail is for the intended recipient=28s=29 only If you have received it by mistake please let us know by reply and then del= ete it from your system=3B Access=2C disclosure=2C copying=2C distribution or reliance on any of it by= anyone else is prohibited=2E If you as intended recipient have received this e-mail incorrectly=2C pleas= e notify the sender =28via e-mail=29=2E
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B2A3DE1.8080809>