From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 13 20:12:22 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 92F4916A4CE for ; Wed, 13 Apr 2005 20:12:22 +0000 (GMT) Received: from BASE.OTEL.net (BASE.OTEL.net [212.36.8.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id F16AC43D48 for ; Wed, 13 Apr 2005 20:12:21 +0000 (GMT) (envelope-from tbyte@OTEL.net) Received: from dragon.otel.net ([212.36.8.135]) by BASE.OTEL.net with esmtp (Exim 4.30; FreeBSD) id 1DLoDk-0003Fv-K8; Wed, 13 Apr 2005 23:12:20 +0300 Message-ID: <425D7D24.6020308@OTEL.net> Date: Wed, 13 Apr 2005 23:12:20 +0300 From: Iasen Kostov User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050321 X-Accept-Language: bg, en-us, en MIME-Version: 1.0 To: "M. Parsons" References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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: Wed, 13 Apr 2005 20:12:22 -0000 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 >_______________________________________________ >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" > > >