From owner-freebsd-questions Thu Feb 28 10:17:59 2002 Delivered-To: freebsd-questions@freebsd.org Received: from trinity.magpage.com (trinity.magpage.com [216.155.0.8]) by hub.freebsd.org (Postfix) with ESMTP id 480C137B400 for ; Thu, 28 Feb 2002 10:17:54 -0800 (PST) Received: from magpage.com (dfrazier@poomba.magpage.com [216.155.24.136]) by trinity.magpage.com (8.11.6/8.11.3) with ESMTP id g1SIHWx59739; Thu, 28 Feb 2002 13:17:32 -0500 (EST) Message-ID: <3C7E743B.9080304@magpage.com> Date: Thu, 28 Feb 2002 13:17:31 -0500 From: Daniel Frazier User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.7) Gecko/20020110 X-Accept-Language: en-us MIME-Version: 1.0 To: Marcus Grando Cc: freebsd-questions@FreeBSD.ORG Subject: Re: ifconfig alias problem References: <5.1.0.14.1.20020228143532.00a8cda0@mail.big.univali.br> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-RRT-Status: UNKNOWN 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 Marcus Grando wrote: > Hello all, > > After CVSUP the 4.5-STABLE, i have this problem: > > /etc/rc.conf entryes: > > ifconfig_fxp0="inet X.X.X.10 broadcast X.X.X.X netmask 255.255.255.224" > ifconfig_fxp0_alias0="inet X.X.X.17 broadcast X.X.X.X netmask 255.255.255.224" > > After reboot, the alias interface not UP, but try insert alias interface and occured this error: > > vesper:~# ifconfig > fxp0: flags=8843 mtu 1500 > inet X.X.X.10 netmask 0xffffffe0 broadcast X.X.X.31 > ether 00:d0:b7:8f:75:cd > media: Ethernet 100baseTX > status: active > faith0: flags=8002 mtu 1500 > lo0: flags=8049 mtu 16384 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 > inet 127.0.0.1 netmask 0xff000000 > vesper:~# ifconfig fxp0 X.X.X.17 netmask 255.255.255.224 broadcast X.X.X.31 alias > ifconfig: ioctl (SIOCAIFADDR): File exists > from man ifconfig: alias Establish an additional network address for this interface. This is sometimes useful when changing network numbers, and one wishes to accept packets addressed to the old interface. If the address is on the same subnet as the first network address for this interface, a netmask of 0xffffffff has to be specified. so, change this... ifconfig_fxp0_alias0="inet X.X.X.17 broadcast X.X.X.X netmask 255.255.255.224" to this... ifconfig_fxp0_alias0="inet X.X.X.17 broadcast X.X.X.X netmask 255.255.255.255" and you should be good to go. -- ---------------------------------------------------------------------- Daniel Frazier Tel: 302-239-5900 Ext. 231 Systems Administrator Fax: 302-239-3909 MAGPAGE, We Power the Internet WWW: http://www.magpage.com/ "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." - Benjamin Franklin, Historical Review of Pennsylvania, 1759. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message