Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Aug 2002 23:02:57 -0400
From:      "Matthew Emmerton" <matt@gsicomp.on.ca>
To:        "Jorge Mario G." <murcielako@yahoo.com>, <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Problems with IP aliasing
Message-ID:  <001501c24fd1$be6e1600$1200a8c0@gsicomp.on.ca>
References:  <20020830030024.508.qmail@web13808.mail.yahoo.com>

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


> 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

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001501c24fd1$be6e1600$1200a8c0>