Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Feb 2013 14:17:21 -0800 (PST)
From:      Jin Guojun <jguojun@sbcglobal.net>
To:        Chuck Swiger <cswiger@mac.com>
Cc:        questions freebsd <questions@freebsd.org>
Subject:   Re: Why ue0 do ARP on non local address when using static route?
Message-ID:  <1360793841.81458.YahooMailRC@web180902.mail.ne1.yahoo.com>
In-Reply-To: <4A4F390A-3F42-41ED-9D19-EB4CE20DB148@mac.com>
References:  <1360787737.17354.YahooMailRC@web180906.mail.ne1.yahoo.com> <4A4F390A-3F42-41ED-9D19-EB4CE20DB148@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
/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 <cswiger@mac.com>
To: Jin Guojun <jguojun@sbcglobal.net>
Cc: questions freebsd <questions@freebsd.org>
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: <owner-freebsd-questions@FreeBSD.ORG>
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 <questions@freebsd.org>; 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 <questions@freebsd.org>; 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 <freebsd-questions-local@be-well.ilk.org>
To: Jin Guojun <jguojun@sbcglobal.net>
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 <questions@freebsd.org>
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: freebsd-questions@freebsd.org
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions>;
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 13 Feb 2013 22:38:48 -0000

Jin Guojun <jguojun@sbcglobal.net> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1360793841.81458.YahooMailRC>