Computing.Net > Forums > Networking > default gateway

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

default gateway

Reply to Message Icon

Name: mossvector
Date: April 21, 2004 at 04:34:59 Pacific
OS: XPe
CPU/Ram: 256
Comment:

Hi,

Hopefully this should be straight forward – but can’t seem to find it anywhere. How can I change default gateway settings on an XP machine at the command line?

Any suggestions appreciated,

Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: Richard59
Date: April 21, 2004 at 04:50:18 Pacific
Reply:

No idea about commandline. Is it a LAN connection you are trying to change? If so then in controlpanel>networkconnections rightclick on your LAN connection choose properties and scroll down to TCP/IP Highlight this and press properties tab. You can manually set IP there.


0

Response Number 2
Name: Curt R
Date: April 21, 2004 at 05:12:44 Pacific
Reply:

Check the help files on the netsh command. You could likely use it from the command line to change your gateway address.


0

Response Number 3
Name: mbrook
Date: April 21, 2004 at 11:09:48 Pacific
Reply:

Curt R is correct.

To change to a static address, type the following command:
netsh interface ip set address "Local Area Connection" static ipaddr subnetmask gateway metric

NOTE: Replace ipaddr with the static IP address, subnetmask with the subnet mask, gateway with the default gateway and, if necessary, metric with the appropriate metric. The following example changes the interface "Local Area Connection" to a static address of 192.168.0.10 with a subnet mask of 255.255.255.0, and the interface has a default gateway of 192.168.0.1 with a metric of 1: Type in the command below for example;

netsh interface ip set address "Local Area Connection" static 192.168.0.10 255.255.255.0 192.168.0.1 1



0

Response Number 4
Name: mossvector
Date: April 22, 2004 at 07:09:07 Pacific
Reply:

Thanks everyone for your help, netsh works a treat now!


0

Response Number 5
Name: sharon1234
Date: May 12, 2004 at 03:09:06 Pacific
Reply:

How can i change the Default Gateway, or IP Address or SubnetMask on a Windows CE Platform, for both Static and DHCP Configurations?
Many thanks for your help


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Networking Forum Home


Sponsored links

Ads by Google


Results for: default gateway

Default Gateway www.computing.net/answers/networking/default-gateway/21877.html

Change Windows XP default Gateway www.computing.net/answers/networking/change-windows-xp-default-gateway/29687.html

Default gateway www.computing.net/answers/networking/default-gateway/31236.html