Date: Thu, 28 Feb 2002 13:17:31 -0500 From: Daniel Frazier <dfrazier@magpage.com> To: Marcus Grando <marcus@big.univali.br> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: ifconfig alias problem Message-ID: <3C7E743B.9080304@magpage.com> References: <5.1.0.14.1.20020228143532.00a8cda0@mail.big.univali.br>
next in thread | previous in thread | raw e-mail | index | archive | help
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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 > inet X.X.X.10 netmask 0xffffffe0 broadcast X.X.X.31 > ether 00:d0:b7:8f:75:cd > media: Ethernet 100baseTX <full-duplex> > status: active > faith0: flags=8002<BROADCAST,MULTICAST> mtu 1500 > lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> 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 <dfrazier@magpage.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C7E743B.9080304>