From owner-freebsd-questions Fri Aug 30 3:21:23 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 30BE737B400 for ; Fri, 30 Aug 2002 03:21:17 -0700 (PDT) Received: from chicken.orbitel.bg (chicken100.orbitel.bg [195.24.32.21]) by mx1.FreeBSD.org (Postfix) with SMTP id 98B3543E6A for ; Fri, 30 Aug 2002 03:21:15 -0700 (PDT) (envelope-from i.tanusheff@procreditbank.com) Received: (qmail 6189 invoked from network); 30 Aug 2002 10:21:07 -0000 Received: from unknown (HELO procreditbank.com) (212.95.170.74) by chicken.orbitel.bg with SMTP; 30 Aug 2002 10:21:06 -0000 Received: from itaush [172.16.248.203] by Proxy+; Fri, 30 Aug 2002 12:40:16 +0300 for From: "Ivailo Tanusheff" To: "FreeBSD Questions" Subject: FW: Problems with IP aliasing Date: Fri, 30 Aug 2002 12:40:15 +0300 Message-ID: <006801c25009$3ea677e0$cbf810ac@sof.procreditbank.bg> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0069_01C25022.63F3AFE0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal 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 This is a multi-part message in MIME format. ------=_NextPart_000_0069_01C25022.63F3AFE0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit You've put wrong netmask. If there is IP on the same network on the sane NIC, then the netmask should be 255.255.255.255. So, try this: ifconfig xl0 inet 192.168.10.2 netmask 255.255.255.255 alias Ivailo Tanusheff -----Original Message----- From: owner-freebsd-questions@FreeBSD.ORG [mailto:owner-freebsd-questions@FreeBSD.ORG] On Behalf Of Jorge Mario G. Sent: Friday, August 30, 2002 6:00 AM To: freebsd-questions@freebsd.org Subject: Problems with IP aliasing 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 ------=_NextPart_000_0069_01C25022.63F3AFE0 Content-Type: text/x-vcard; name="Ivailo Tanusheff.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Ivailo Tanusheff.vcf" BEGIN:VCARD VERSION:2.1 N:Tanusheff;Ivailo FN:Ivailo Tanusheff ORG:ProCredit Bank TITLE:System administrator and Security advisor TEL;WORK;VOICE:359 2 9217161 EMAIL;PREF;INTERNET:I.Tanusheff@procreditbank.com REV:20020822T070308Z END:VCARD ------=_NextPart_000_0069_01C25022.63F3AFE0 Content-Type: text/x-vcard; name="Ivailo Tanusheff.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Ivailo Tanusheff.vcf" BEGIN:VCARD VERSION:2.1 N:Tanusheff;Ivailo FN:Ivailo Tanusheff ORG:ProCredit Bank TITLE:System administrator and Security advisor TEL;WORK;VOICE:359 2 9217161 EMAIL;PREF;INTERNET:I.Tanusheff@procreditbank.com REV:20020822T070308Z END:VCARD ------=_NextPart_000_0069_01C25022.63F3AFE0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message