how could i change default gateway with route command ( win xp ) ?
thanks!

from command line

route print (this will print out your current routes so you should see your current gateway)

route -p CHANGE <destination IP> MASK <subnet mask> <GW IP> METRIC <metric> IF <interface#>

the -p makes the route persitent so it will be there after reboot. You could always change these settings from the control panel. I've never used this in windows, but in linux its about the same.

I would imagine it to look like this:

route -p CHANGE 0.0.0.0 0.0.0.0 192.168.1.100 IF 1

for help just type route at the command line in a dos prompt

let me know how it turns out

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.