From owner-freebsd-questions@FreeBSD.ORG Thu Feb 14 01:17:18 2013 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 09E7A5D4 for ; Thu, 14 Feb 2013 01:17:18 +0000 (UTC) (envelope-from jguojun@sbcglobal.net) Received: from nm6.access.bullet.mail.sp2.yahoo.com (nm6.access.bullet.mail.sp2.yahoo.com [98.139.44.133]) by mx1.freebsd.org (Postfix) with ESMTP id B3097BD7 for ; Thu, 14 Feb 2013 01:17:17 +0000 (UTC) Received: from [98.139.44.102] by nm6.access.bullet.mail.sp2.yahoo.com with NNFMP; 14 Feb 2013 01:17:16 -0000 Received: from [98.139.44.76] by tm7.access.bullet.mail.sp2.yahoo.com with NNFMP; 14 Feb 2013 01:17:16 -0000 Received: from [127.0.0.1] by omp1013.access.mail.sp2.yahoo.com with NNFMP; 14 Feb 2013 01:17:16 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 838230.85093.bm@omp1013.access.mail.sp2.yahoo.com Received: (qmail 43334 invoked by uid 60001); 14 Feb 2013 01:17:16 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s1024; t=1360804636; bh=oHMhqeIZBnXY7WrL4YzocXsxLZzueS0dCItBdCbWS1M=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=LIi1oB0YAUGUEcsD1VwDSAGCF8rasAEfFHFZ2N1pSqazQa5x4izlVyR4nb+wdiBGkNLl4f76GXnfyiviNvSwuvRhYCi4b138cpkROV4+GasFVfQwdhChIGkUju9c8HuJDeehk+bqNDd63pP6x787TKx78pNmwS/kYzRptVLKeFU= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=sbcglobal.net; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=cGPm3sdxxkTpRsrhEA+jaFJ+vAlSCSGjE16uRuhWxHQ/IlICJ1ulm1soeleu+2VAJ69pgQaX765viFhK4iPd0wFSvYcaQlA4PHJxD0dgu6wIXixQegykRUSvzG8k28zPIKtHdOZO0VHnBGthFk0QhpGRZRBBdA2KZZkeOVEICF8=; X-YMail-OSG: t8SfcTgVM1kq59h5FjFmrNXE8dsFvTn1H6K2kD5icCcU0n_ nJLodALWkPJ55wGKPBBWSroVy4ix5EVIKdmLjNxlCqY1ejesG8R_5sDmjdkd wIOQOCKXy9cvBGLbxckvzdRp3HUBFhbYL0Ot9PYQAHD8NzU69yHYfdGORngi .kQZjBhU2N2Ap1cLg4MvyL2HVW.qDX2SWE9m_ATMIIqj1SVJ6ryFgoqrWfO6 Gx9y2a.FPtTS94x8Q3JsmP1NPsXgdOyTmmTOlwrbkC9fugpeyTuVKxEvLJOd YJ49NvTHiPb5mAiE4JhEJ8BT4zpT1yGyv5eoFVGTMAPno18JfBzR5H4Tmhkr PhMMJK.i_uEEo6e38LtBMJ49K_W46024mnvrpeBUku3ut0rlSw.PRapNUkQY l_kgqx66ojzOV7a1Cqu28JZg4e3GbTsFhLzIj5mL7.dH3jFG0edmkScZp5ns 0SIPi1MIWcp4MQie9QCsLmF1xpIEbWCeLNo2F2HDS4A.llBsQBPElcS18fuU 8TAwk91eEK9SjC8dKENCpSFTSlaX71.TkLgK1cJsIBLbdkglMTsgzpUe0rny Se.to863OR3M4KohPmNQ- Received: from [199.106.103.57] by web180901.mail.ne1.yahoo.com via HTTP; Wed, 13 Feb 2013 17:17:15 PST X-Rocket-MIMEInfo: 001.001, bWFuIHBhZ2Ugc2F5cyB0aGF0IGV0aGVybmV0LWFkZHJlc3MgIChNQUMpICsgZnVsbHktcXVhbGlmaWVkLWhvc3QtbmFtZSAoRlFITikuClRoZSBpc3N1ZSBpcyB0aGF0IGhvc3QgY2Fubm90IHJlc29sdmUgdGhlIGFkZHJlc3MgYnkgdXNpbmcgRlFITiwgdGh1cyBubyBBUlAgYW55IAptb3JlLCBidXQgbm8gdHJhZmZpYyBlaXRoZXIuCgpBZnRlciBhZGRpbmcgRlFESCBpbiB0aGUgL2V0Yy9ob3N0cyBmaWxlIHRoZW4sIEFSUCByZXF1ZXN0IHVzZXMgRlFITiBpbnN0ZWFkIG9mIApJUCAoMTAuMjM3LjE0OC41MikBMAEBAQE- X-Mailer: YahooMailRC/718 YahooMailWebService/0.8.133.508 References: <1360787737.17354.YahooMailRC@web180906.mail.ne1.yahoo.com> <4A4F390A-3F42-41ED-9D19-EB4CE20DB148@mac.com> <1360793841.81458.YahooMailRC@web180902.mail.ne1.yahoo.com> <8EFB78FF-51C4-4C69-AB6C-D2B239AF7E2B@mac.com> Message-ID: <1360804635.42599.YahooMailRC@web180901.mail.ne1.yahoo.com> Date: Wed, 13 Feb 2013 17:17:15 -0800 (PST) From: Jin Guojun Subject: Re: Why ue0 do ARP on non local address when using static route? To: Chuck Swiger In-Reply-To: <8EFB78FF-51C4-4C69-AB6C-D2B239AF7E2B@mac.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: questions freebsd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Feb 2013 01:17:18 -0000 man page says that ethernet-address (MAC) + fully-qualified-host-name (FQHN). The issue is that host cannot resolve the address by using FQHN, thus no ARP any more, but no traffic either. After adding FQDH in the /etc/hosts file then, ARP request uses FQHN instead of IP (10.237.148.52). The question is why ARP occurs? The subnet (10.227.148.0) is not matching with the local network/netmask (10.234.37.0/24) unless somewhere in the system is using default 255.0.0.0 netmask for 10.0 A class network by mistake. ________________________________ From: Chuck Swiger To: Jin Guojun Cc: questions freebsd Sent: Wed, February 13, 2013 2:33:57 PM Subject: Re: Why ue0 do ARP on non local address when using static route? On Feb 13, 2013, at 2:17 PM, Jin Guojun wrote: > /etc/ethers does not help because there is no way resolve the IP by QFHN in >ethers. I'm not sure what "QFHN" is, but setting up an entry in /etc/ethers provides the IP to MAC address mapping that ARP attempts to provide dynamically. > The correct way is to use router IP (10.234.37.1) between 10.234.37.0 and >10.227.148.0 instead of interface IP (10.234.37.80) for static route. Assuming there's a router at 10.234.37.1 which knows how to get to 10.227.148.52, yes. Regards, -- -Chuck From owner-freebsd-questions@FreeBSD.ORG Thu Feb 14 01:34:59 2013 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id AA41FB75 for ; Thu, 14 Feb 2013 01:34:59 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id 6088FCDB for ; Thu, 14 Feb 2013 01:34:59 +0000 (UTC) Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.41]) by be-well.ilk.org (Postfix) with ESMTP id A9C2433C1D; Wed, 13 Feb 2013 20:34:47 -0500 (EST) Received: by lowell-desk.lan (Postfix, from userid 1147) id E65D339843; Wed, 13 Feb 2013 20:34:46 -0500 (EST) From: Lowell Gilbert To: Jin Guojun Subject: Re: Why ue0 do ARP on non local address when using static route? References: <1360787737.17354.YahooMailRC@web180906.mail.ne1.yahoo.com> <4A4F390A-3F42-41ED-9D19-EB4CE20DB148@mac.com> <1360793841.81458.YahooMailRC@web180902.mail.ne1.yahoo.com> <8EFB78FF-51C4-4C69-AB6C-D2B239AF7E2B@mac.com> <1360804635.42599.YahooMailRC@web180901.mail.ne1.yahoo.com> Date: Wed, 13 Feb 2013 20:34:46 -0500 In-Reply-To: <1360804635.42599.YahooMailRC@web180901.mail.ne1.yahoo.com> (Jin Guojun's message of "Wed, 13 Feb 2013 17:17:15 -0800 (PST)") Message-ID: <447gmbfzk9.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: questions freebsd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Feb 2013 01:34:59 -0000 Jin Guojun writes: > man page says that ethernet-address (MAC) + fully-qualified-host-name (FQHN). > The issue is that host cannot resolve the address by using FQHN, thus no ARP any > more, but no traffic either. > > After adding FQDH in the /etc/hosts file then, ARP request uses FQHN instead of > IP (10.237.148.52). > > The question is why ARP occurs? > The subnet (10.227.148.0) is not matching with the local network/netmask > (10.234.37.0/24) unless somewhere in the system is using default 255.0.0.0 > netmask for 10.0 A class network by mistake. Your first message showed an overriding route for the gateway address. Are you sure that the ARP is happening on the interface for the gateway's network? According to the routing table you posted, it should be hitting the loopback interface, but not leaving the box.