PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

changing default gateway through command line

 
 
Madhur Ahuja
Guest
Posts: n/a
 
      19th Sep 2004
Hello
Can anyone tell me how to change the default gateway of an interface through
command line. I think it is possible through netsh.exe but I am not able to
do it.

--
Madhur Ahuja [madhur<underscore>ahuja<at>yahoo<dot>com]

Homepage & other stuff
http://madhur.netfirms.com






 
Reply With Quote
 
 
 
 
DS
Guest
Posts: n/a
 
      21st Sep 2004
"Madhur Ahuja" <(E-Mail Removed)> wrote in news:(E-Mail Removed):

> Hello
> Can anyone tell me how to change the default gateway of an interface
> through command line. I think it is possible through netsh.exe but I
> am not able to do it.
>
> --
> Madhur Ahuja [madhur<underscore>ahuja<at>yahoo<dot>com]
>
> Homepage & other stuff
> http://madhur.netfirms.com
>
>
>
>
>
>
>


I'm sure you have figured this out by now but......

From a cmd prompt......

route delete 0.0.0.0 -this removes the current GW
route add 0.0.0.0 mask 0.0.0.0 x.x.x.x -where x.x.x.x is the new
gateway.



 
Reply With Quote
 
Madhur Ahuja
Guest
Posts: n/a
 
      21st Sep 2004
DS <(E-Mail Removed)> wrote:
> "Madhur Ahuja" <(E-Mail Removed)> wrote in
> news:(E-Mail Removed):
>
>> Hello
>> Can anyone tell me how to change the default gateway of an interface
>> through command line. I think it is possible through netsh.exe but I
>> am not able to do it.


> I'm sure you have figured this out by now but......
>
> From a cmd prompt......
>
> route delete 0.0.0.0 -this removes the current GW
> route add 0.0.0.0 mask 0.0.0.0 x.x.x.x -where x.x.x.x is the new
> gateway.


Thanks the default gateway was created and worked. But I wonder, the default
gateway setting on each of my connection is still grayed. Is there any
difference
if someone sets the default gateway on particular connection and if someone
sets
it by this method.

--
Madhur Ahuja [madhur<underscore>ahuja<at>yahoo<dot>com]

Homepage
http://madhur.netfirms.com






 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing IP from command line Stefano Windows Vista Networking 2 19th Feb 2008 04:55 PM
Windows 2000 Changing the default gateway Dwane Microsoft Windows 2000 CMD Promt 0 15th Aug 2006 02:53 PM
Default gateway unpingable, but can browse gateway IP over http?? jeffhenrichs@gmail.com Windows XP Networking 0 11th Oct 2005 03:40 AM
Changing IP-Addres and Default Gateway Nijazi Halimaji Microsoft VB .NET 2 13th Jul 2005 11:23 PM
What is Command line command to set gateway? Ken Windows XP Networking 2 12th Aug 2004 12:19 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:44 AM.