Date: Wed, 1 Oct 1997 23:25:14 -1000 (HST) From: "David Langford" <langfod@dihelix.com> To: jm@pluriproj.pt Cc: dan@dpcsys.com, freebsd-questions@FreeBSD.ORG Subject: Re: ifconfig alias Message-ID: <199710020925.XAA06005@caliban.dihelix.com> In-Reply-To: <34335abd.254404@mail.leirianet.pt> from Jose Monteiro at "Oct 2, 97 08:31:00 am"
next in thread | previous in thread | raw e-mail | index | archive | help
Personally I never like doing this in rc.conf. Granted I have a machine with about 300 aliases so this make rc.conf a bit unwieldly. What I did back when was to make a file called netstart.local and it got sourced at the end of netstart. The other thing to always be careful of that your rc files match each other version wise. In other words if you update you rc.conf from the source tree be sure that you also grab netstart et al at the same time. -David >>Make the additional aliases alias1, alias2, etc... >I did. I've changed ifconfig lines in my rc.conf to: > >ifconfig_ed0="inet A.B.C.138 netmask 255.255.255.224" >ifconfig_ed0_alias0="inet A.B.C.139 netmask 255.255.255.255" >ifconfig ed0_alias1="inet A.B.C.140 netmask 255.255.255.255" >ifconfig ed0_alias2="inet A.B.C.141 netmask 255.255.255.255" > >But when i rebooted, the same thing happened: Only 138 and 139 wen Up. >The others stayed down. >So I had to do it manualy as always: > ># ifconfig ed0 inet A.B.C.140 netmask 255.255.255.255 alias ># ifconfig ed0 inet A.B.C.141 netmask 255.255.255.255 alias > >Why can't I do this in rc.conf? >Jose
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199710020925.XAA06005>