From owner-freebsd-net Sun Nov 17 20:20:13 2002 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 329B837B401 for ; Sun, 17 Nov 2002 20:20:11 -0800 (PST) Received: from ns.mmk.ru (ns1.mmk.ru [195.54.3.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 494CE43E42 for ; Sun, 17 Nov 2002 20:20:08 -0800 (PST) (envelope-from freebsd@mmk.ru) Received: from antivirus.mmk.ru (sinful [161.8.100.3]) by ns.mmk.ru (8.12.6/8.12.6) with ESMTP id gAI4HsAf058300; Mon, 18 Nov 2002 09:17:54 +0500 (YEKT) (envelope-from freebsd@mmk.ru) Received: from wall.mmk.ru (localhost [127.0.0.1]) by antivirus.mmk.ru (8.11.6/8.11.6) with ESMTP id gAI4Cg115181; Mon, 18 Nov 2002 09:12:42 +0500 (ESK) Received: from wall (localhost [127.0.0.1]) by wall.mmk.ru (8.12.6/8.12.6) with SMTP id gAI4HpDx076969; Mon, 18 Nov 2002 09:17:51 +0500 (YEKT) (envelope-from freebsd@mmk.ru) Message-ID: <006901c28eba$43829dd0$02010101@wall> From: "Dmitry A. Bondareff" To: "Karl Timmermann" , References: Subject: Re: Arp and Route Commands Date: Mon, 18 Nov 2002 09:23:36 +0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4920.2300 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4920.2300 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi! If you need route throw router with MAC 00:00:ca:13:4b:54 do like this: route add -net 10.10.10.0 -interface eth1 route add default 10.10.10.1 If the network 10.10.10.0 routing by your FreeBSD box: you must add route on the central router to network 10.10.10.0 throw your FreeBSD. For Cisco ex: ip route 10.10.10.0 255.255.255.0 x.x.x.x where x.x.x.x - IP address of FreeBSD box. Regards, Dimasic. ----- Original Message ----- From: "Karl Timmermann" To: Sent: Monday, November 18, 2002 1:55 AM Subject: Arp and Route Commands > Hello, > > I'm new to the list and was hoping maybe someone could help me. These > commands work in Linux (and in this order), but not in FreeBSD/Mac OS X > as the arp and route commands are different: > > arp -s 10.10.10.0 00:00:ca:13:4b:54 -i eth1 > arp -s 10.10.10.0 00:00:ca:13:4b:54 -i eth1 > route add -net 10.10.10.0 netmask 255.255.255.0 dev eth1 > route add default gw 10.10.10.0 dev eth1 > > anyone know how i would change these commands to work with the FreeBSD > versions of arp and route? > > > Thanks! > > Karl > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message