From owner-freebsd-questions Wed Nov 6 23:23:50 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C77F937B401 for ; Wed, 6 Nov 2002 23:23:48 -0800 (PST) Received: from server.rucus.ru.ac.za (server.rucus.ru.ac.za [146.231.115.1]) by mx1.FreeBSD.org (Postfix) with SMTP id 8C47243E42 for ; Wed, 6 Nov 2002 23:23:45 -0800 (PST) (envelope-from drs@rucus.ru.ac.za) Received: (qmail 77611 invoked from network); 7 Nov 2002 07:23:34 -0000 Received: from bashir.dsl.ru.ac.za (146.231.113.19) by server.rucus.ru.ac.za with SMTP; 7 Nov 2002 07:23:34 -0000 Received: (qmail 397 invoked by uid 1001); 7 Nov 2002 07:23:32 -0000 Date: Thu, 7 Nov 2002 09:23:32 +0200 From: David =?iso-8859-1?Q?Sieb=F6rger?= To: Alireza Mahini Cc: questions@freebsd.org Subject: Re: How can i use multiple ethernet card for data transfer in my program( in C language)? Message-ID: <20021107072332.GA385@rucus.ru.ac.za> References: <20021107033002.47061.qmail@web40702.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20021107033002.47061.qmail@web40702.mail.yahoo.com> User-Agent: Mutt/1.4i 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 At 7:30 PM on Wednesday 6 November 2002, Alireza Mahini wrote: > I have two ethernet card(NIC)im my computer .Their > characteristics are: > > name:rl0 > ip:128.128.64.235 > netmask:255.255.0.0 > broadcast:128.128.255.255 > > name:rl1 > ip:128.128.65.235 > netmask:255.255.0.0 > broadcast:128.128.255.255 Notice that you've configured both of these interfaces on the same subnet: 128.128.0.0/16. I doubt that's what you intended. The operating system will create one route to the 128.128.0.0/16 network and will send packets through that route. I would suggest you change the netmasks to 255.255.255.0. Or read up on IP subnetting and rethink your network topology. -- David Siebörger drs@rucus.ru.ac.za To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message