Computing.Net > Forums > Networking > default gateway

default gateway

Reply to Message Icon

Original Message
Name: mossvector
Date: April 21, 2004 at 04:34:59 Pacific
Subject: default gateway
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


Report Offensive Message For Removal

Response Number 1
Name: Richard59
Date: April 21, 2004 at 04:50:18 Pacific
Subject: default gateway
Reply: (edit)

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.


Report Offensive Follow Up For Removal

Response Number 2
Name: Curt R
Date: April 21, 2004 at 05:12:44 Pacific
Subject: default gateway
Reply: (edit)

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


Report Offensive Follow Up For Removal

Response Number 3
Name: mbrook
Date: April 21, 2004 at 11:09:48 Pacific
Subject: default gateway
Reply: (edit)

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



Report Offensive Follow Up For Removal

Response Number 4
Name: mossvector
Date: April 22, 2004 at 07:09:07 Pacific
Subject: default gateway
Reply: (edit)

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


Report Offensive Follow Up For Removal

Response Number 5
Name: sharon1234
Date: May 12, 2004 at 03:09:06 Pacific
Subject: default gateway
Reply: (edit)

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


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: default gateway

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software