Discussion Locked

Win2K Routing.

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

How can I change the default route from the command line in Win2K.

I can add a new route with

route add 10.10.24.0 mask 255.255.255.0 10.10.100.0

But I can't figure out how to change the default.

Thanks in advance,
Kev.

5 replies

by francis_seah

Try the following:
c:> route delete 10.10.24.0 MASK .....
to delete those route that you have created. However, the route add command only applies when your system is on. Why don;t you try to create a bat file and dump it on the startup so that you can defined the route that you want to run.

Tks..

Francis Seah

by kevin anderson

Your suggestion will allow me to change a normal route, but not the DEFAULT. Changing the DEFAULT route is what I need to accomplish.

by Member 26122104

Default routes are always specified as 0.0.0.0 with a mask of 0.0.0.0

use

route -p ADD 0.0.0.0 MASK 0.0.0.0 x.x.x.x

Make sure that you don't have one listed in the GUI. The -p makes it persistant across reboots. x.x.x.x is the router IP.
HTH

by kevin anderson

Thank you.

That's what I was after.

Some testing indicates to me that I can actually have on assigned by the GUI, and I can delete it, and replace it. Which is exactly what I was after.

This discussion is closed to new replies.