From owner-freebsd-net@FreeBSD.ORG Tue Sep 7 07:33:39 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4492D16A4CE for ; Tue, 7 Sep 2004 07:33:39 +0000 (GMT) Received: from mail.star-sw.com (mail.star-sw.com [217.195.82.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F52D43D2F for ; Tue, 7 Sep 2004 07:33:38 +0000 (GMT) (envelope-from nkritsky@star-sw.com) Received: from ARGON.star-sw.com (argon.star-sw.com [217.195.82.10]) by mail.star-sw.com (8.12.11/8.12.11) with ESMTP id i877XaVf064320; Tue, 7 Sep 2004 11:33:36 +0400 (MSD) Received: from ibmka.star-sw.com ([192.168.32.230]) by ARGON.star-sw.com with Microsoft SMTPSVC(5.0.2195.5329); Tue, 7 Sep 2004 11:33:36 +0400 Date: Tue, 7 Sep 2004 11:33:35 +0400 From: "Nickolay A. Kritsky" X-Mailer: The Bat! (v1.49) Personal X-Priority: 3 (Normal) Message-ID: <15766907203.20040907113335@star-sw.com> To: kamal kc In-reply-To: <20040907071030.53611.qmail@web13007.mail.yahoo.com> References: <20040907071030.53611.qmail@web13007.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 07 Sep 2004 07:33:36.0071 (UTC) FILETIME=[FC425D70:01C494AC] cc: freebsd-net@freebsd.org Subject: Re: help:: configuring two network interfaces--message->>ifconfig: ioctl (SIOCAIFADDR): File exists X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "Nickolay A. Kritsky" List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Sep 2004 07:33:39 -0000 Hello kamal, I am not sure but this may be the result of the attempt to assign inet address from the subnet that is already used on the rl0 iface. If you are sure that that you need this behaviour, use netmask of -1 on the rl1 iface. Tuesday, September 07, 2004, 11:10:30 AM, kamal kc wrote: kk> i have run into a mysterious problem. kk> The thing is that i wanted to configure to NIC cards. kk> I just put the card in the slot and booted FreeBSD. The kk> card was detected. When i wanted to configure the nic card using the kk> ifconfig command the following error message was reported. kk> ifconfig: ioctl (SIOCAIFADDR): File exists kk> The same message was reported when i configured the rc.conf file and kk> rebooted the computer. kk> Below i have copied the output of ifconfig and the rc.conf file kk> in case it could help solve the problem. kk> ----------------------------------------------------- kk> kamal# ifconfig kk> rl0: flags=8843 mtu 1500 kk> inet 192.168.10.1 netmask 0xffffff00 broadcast 192.168.10.255 kk> inet6 fe80::250:fcff:feb6:4e1%rl0 prefixlen 64 scopeid 0x1 kk> ether 00:50:fc:b6:04:e1 kk> media: Ethernet autoselect (none) kk> status: no carrier kk> rl1: flags=8843 mtu 1500 kk> inet6 fe80::2e0:4cff:feb0:cc%rl1 prefixlen 64 scopeid 0x2 kk> ether 00:e0:4c:b0:00:cc kk> media: Ethernet autoselect (none) kk> status: no carrier kk> lp0: flags=8810 mtu 1500 kk> lo0: flags=8049 mtu 16384 kk> inet6 ::1 prefixlen 128 kk> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 kk> inet 127.0.0.1 netmask 0xff000000 kk> ---------------------------------------------- kk> kamal# ifconfig rl1 192.168.10.2 kk> ifconfig: ioctl (SIOCAIFADDR): File exists kk> kamal# kk> ---------------------------------------------- kk> kamal# cat rc.conf kk> i kk> # -- sysinstall generated deltas -- # Tue Jan 1 00:34:50 2002 kk> # Created: Tue Jan 1 00:34:50 2002 kk> # Enable network daemons for user convenience. kk> # Please make all changes to this file, not to /etc/defaults/rc.conf. kk> # This file now contains just the overrides from /etc/defaults/rc.conf. kk> linux_enable="YES" kk> sendmail_enable="YES" kk> gateway_enable="YES" kk> sshd_enable="YES" kk> hostname="kamal.com" kk> ifconfig_rl1="inet 192.168.10.1 netmask 255.255.255.0" kk> ifconfig_rl0="inet 192.168.10.2 netmask 255.255.255.0" kk> # -- sysinstall generated deltas -- # Tue Jan 1 01:29:12 2002 kk> moused_enable="YES" kk> kamal# kk> ------------------------------------------------------------ kk> The nic card is detected and configurable in WINDOWS xp and kk> Redhat Linux 9 kk> Another info--- kk> one of the nic is built in with the board and another in add on. kk> please help!! kk> --------------------------------- kk> Do you Yahoo!? kk> Win 1 of 4,000 free domain names from Yahoo! Enter now. kk> _______________________________________________ kk> freebsd-net@freebsd.org mailing list kk> http://lists.freebsd.org/mailman/listinfo/freebsd-net kk> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" -- Best regards, ; Nickolay A. Kritsky ; SysAdmin STAR Software LLC ; mailto:nkritsky@star-sw.com