From owner-freebsd-net@FreeBSD.ORG Fri Jul 2 16:31:06 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EBEE416A4CE for ; Fri, 2 Jul 2004 16:31:06 +0000 (GMT) Received: from hotmail.com (bay16-f8.bay16.hotmail.com [65.54.186.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id B1F6E43D39 for ; Fri, 2 Jul 2004 16:31:06 +0000 (GMT) (envelope-from klaus_franz@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 2 Jul 2004 09:29:52 -0700 Received: from 218.85.101.124 by by16fd.bay16.hotmail.msn.com with HTTP; Fri, 02 Jul 2004 16:29:52 GMT X-Originating-IP: [218.85.101.124] X-Originating-Email: [klaus_franz@hotmail.com] X-Sender: klaus_franz@hotmail.com From: "Franz Klaus" To: freebsd-net@freebsd.org Date: Fri, 02 Jul 2004 16:29:52 +0000 Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312; format=flowed Message-ID: X-OriginalArrivalTime: 02 Jul 2004 16:29:52.0309 (UTC) FILETIME=[CD1D6650:01C46051] Subject: go to the Internet by through a plip link? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jul 2004 16:31:07 -0000 Hello. I have an old notebook computer (hostname:oldbook) connected to another host (hostname:proxy) by through plip link. This link works fine. oldbook:plip0:192.168.0.11->192.168.0.10 proxy:plip0:192.168.0.10->192.168.0.11 there is a NIC on the proxy host: proxy:ed1:192.168.0.250/255.255.255.0 default gateway: 192.168.0.1 now IMHO I have two ways to let oldbook host surf the Internet. I can setup natd and do address translation, the oldbook will be set a different subnet (say, 10.0.0.0/255.255.255.0). Or, I can use proxy arp, the ed1 repersent 192.168.0.11, and pass all the packets to oldbook by through plip link. The first method is mentioned in handbook, it require me rebuild kernel with DIVERT and IPFIREWALL and the oldbook become behind firewall, which I do not want. The second method sounds best to me. I didn't find how to do it on handbook. I tried to run on proxy host: #arp -s 192.168.0.11 pub but that doesn't work. Any hint how can I do proxy arp? I heard of a port 'choparp'. Do I need to install that port to have it work? Thank you. _________________________________________________________________ 享用世界上最大的电子邮件系统— MSN Hotmail。 http://www.hotmail.com