Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Sep 1998 22:28:24 -0400 (EDT)
From:      Don <don@calis.BlackSun.org>
To:        Alex Kwan <kwanalex@hkstar.com>
Cc:        freebsd-net@FreeBSD.ORG, freebsd-stable@FreeBSD.ORG
Subject:   Re: How to add route 
Message-ID:  <Pine.BSF.3.96.980902222508.10084B-100000@calis.BlackSun.org>
In-Reply-To: <000b01bdd6dd$90fa9660$0300a8c0@home>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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 <network> -netmask <netmask> -interface <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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980902222508.10084B-100000>