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
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?
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
Summary: Can someone explain to me why when I tried to network a Win98 PC with a Win XP laptop via a 10/100 switch, I was forced to provide a default gateway even though the IP address and subnets were correct...
Summary: I need to change Windows XP default gateway from 192.168.0.1 (default) to 192.168.1.1 (custom) because i have a device that is set to IP 192.168.1.10 with gateway 192.168.1.1. Everytime i change to 19...
Summary: Hi with me a D-link DES-3026 24 port manageable switch I know how to set the switch ip address command but I don't know the command how to set the default gateway of the switch. If someone knows pleas...