Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Apr 1999 10:12:30 +0200
From:      Matthias Meyser <Matthias.Meyser@harz.de>
To:        freebsd-questions@FreeBSD.org
Subject:   Re: Problem with ifconfig aliases
Message-ID:  <19990427101230.C5468@xenetserver.harz.de>
In-Reply-To: <Pine.GSO.4.10.9904262022020.2697-100000@shell.xecu.net>; from Andy Dills on Mon, Apr 26, 1999 at 08:33:11PM -0400
References:  <Pine.GSO.4.10.9904262022020.2697-100000@shell.xecu.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi

On Mon, Apr 26, 1999 at 08:33:11PM -0400, Andy Dills wrote:
> I have no problems bringing up IP aliases on reseller2, using this as my
> command:
> 
> ifconfig ep0 inet <ip> netmask 255.255.255.248 alias
> 
> However, whenever I try to do this on reseller3, I get:
> 
> reseller3# ifconfig ep0 inet 208.244.234.134 netmask 255.255.255.248 alias
> ifconfig: ioctl (SIOCAIFADDR): File exists

I had the same problem. 
The first ifconfig (main address) adds a route for the networkpart of your
address to go via this interface and adds a route for the localadress to go
through 127.0.0.1.

If you do an alias with an Address from the same network ifconfig
trys the same thing but can`t set the first route because ist already there.
The scound one ist the omitted.

> It then shows up in the ifconfig -a:
> ep0: flags=8847<UP,BROADCAST,DEBUG,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         inet 208.244.234.132 netmask 0xfffffff8 broadcast 208.244.234.135
>         inet 208.244.234.134 netmask 0xfffffff8 broadcast 208.244.234.135
>         ether 00:20:af:1b:0c:97 
> 
> However, the ip address is unpingable or unreachable in any way. This is
> not the case with reseller2, which is running the same release (as shown
> above) and is using the same type of ethernet card.

You should be able to ping each machine be each other only local ping 
should not work.

> Does anybody have any suggestions as to how I can correct or debug this?
IF an aliased IP is on the same network as another IP use a netmask of
255.255.255.255 for that IP.


CU
   matthias

-- 
\\   //      N   N EEE TTT Matthias Meyser, Meyser@harz.de
 \\ //  eee  NN  N E    T  Gesellschaft fuer Informations- und 
  \X/  e   e N N N EE   T  Kommunikationssysteme mbH
 // \\ e ee  N  NN E    T  38678 Clausthal-Zellerfeld, Burgstaetter Strasse 6
//   \\ eeee N   N EEE  T  Telefon: +49-5323-94018 Fax: +49-5323-94011


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990427101230.C5468>