From owner-freebsd-net@FreeBSD.ORG Sat Sep 15 05:22:53 2007 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A704716A41A for ; Sat, 15 Sep 2007 05:22:53 +0000 (UTC) (envelope-from rmaglasang@infoweapons.com) Received: from ironmail.infoweapons.com (ironmail.infoweapons.com [58.71.34.140]) by mx1.freebsd.org (Postfix) with ESMTP id B8C2513C45D for ; Sat, 15 Sep 2007 05:22:52 +0000 (UTC) (envelope-from rmaglasang@infoweapons.com) Received: (qmail 25354 invoked by uid 98); 15 Sep 2007 05:22:38 -0000 Received: from 10.3.1.41 by ironmail.cebu.infoweapons.com (envelope-from , uid 82) with qmail-scanner-1.25 (clamdscan: 0.86.1/959. spamassassin: 3.0.4. Clear:RC:1(10.3.1.41):. Processed in 0.053316 secs); 15 Sep 2007 05:22:38 -0000 X-Qmail-Scanner-Mail-From: rmaglasang@infoweapons.com via ironmail.cebu.infoweapons.com X-Qmail-Scanner: 1.25 (Clear:RC:1(10.3.1.41):. Processed in 0.053316 secs) Received: from unknown (HELO ?10.3.1.41?) (10.3.1.41) by ironmail.infoweapons.com with AES256-SHA encrypted SMTP; 15 Sep 2007 05:22:38 -0000 Message-ID: <46EB6888.2030407@infoweapons.com> Date: Sat, 15 Sep 2007 13:07:20 +0800 From: "Ronnel P. Maglasang" User-Agent: Thunderbird 1.5 (X11/20060613) MIME-Version: 1.0 To: myronn@seed.net.tw References: <18389100.19191189762877349.JavaMail.root@wm8.seed.net.tw> In-Reply-To: <18389100.19191189762877349.JavaMail.root@wm8.seed.net.tw> Content-Type: text/plain; charset=Big5 Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: ICMP issue while multiple interface in the same subnet X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Sep 2007 05:22:53 -0000 what are the IP addresses of your nics in Host1 and Host2? they should be in different networks (e.g. 10/8 and 172.16/16) for this to work. myronn@seed.net.tw wrote: > Hi, > For a special test reason, I must use two hosts and it has two interfaces to connect each other without any switch or hub. > Host1 Host2 > |-----| |-----| > | 1 0-----------------0 1 | > | | | | > | 2 0-----------------0 2 | > |-----| |-----| > > Host platform OS is BSD. I assigned Host1 NIC1 ping Host NIC2. Command is correct but I found as follows: > 1. Host1 arp broadcast to Host2 and Host2 would be return info to Host1. > 2. Then, Host1 sent ICMP request packet to Host2. > 3. Host2 received packet and always "USE" NIC2 replaying the ICMP reply. > 4. If Host1 use NIC2 ping Host2 NIC2, Host1 NIC2 could get the ICMP reply packet from Host2 NIC2. > > Question: > 1. This behavior is a normal network behavior? > 2. If it's a normal network behavior, it followed which standard? > 3. I know that there were other softwares could change this behavior but why many platforms(BSD,Linux,.....) used this behavior was its default network behavior? > 4. Why default behavior is incoming interface different from outgoing interface? > 5. If I set all interfaces are in the same subnet and the incoming interface is the same with outgoing interface, what weakness would be happened? > > Thanks and Regards, > Myron > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > >