Adding a route?

Matt Zimmerman mdz at canonical.com
Mon Oct 25 03:44:11 UTC 2004


On Mon, Oct 25, 2004 at 11:20:23AM +0800, Senectus . wrote:

> > That's a very odd-looking route.  Perhaps Windows ignores the netmask when
> > the address is 0.0.0.0.  Anyway, it looks like you're trying to add a
> > default route:
> > 
> > sudo ip route add default via 10.0.0.1 metric 10
> > 
> Ok that "works" (as in no error) but its not sending me out the
> gateway of my choice..
> I've tried to read the info page on it and it mentions I should be
> using "gw" to set the gateway.. But when I try that, it basically says
> my syntax is wrong.. whats the proper format for doing that?

Ah, if what you want is to override the route, then Windows' route metric
must be backwards.

And in that case, there's probably a better way to do what you want.  Would
you explain what your goal is?

-- 
 - mdz




More information about the ubuntu-users mailing list