Date: Fri, 15 Sep 1995 13:08:27 -0400 From: Coranth Gryphon <gryphon@healer.com> To: hackers@freebsd.org, mmead@Glock.COM Subject: Re: more ifconfig alias problems... Message-ID: <199509151708.NAA03743@healer.com>
next in thread | raw e-mail | index | archive | help
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").
-coranth
------------------------------------------+------------------------+
Coranth Gryphon <gryphon@healer.com> | "Faith Manages." |
| - Satai Delenn |
Phone: 603-598-3440 Fax: 603-598-3430 +------------------------+
USMail: 11 Carver St, Nashua, NH 03060
Disclaimer: All these words are yours, except Europa...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199509151708.NAA03743>
