Networking Forums

Networking Forums > Computer Networking > Windows Networking > Change gateway IP remotely using netsh

Reply
Thread Tools Display Modes

Change gateway IP remotely using netsh

 
 
RayRogers
Guest
Posts: n/a

 
      09-24-2008, 04:52 PM
Can anyone help on correct/complete netsh command to change client default
gateway IP remotely. Users are not part of administrator group on client PC.
Try to run this from one server, instead of hopping on hundreds of PCs.
Thanks!
 
Reply With Quote
 
 
 
 
Robert L. \(MS-MVP\)
Guest
Posts: n/a

 
      09-24-2008, 05:46 PM
First of all, I would use DHCP if I had over hundred computers. You can
use -r, for example, netsh -r <remote machine's current IP> interface ip set
address "Local Area Connection" static <IP Address> <Subnet Mask> <Default
Gateway> 1.

Since the user doesn't have administrator right, you may create a script and
run it under group policy. This post may help too.

let a non-administrator user to ...
Posted: Tue Apr 08, 2008 2:18 pm Post subject: let a non-administrator
user to add a route on ... you want to know how to let a non-administrator
user to ...
http://www.chicagotech.net/netforums...062a64c0d3e80c


--
Bob Lin, MS-MVP, MCSE & CNE
Networking, Internet, Routing, VPN Troubleshooting on
http://www.ChicagoTech.net
How to Setup Windows, Network, VPN & Remote Access on
http://www.HowToNetworking.com
"RayRogers" <(E-Mail Removed)> wrote in message
news:9775B11B-7808-407D-8696-(E-Mail Removed)...
> Can anyone help on correct/complete netsh command to change client default
> gateway IP remotely. Users are not part of administrator group on client
> PC.
> Try to run this from one server, instead of hopping on hundreds of PCs.
> Thanks!


 
Reply With Quote
 
Phillip Windell
Guest
Posts: n/a

 
      09-24-2008, 07:42 PM
Why aren't they using DHCP?


--
Phillip Windell
www.wandtv.com

The views expressed, are my own and not those of my employer, or Microsoft,
or anyone else associated with me, including my cats.
-----------------------------------------------------

"RayRogers" <(E-Mail Removed)> wrote in message
news:9775B11B-7808-407D-8696-(E-Mail Removed)...
> Can anyone help on correct/complete netsh command to change client default
> gateway IP remotely. Users are not part of administrator group on client
> PC.
> Try to run this from one server, instead of hopping on hundreds of PCs.
> Thanks!



 
Reply With Quote
 
Phillip Windell
Guest
Posts: n/a

 
      09-24-2008, 07:47 PM

"Phillip Windell" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Why aren't they using DHCP?


I was also thinking,...if you have "hundreds of machines" and since Ethernet
is not supposed to go 250-300 machines per subnet (typically a /24 mask or
254 host serves the purpose perfectly) then do you have over that
many?,...and if you do, do you have it broken into subnets,...and if you do
that the Default Gatreway won't be the same in different subnets,...so you'd
have to be careful with how you apply the GPO.

--
Phillip Windell
www.wandtv.com

The views expressed, are my own and not those of my employer, or Microsoft,
or anyone else associated with me, including my cats.
-----------------------------------------------------


 
Reply With Quote
 
RayRogers
Guest
Posts: n/a

 
      09-24-2008, 07:51 PM
Can administrator/password be part of the netsh command so we don;t have to
use policy? Thanks.

"Robert L. (MS-MVP)" wrote:

> First of all, I would use DHCP if I had over hundred computers. You can
> use -r, for example, netsh -r <remote machine's current IP> interface ip set
> address "Local Area Connection" static <IP Address> <Subnet Mask> <Default
> Gateway> 1.
>
> Since the user doesn't have administrator right, you may create a script and
> run it under group policy. This post may help too.
>
> let a non-administrator user to ...
> Posted: Tue Apr 08, 2008 2:18 pm Post subject: let a non-administrator
> user to add a route on ... you want to know how to let a non-administrator
> user to ...
> http://www.chicagotech.net/netforums...062a64c0d3e80c
>
>
> --
> Bob Lin, MS-MVP, MCSE & CNE
> Networking, Internet, Routing, VPN Troubleshooting on
> http://www.ChicagoTech.net
> How to Setup Windows, Network, VPN & Remote Access on
> http://www.HowToNetworking.com
> "RayRogers" <(E-Mail Removed)> wrote in message
> news:9775B11B-7808-407D-8696-(E-Mail Removed)...
> > Can anyone help on correct/complete netsh command to change client default
> > gateway IP remotely. Users are not part of administrator group on client
> > PC.
> > Try to run this from one server, instead of hopping on hundreds of PCs.
> > Thanks!

>
>

 
Reply With Quote
 
RayRogers
Guest
Posts: n/a

 
      09-24-2008, 10:29 PM
