Date: Fri, 30 Aug 2002 12:40:15 +0300 From: "Ivailo Tanusheff" <i.tanusheff@procreditbank.com> To: "FreeBSD Questions" <freebsd-questions@freebsd.org> Subject: FW: Problems with IP aliasing Message-ID: <006801c25009$3ea677e0$cbf810ac@sof.procreditbank.bg>
next in thread | raw e-mail | index | archive | help
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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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 <full-duplex>) 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?006801c25009$3ea677e0$cbf810ac>