From owner-freebsd-questions Thu Aug 29 20: 3: 2 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1918A37B400 for ; Thu, 29 Aug 2002 20:03:00 -0700 (PDT) Received: from tomts5-srv.bellnexxia.net (tomts5.bellnexxia.net [209.226.175.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23F3E43E77 for ; Thu, 29 Aug 2002 20:02:59 -0700 (PDT) (envelope-from matt@gsicomp.on.ca) Received: from xena.gsicomp.on.ca ([65.95.177.86]) by tomts5-srv.bellnexxia.net (InterMail vM.5.01.04.19 201-253-122-122-119-20020516) with ESMTP id <20020830030209.MTFJ5829.tomts5-srv.bellnexxia.net@xena.gsicomp.on.ca>; Thu, 29 Aug 2002 23:02:09 -0400 Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by xena.gsicomp.on.ca (8.11.3/8.11.3) with SMTP id g7U1n7X67588; Thu, 29 Aug 2002 21:49:08 -0400 (EDT) (envelope-from matt@gsicomp.on.ca) Message-ID: <001501c24fd1$be6e1600$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: "Jorge Mario G." , References: <20020830030024.508.qmail@web13808.mail.yahoo.com> Subject: Re: Problems with IP aliasing Date: Thu, 29 Aug 2002 23:02:57 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > HI > I'm trying to create IP aliases of the ip 192.168.0.2 > so i create the alias 192.168.10.1 with no problems > this way: > > ifconfig xl0 inet 192.168.10.1 netmask 255.255.255.0 > alias > [root@gator:/usr]# ifconfig > xl0: > flags=8843 mtu > 1500 > inet 192.168.0.2 netmask 0xffffff00 broadcast > 192.168.0.255 > inet 192.168.10.1 netmask 0xffffff00 broadcast > 192.168.10.255 > ether 00:10:5a:07:da:30 > media: Ethernet autoselect (100baseTX > ) > status: active > > > [root@gator:/usr/ports/mail/squirrelmail]# ping > 192.168.10.1 > PING 192.168.10.1 (192.168.10.1): 56 data bytes > 64 bytes from 192.168.10.1: icmp_seq=0 ttl=64 > time=0.080 ms > 64 bytes from 192.168.10.1: icmp_seq=1 ttl=64 > time=0.044 ms > the alias is there and working > > then i tried: > [root@gator:~]# ifconfig xl0 inet 192.168.10.2 netmask > 255.255.255.0 alias > ifconfig: ioctl (SIOCAIFADDR): File exists > [root@gator:~]# > > any ideas why??? > thank ifconfig xl0 inet 192.168.10.2 netmask 255.255.255.255 alias Aliases must be created with a 255.255.255.255 (0xffffffff) netmask. See 'man ifconfig' for details. -- Matt Emmerton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message