Adding a route?

Senectus . senectus at gmail.com
Mon Oct 25 04:36:21 UTC 2004


On Sun, 24 Oct 2004 20:44:11 -0700, Matt Zimmerman <mdz at canonical.com> wrote:
> 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?
> 
Sorry If I'm not being clear..
Basically I'm after a setting that says when ever I'm on this network
(Sorry some of the info I gave out before was wrong :-| ) I want to do
this:
Persistent Routes:
  Network Address          Netmask  Gateway Address  Metric
          0.0.0.0                    0.0.0.0     172.24.192.5      10
(this lets me use the non-proxied link to the internet)
I want this route to only come into affect on this network.. but I
want to have to enable/disable it every time I get on or off it..

Does that make more sense?

-- 
Nothing dies faster than a new idea in a closed mind.




More information about the ubuntu-users mailing list