Re: Help needed with ip route
- To: "Allan M. Wind" <wind@freewwweb.com>
- Cc: <debian-firewall@lists.debian.org>
- Subject: Re: Help needed with ip route
- From: "Kent Andersen" <khome@gbasin.net>
- Date: Thu, 3 Feb 2000 23:13:31 -0700
- Message-id: <000f01bf6ed6$f6045900$7320b3cf@gbasin.net>
- References: <005c01bf6ed3$d57913e0$7320b3cf@gbasin.net> <20000204011039.A3383@digit-safe.com>
well yes the gateway is in the same class c that the route that I am using.
these numbers are hypothetical anyway.... :)
and I have 4 Ethernet devices with various subnets.
at anyrate... Route doesn't work anymore (at all).. I have to use ip route
with kernel 2.2.14
I just dont know the syntax of ip route.
> On 2000-02-03 22:51:08, Kent Andersen wrote:
>
> > route add -net 198.168.1.32 netmask 255.255.255.240 metric 4 gw
198.168.1.2
> > dev eth1
>
> Your gw is not in the network that you are routing. Also, try to
> using this sequence of options:
>
> route add {-host|-net} Target[/prefix] [gw Gw] [metric M] [netmask N]
> [[dev] If]
>
> Unless you have multiple devices on this network, I don't think that
> you will need to specify the device.
>
>
> /Allan
> --
> Allan M. Wind Email: wind@freewwweb.com
> P.O. Box 2022 Phone: 781.279.4513 (home)
> Woburn, MA 01888-0022 Phone: 781.274.7000 ext. 368 (work)
>
Reply to: