Date: Fri, 15 Sep 1995 20:18:56 -0400 From: "matthew c. mead" <mmead@Glock.COM> To: Coranth Gryphon <gryphon@healer.com> Cc: hackers@freebsd.org Subject: Re: more ifconfig alias problems... Message-ID: <199509160018.UAA01895@Glock.COM> In-Reply-To: Your message of Fri, September 15, 1995 13:08:27 -0400 References: <199509151708.NAA03743@healer.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, September 15, 1995 at 13:08:27 (-0400), Coranth Gryphon wrote: > Matthew C. Mead says: > > root@Glock % ifconfig ed0 neon alias netmask 255.255.255.0 > > ifconfig: ioctl (SIOCAIFADDR): File exists > > > > Any ideas what I'm doing wrong, or do I need to upgrade? > > Try this. For the primary ed0 interface, use: > > root# ifconfig ed0 inet 10.20.30.1 netmask 255.255.255.0 > > This gives you the first one (it'll probably be done automatically by > rc.sysconfig and rc.netstart). Obviously substitute your address for > the "10.20.30.1" example :-) > > To add the second address, use: > > root# ifconfig ed0 alias 10.20.30.2 netmask 255.255.255.255 > > If it is on the same class-c as the first address, or: > > root# ifconfig ed0 alias 10.20.40.2 netmask 255.255.255.0 > > If it is on a different class-c than the primary ed0 address. > > Either alias line can be added to the rc.netstart script to be run > automatically. Put if after the "for ifn in ${network_interfaces}" > block (ie. after the "done"). Thanks - this worked! -matt -- Matthew C. Mead mmead@Glock.COM | Network Administration and Software Development http://www.Glock.COM/~mmead/ | Consulting: BizNet Technologies -> mmead@bnt.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199509160018.UAA01895>