NETSH command doesnt work???

  • Thread starter Thread starter BertieBigBollox
  • Start date Start date
B

BertieBigBollox

Got a script that runs automatically to set the IP address of my
win2000 servers.

It uses the following command:-

netsh interface ip set address local static <IP address> <netmask>
<default gateway> 1

Doesnt give an error but does nothing. Leaves IP as 0.0.0.0.

If I go into network connections, I can change the IP from there but I
need to be able to run from script.
 
Got a script that runs automatically to set the IP address of my
win2000 servers.

It uses the following command:-

netsh interface ip set address local static <IP address> <netmask>
<default gateway> 1

Doesnt give an error but does nothing. Leaves IP as 0.0.0.0.

If I go into network connections, I can change the IP from there but I
need to be able to run from script.

To avoid ambiguities, you should specify the name of the connection you wish
to modify, e.g. like so:

netsh interface ip set address name="wireless pcmcia" static
192.168.1.44 255.255.255.0 192.168.1.2 1
 
Got a script that runs automatically to set the IP address of my
win2000 servers.

It uses the following command:-

netsh interface ip set address local static <IP address> <netmask>
<default gateway> 1

Doesnt give an error but does nothing. Leaves IP as 0.0.0.0.

If I go into network connections, I can change the IP from there but I
need to be able to run from script.

To avoid ambiguities, you should specify the name of the connection you wish
to modify, e.g. like so:

netsh interface ip set address name="wireless pcmcia" static
192.168.1.44 255.255.255.0 192.168.1.2 1
 
Got a script that runs automatically to set the IP address of my
win2000 servers.

It uses the following command:-

netsh interface ip set address local static <IP address> <netmask>
<default gateway> 1

Doesnt give an error but does nothing. Leaves IP as 0.0.0.0.

If I go into network connections, I can change the IP from there but I
need to be able to run from script.

Have tried completely uninstalling the network interfaces and
reinstalling but still the same.

Strangely enough, it listed the interfaces as Local Area Interface 2
and 3 again. Whats happened to 1? IS there something in the registry
or something deciding that theres aleady a LAN 1?
 
Got a script that runs automatically to set the IP address of my
win2000 servers.

It uses the following command:-

netsh interface ip set address local static <IP address> <netmask>
<default gateway> 1

Doesnt give an error but does nothing. Leaves IP as 0.0.0.0.

If I go into network connections, I can change the IP from there but I
need to be able to run from script.

Have tried completely uninstalling the network interfaces and
reinstalling but still the same.

Strangely enough, it listed the interfaces as Local Area Interface 2
and 3 again. Whats happened to 1? IS there something in the registry
or something deciding that theres aleady a LAN 1?
 
To avoid ambiguities, you should specify the name of the connection you wish
to modify, e.g. like so:

netsh interface ip set address name="wireless pcmcia"  static
  192.168.1.44  255.255.255.0 192.168.1.2 1

So what does LOCAL do?
 
To avoid ambiguities, you should specify the name of the connection you wish
to modify, e.g. like so:

netsh interface ip set address name="wireless pcmcia"  static
  192.168.1.44  255.255.255.0 192.168.1.2 1

So what does LOCAL do?
 
To avoid ambiguities, you should specify the name of the connection you wish
to modify, e.g. like so:

netsh interface ip set address name="wireless pcmcia"  static
  192.168.1.44  255.255.255.0 192.168.1.2 1

Also, still doesnt work even if I use the interface name. Appears to
work and comes back OK though.
 
To avoid ambiguities, you should specify the name of the connection you wish
to modify, e.g. like so:

netsh interface ip set address name="wireless pcmcia"  static
  192.168.1.44  255.255.255.0 192.168.1.2 1

Also, still doesnt work even if I use the interface name. Appears to
work and comes back OK though.
 
To avoid ambiguities, you should specify the name of the connection you
wish
to modify, e.g. like so:

netsh interface ip set address name="wireless pcmcia" static
192.168.1.44 255.255.255.0 192.168.1.2 1

Also, still doesnt work even if I use the interface name. Appears to
work and comes back OK though.

=================

Worked perfectly for me, running WinXP Professional.
 
To avoid ambiguities, you should specify the name of the connection you
wish
to modify, e.g. like so:

netsh interface ip set address name="wireless pcmcia" static
192.168.1.44 255.255.255.0 192.168.1.2 1

Also, still doesnt work even if I use the interface name. Appears to
work and comes back OK though.

=================

Worked perfectly for me, running WinXP Professional.
 
To avoid ambiguities, you should specify the name of the connection you
wish
to modify, e.g. like so:

netsh interface ip set address name="wireless pcmcia" static
192.168.1.44 255.255.255.0 192.168.1.2 1

Also, still doesnt work even if I use the interface name. Appears to
work and comes back OK though.

==============

Please post the following:
a) The exact command you used.
b) The full output from the command
ipconfig /all
 
To avoid ambiguities, you should specify the name of the connection you
wish
to modify, e.g. like so:

netsh interface ip set address name="wireless pcmcia" static
192.168.1.44 255.255.255.0 192.168.1.2 1

Also, still doesnt work even if I use the interface name. Appears to
work and comes back OK though.

==============

Please post the following:
a) The exact command you used.
b) The full output from the command
ipconfig /all
 
Also, still doesnt work even if I use the interface name. Appears to
work and comes back OK though.

=================

Worked perfectly for me, running WinXP Professional.- Hide quoted text -

- Show quoted text -

Think its specific to this machine. Script works fine on other
servers. Got no idea why it fails on this,,,
 
Also, still doesnt work even if I use the interface name. Appears to
work and comes back OK though.

=================

Worked perfectly for me, running WinXP Professional.- Hide quoted text -

- Show quoted text -

Think its specific to this machine. Script works fine on other
servers. Got no idea why it fails on this,,,
 
Back
Top