Re: route doubt

From: <bryanm@acsalaska.net>
Date: Tue Jul 04 2006 - 19:28:07 AKDT

On Tue, Jul 04, 2006 at 01:12:23PM -0800, Lauren Horn <aklug@horns.org> wrote:
>
> So I tried to set up a static route on my main (Linux) router as follows:
> # route add 192.168.1.0 eth1
>
> Its routing table now looks like this:
>
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 192.168.1.0 * 255.255.255.255 UH 0 0 0 eth1
                                                   ^
> 192.168.0.0 * 255.255.255.0 U 0 0 0 eth1
> 66.223.224.0 * 255.255.248.0 U 0 0 0 eth0
> 169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
> default 1-224-223-66.gc 0.0.0.0 UG 0 0 0 eth0

Notice the H that I marked above in your line for 192.168.1.0. It
indicates that this is a "host route", telling to get to one specific
host. What you want is a network route, telling how to get to everything
on a certain subroute, namely 192.168.1.x. All you need to do is add
"-net" to your command line, thus:

route add -net 192.168.1.0 eth1

--
Bryan Medsker
bryanm@acsalaska.net
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Tue Jul 4 19:25:59 2006

This archive was generated by hypermail 2.1.8 : Tue Jul 04 2006 - 19:26:00 AKDT