There are< 200 production floor PCs and needs to be on static IPs. Thanks.

"Phillip Windell" wrote:

>
> "Phillip Windell" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Why aren't they using DHCP?

>
> I was also thinking,...if you have "hundreds of machines" and since Ethernet
> is not supposed to go 250-300 machines per subnet (typically a /24 mask or
> 254 host serves the purpose perfectly) then do you have over that
> many?,...and if you do, do you have it broken into subnets,...and if you do
> that the Default Gatreway won't be the same in different subnets,...so you'd
> have to be careful with how you apply the GPO.
>
> --
> Phillip Windell
> www.wandtv.com
>
> The views expressed, are my own and not those of my employer, or Microsoft,
> or anyone else associated with me, including my cats.
> -----------------------------------------------------
>
>
>

 
Reply With Quote
 
Newell White
Guest
Posts: n/a

 
      09-25-2008, 08:10 AM

"RayRogers" wrote:

> There are< 200 production floor PCs and needs to be on static IPs. Thanks.
>

If your static IP reservations are set up in DHCP you can assign a gateway
IP address to individual reservations - that's how I load share between
several broadband routers on our LAN.

This method meets your requirement of controlling from the (DHCP) server.
--
Regards,
Newell White

 
Reply With Quote
 
Phillip Windell
Guest
Posts: n/a

 
      09-25-2008, 03:13 PM
"RayRogers" <(E-Mail Removed)> wrote in message
news:A79A9DE4-F122-49EC-BBA0-(E-Mail Removed)...
> There are< 200 production floor PCs and needs to be on static IPs. Thanks.



Ok,
That's fine then.

--
Phillip Windell
www.wandtv.com

The views expressed, are my own and not those of my employer, or Microsoft,
or anyone else associated with me, including my cats.
-----------------------------------------------------


 
Reply With Quote
 
Robert L. \(MS-MVP\)
Guest
Posts: n/a

 
      09-26-2008, 03:05 AM
Sure, you can use -u and -p switch. This link may help.

netsh commandNetsh is a command-line scripting utility that allows you to,
either locally or remotely, display, modify or script the network
configuration of a computer ...
www.chicagotech.net/netsh.htm


--
Bob Lin, MS-MVP, MCSE & CNE
Networking, Internet, Routing, VPN Troubleshooting on
http://www.ChicagoTech.net
How to Setup Windows, Network, VPN & Remote Access on
http://www.HowToNetworking.com
"RayRogers" <(E-Mail Removed)> wrote in message
news:C2904A32-6F61-4B4D-BA8F-(E-Mail Removed)...
> Can administrator/password be part of the netsh command so we don;t have
> to
> use policy? Thanks.
>
> "Robert L. (MS-MVP)" wrote:
>
>> First of all, I would use DHCP if I had over hundred computers. You can
>> use -r, for example, netsh -r <remote machine's current IP> interface ip
>> set
>> address "Local Area Connection" static <IP Address> <Subnet Mask>
>> <Default
>> Gateway> 1.
>>
>> Since the user doesn't have administrator right, you may create a script
>> and
>> run it under group policy. This post may help too.
>>
>> let a non-administrator user to ...
>> Posted: Tue Apr 08, 2008 2:18 pm Post subject: let a
>> non-administrator
>> user to add a route on ... you want to know how to let a
>> non-administrator
>> user to ...
>>
>> http://www.chicagotech.net/netforums...062a64c0d3e80c
>>
>>
>> --
>> Bob Lin, MS-MVP, MCSE & CNE
>> Networking, Internet, Routing, VPN Troubleshooting on
>> http://www.ChicagoTech.net
>> How to Setup Windows, Network, VPN & Remote Access on
>> http://www.HowToNetworking.com
>> "RayRogers" <(E-Mail Removed)> wrote in message
>> news:9775B11B-7808-407D-8696-(E-Mail Removed)...
>> > Can anyone help on correct/complete netsh command to change client
>> > default
>> > gateway IP remotely. Users are not part of administrator group on
>> > client
>> > PC.
>> > Try to run this from one server, instead of hopping on hundreds of PCs.
>> > Thanks!

>>
>>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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
Remotely change Gateway Gemat - PCSC computer shop Windows Networking 2 05-14-2007 07:02 AM
Cannot change default gateway address Paul_HIT Windows Networking 3 04-18-2007 04:20 PM
Windows 2003 - change password remotely Ganyovics Windows Networking 3 04-06-2006 10:15 AM
Change Linux VLAN/Gateway Routing to a Layer 3 Jacob Linux Networking 0 03-10-2006 04:13 PM
unable to change gateway address for win98 and ME =?Utf-8?B?Q2FlIENodQ==?= Windows Networking 2 06-21-2005 09:14 AM



1 2 3 4 5 6 7 8 9 10 11