From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 14 00:49:28 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F73716A4CE for ; Thu, 14 Apr 2005 00:49:28 +0000 (GMT) Received: from duchess.speedfactory.net (duchess.speedfactory.net [66.23.201.84]) by mx1.FreeBSD.org (Postfix) with SMTP id 98F0943D45 for ; Thu, 14 Apr 2005 00:49:27 +0000 (GMT) (envelope-from ups@tree.com) Received: (qmail 21739 invoked by uid 89); 14 Apr 2005 00:49:26 -0000 Received: from duchess.speedfactory.net (66.23.201.84) by duchess.speedfactory.net with SMTP; 14 Apr 2005 00:49:26 -0000 Received: (qmail 21720 invoked by uid 89); 14 Apr 2005 00:49:25 -0000 Received: from unknown (HELO palm.tree.com) (66.23.216.49) by duchess.speedfactory.net with SMTP; 14 Apr 2005 00:49:25 -0000 Received: from [127.0.0.1] (localhost.tree.com [127.0.0.1]) by palm.tree.com (8.12.10/8.12.10) with ESMTP id j3E0nOw6087312; Wed, 13 Apr 2005 20:49:24 -0400 (EDT) (envelope-from ups@tree.com) From: Stephan Uphoff To: "M. Parsons" In-Reply-To: References: Content-Type: text/plain Message-Id: <1113439764.7457.55947.camel@palm> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Wed, 13 Apr 2005 20:49:24 -0400 Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: Route/arp help? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Apr 2005 00:49:28 -0000 On Wed, 2005-04-13 at 16:38, M. Parsons wrote: > On 4/13/05, Iasen Kostov wrote: > > M. Parsons wrote: > > > > >To access my dsl modem's line stats page, I have to create an arp > > >entry and a route for it, under linux this was done as: (eth1 > > >connected directly to dsl modem) > > > > > >ifconfig eth1 10.0.0.2 netmask 255.255.255.0 > > >route add 10.0.0.1 dev eth1 > > > > > > > > route add -net 10.0.0.1/32 -iface de0 -cloning > > > > But 'ifconfig de0 10.0.0.2 netmask 255.255.255.0' (or ifconfig de0 > > 10.0.0.2/24) should set a 10.0.0.0/24 route via de0 why would you want > > to set it again ? > > > > >arp -s 10.0.0.1 ffffffffffffffffff (not really fffff, but the MAC > > >address of the dsl modem, NOT the nic). > > > > > >unfortunately, I cant seem to figure out the commands to get this to > > >work under FreeBSD 5.3 > > > > > >Ifconfig is simple enough (replace eth1 with de0 in my case) > > > > > >Arp seems the same (except it needs colons) > > > > > >But the route command I have no clue. It doesnt seem to follow the > > >same syntax as linux, and I havent figured out the correct syntax yet. > > > > > >Any help? > > > > > >Thanks, > > > > > >Mark > > > Honestly I have no clue why its not working, it should be simple, but > it isnt.. Here is what the arp cache shows and the routing table (and > its ed0, not de0, my mistake in original message). > > arp: (after doing the arp -s command) > > modem (10.0.0.1) at 00:0b:23:2a:b0:c4 on ed0 permanent [ethernet] > > this looks right doesnt it? > > route: > > default mydslgateway UGS 0 8173 tun0 > 10/24 link#1 UC 0 0 ed0 > modem 00:0b:23:2a:b0:c4 UHLS 0 4 ed0 => > 10.0.0.1/32 link#1 UCS 0 0 ed0 > > no idea here? 3 for ed0? is that right? > > note, ed0 is also creating the tun0 device (pppoe), but that was never > a problem in linux. I was under the impression (but would need to check to make sure) that all incoming packets are diverted to ng_pppoe when it is hooked into the Ethernet interface. This would explain your problems. Can you try this without the interface being used for PPPOE? > > Im just confused. :( > > Its not a big deal, as its only my dsl line stats, but still confused > why it aint working > > For the record, http://www.broadbandreports.com/faq/9693 is the page > on how you access the line stats, and the MAC part is required for my > modem. > > Thanks for all the help > > Mark > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > >