From owner-freebsd-net Wed Sep 2 19:29:18 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA25596 for freebsd-net-outgoing; Wed, 2 Sep 1998 19:29:18 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from calis.BlackSun.org (slip-ppp-4-198.escape.com [205.160.46.198]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA25577; Wed, 2 Sep 1998 19:29:15 -0700 (PDT) (envelope-from don@calis.BlackSun.org) Received: from localhost (don@localhost) by calis.BlackSun.org (8.8.8/8.8.7) with SMTP id WAA10097; Wed, 2 Sep 1998 22:28:24 -0400 (EDT) (envelope-from don@calis.BlackSun.org) Date: Wed, 2 Sep 1998 22:28:24 -0400 (EDT) From: Don To: Alex Kwan cc: freebsd-net@FreeBSD.ORG, freebsd-stable@FreeBSD.ORG Subject: Re: How to add route In-Reply-To: <000b01bdd6dd$90fa9660$0300a8c0@home> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I use the linux command (I was a linux user before) : > route add -net 192.168.1.0 netmask 255.255.255.0 ed0 the command should be: route add -net -netmask -interface or in your case: route add -net 192.168.1.0 -netmask 255.255.255.0 -interface ed0 the -interface flag is required for the route addition and netmask requires a - in front of it to signal the flag. -don To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message