From owner-freebsd-questions@FreeBSD.ORG Wed Feb 13 22:17:28 2013 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 8BAED79A for ; Wed, 13 Feb 2013 22:17:28 +0000 (UTC) (envelope-from jguojun@sbcglobal.net) Received: from nm27-vm0.access.bullet.mail.sp2.yahoo.com (nm27-vm0.access.bullet.mail.sp2.yahoo.com [98.139.44.188]) by mx1.freebsd.org (Postfix) with ESMTP id 680CA2BE for ; Wed, 13 Feb 2013 22:17:28 +0000 (UTC) Received: from [98.139.44.103] by nm27.access.bullet.mail.sp2.yahoo.com with NNFMP; 13 Feb 2013 22:17:22 -0000 Received: from [98.139.44.77] by tm8.access.bullet.mail.sp2.yahoo.com with NNFMP; 13 Feb 2013 22:17:22 -0000 Received: from [127.0.0.1] by omp1014.access.mail.sp2.yahoo.com with NNFMP; 13 Feb 2013 22:17:22 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 340196.43891.bm@omp1014.access.mail.sp2.yahoo.com Received: (qmail 83177 invoked by uid 60001); 13 Feb 2013 22:17:22 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s1024; t=1360793841; bh=LrwuEGaETu6YRSX5Ax8ZRY0ZUN83IqdiihkmBBPtTLE=; 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=xjvm7qdWkvEWWvtkWHLvKVw7lAbsa2UQkNEb38rzE8xLatLxDzydf+0X2+3RCKVrsMdsLH7SA5pVVyIE0IrB08hbuFcDN0keN+ksye4C7oAT/59nMe2MXfWVsvZ2l2Fb5cwYUR3+M7UvhSxfBDYxSXl/vbMxOhKL9D37aOfjN2Q= 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=PtXNAYAXV1pzDfoPReIJdp8e81X314UUbCF94dKnPiV8AZ7/7aEzzqMf7uOYT+HxDNfvIYVz7/N/JJdZRWii3CYgcWEAY4Jbfqy8HxodtR3pydeOGECFwVl4dzDpQNbuCW+1crX9NkIHeABbU7daWtC6x60znZ0aTzdbqp0+0X4=; X-YMail-OSG: neUbDZYVM1nhgK978V0nBRzIxUj7f0xfLHqk1r9c01wRe_4 aQHMawEQX36_nUQ4eE8Njq4BP5u9lkWQ_5QrHM4L2SjzYWPM7AtQicY1GMA. D6uWGlzQOW8o_tvHh3gw0MDGFgoQMR4UcuNv3Q1qswbkm4T7Y20jTAaIPmz3 FP4v9ApDmjPDjY88nUB133fExfWijtUyDElkJjaNIObRzhNVD_FQIt4q7PoI yNw98_zGG75RnzpUrtv8ZbstJxEJMJTDIuqKTNWXLDPpRPh6hefi9iHw0F77 k6z5C2Dx3uii8TcEjIhMHIH0OPIjPeDDnsm72q2tB5IbO1fN2gYlP2lAyOJH my2hCxMiRYBw4gQdS9JsM4hH2gRiW97SIVINEnKyqNurf5j_.LhQkBHLlSyH 2u82Xiac8a0KbKZkhwSLgeV1EpAUwWEJrazWSyeaqejP9MYoHubjLDFyfqS_ .SbYX.99luwjQl2zwoMp6j.hmMvIrTyhNQqVix3A1BsttQHKyqYpdIFx1PJG YCQYhEkfJMHas4MsQrw9MNPWz5M7pwXs4jcimO.S5E1BodHJ0aA.GM.ZbB2K QaIg5PtPJJJjrzAGHV3zBSQ4muAaCTMSt1ztAiULaKXrkDdAkQ50A6Pr8_0O YTIBms8uw8UiCtxwFRyiCgLikRtHLjycwwTen2tuwuv.JZw-- Received: from [199.106.103.55] by web180902.mail.ne1.yahoo.com via HTTP; Wed, 13 Feb 2013 14:17:21 PST X-Rocket-MIMEInfo: 001.001, L2V0Yy9ldGhlcnMgZG9lcyBub3QgaGVscCBiZWNhdXNlIHRoZXJlIGlzIG5vIHdheSByZXNvbHZlIHRoZSBJUCBieSBRRkhOIGluIApldGhlcnMuCgpUaGUgY29ycmVjdCB3YXkgaXMgdG8gdXNlIHJvdXRlciBJUCAoMTAuMjM0LjM3LjEpIGJldHdlZW4gMTAuMjM0LjM3LjAgYW5kIAoxMC4yMjcuMTQ4LjAgaW5zdGVhZCBvZiBpbnRlcmZhY2UgSVAgKDEwLjIzNC4zNy44MCkgZm9yIHN0YXRpYyByb3V0ZS4KCgoKCl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCkZyb206IENodWNrIFN3aWdlciA8Y3MBMAEBAQE- 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> Message-ID: <1360793841.81458.YahooMailRC@web180902.mail.ne1.yahoo.com> Date: Wed, 13 Feb 2013 14:17:21 -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: <4A4F390A-3F42-41ED-9D19-EB4CE20DB148@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: Wed, 13 Feb 2013 22:17:28 -0000 /etc/ethers does not help because there is no way resolve the IP by QFHN in ethers. 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. ________________________________ From: Chuck Swiger To: Jin Guojun Cc: questions freebsd Sent: Wed, February 13, 2013 12:55:07 PM Subject: Re: Why ue0 do ARP on non local address when using static route? On Feb 13, 2013, at 12:35 PM, Jin Guojun wrote: > When attached a Trendent TU2-ET100 USB Ether dongle for a second interface, it > has no problem to talk to the local network (10.234.37.0/24), but it has >problem > > to talk to a remote network or host (10.227.148.0/24) via eu0 interface. > When a remote host ping this host or this host ping that remote host, ARP > request is always showing up. > A static route is set and remote host is no part of the local sub net, why ARP > is going on? You've told the interface that it can reach 10.227.148.52 via 10.234.37.80, which is the IP ue0 was configured to use. It sends ARPOP_REQUESTS to get the MAC address of 10.227.148.52 which is expected to be reachable. > Is any sysctl parameter can fix this problem? You can do things like use proxy-arp, or setup /etc/ethers, or NAT, or even configure ue0 to be on the same subnet as 10.227.148.52 instead, perhaps using an alias. Regards, -- -Chuck From owner-freebsd-questions@FreeBSD.ORG Wed Feb 13 22:38:48 2013 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 1D9A0BEE for ; Wed, 13 Feb 2013 22:38:48 +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 E77B3355 for ; Wed, 13 Feb 2013 22:38:47 +0000 (UTC) Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.41]) by be-well.ilk.org (Postfix) with ESMTP id 1DF3E33C1E; Wed, 13 Feb 2013 17:38:42 -0500 (EST) Received: by lowell-desk.lan (Postfix, from userid 1147) id 4976039843; Wed, 13 Feb 2013 17:38:41 -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> Date: Wed, 13 Feb 2013 17:38:41 -0500 In-Reply-To: <1360787737.17354.YahooMailRC@web180906.mail.ne1.yahoo.com> (Jin Guojun's message of "Wed, 13 Feb 2013 12:35:37 -0800 (PST)") Message-ID: <44halfg7pq.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: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Feb 2013 22:38:48 -0000 Jin Guojun writes: > This is 8.3-Release on a HP EliteBook 8460p (4-core i5) with an on board Intel > (em0) interface. > When attached a Trendent TU2-ET100 USB Ether dongle for a second interface, it > has no problem to talk to the local network (10.234.37.0/24), but it has problem > to talk to a remote network or host (10.227.148.0/24) via eu0 interface. > When a remote host ping this host or this host ping that remote host, ARP > request is always showing up. > A static route is set and remote host is no part of the local sub net, why ARP > is going on? > > Is any sysctl parameter can fix this problem? Until we know what the problem is, we can't guess at the solution. You didn't show the commands you used, for setting up the routes *or* for the diagnostic information you provided. > -Jin > > > Internet: > Destination Gateway Flags Refs Use Netif Expire > default 10.234.16.1 UGS 0 2841993 em0 > 10.227.148.52 10.234.37.80 UHS 0 26 ue0 There's no "G" in the flags there. Sign of a problem. > 10.234.16.0/22 link#1 U 0 0 em0 > 10.234.17.41 link#1 UHS 0 0 lo0 > 10.234.37.0/24 link#8 U 0 3 ue0 > 10.234.37.80 link#8 UHS 0 0 lo0 That's the gateway address. What's it doing with a host route on the loopback interface? That will override the 10.234.37.0/24 interface route, and turn 10.234.37.80 into a "black hole." - Lowell