|
tech
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
NETSH command doesnt work???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. <BertieBigBol***@gmail.com> wrote in message
news:7a90e0dd-389c-4cc3-b563-8a9eb6f881d7@g37g2000yqn.googlegroups.com... To avoid ambiguities, you should specify the name of the connection you wish > 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 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
Show quote
Hide quote
On May 28, 3:42 pm, "Pegasus [MVP]" <n***@microsoft.com> wrote: So what does LOCAL do?> <BertieBigBol***@gmail.com> wrote in message > > news:7a90e0dd-389c-4cc3-b563-8a9eb6f881d7@g37g2000yqn.googlegroups.com... > > > 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
Show quote
Hide quote
On May 28, 3:42 pm, "Pegasus [MVP]" <n***@microsoft.com> wrote: Also, still doesnt work even if I use the interface name. Appears to> <BertieBigBol***@gmail.com> wrote in message > > news:7a90e0dd-389c-4cc3-b563-8a9eb6f881d7@g37g2000yqn.googlegroups.com... > > > 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 work and comes back OK though. <BertieBigBol***@gmail.com> wrote in message
Show quoteHide quote news:97a31aec-1820-4108-b7c3-2d1ffde53d95@h2g2000yqg.googlegroups.com... Also, still doesnt work even if I use the interface name. Appears toOn May 28, 3:42 pm, "Pegasus [MVP]" <n***@microsoft.com> wrote: > <BertieBigBol***@gmail.com> wrote in message > > news:7a90e0dd-389c-4cc3-b563-8a9eb6f881d7@g37g2000yqn.googlegroups.com... > > > 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 work and comes back OK though. ================= Worked perfectly for me, running WinXP Professional.
Show quote
Hide quote
On May 28, 5:38 pm, "Pegasus [MVP]" <n***@microsoft.com> wrote: Think its specific to this machine. Script works fine on other> <BertieBigBol***@gmail.com> wrote in message > > news:97a31aec-1820-4108-b7c3-2d1ffde53d95@h2g2000yqg.googlegroups.com... > On May 28, 3:42 pm, "Pegasus [MVP]" <n***@microsoft.com> wrote: > > > > > > > <BertieBigBol***@gmail.com> wrote in message > > >news:7a90e0dd-389c-4cc3-b563-8a9eb6f881d7@g37g2000yqn.googlegroups.com.... > > > > 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 > > 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 - servers. Got no idea why it fails on this,,, <BertieBigBol***@gmail.com> wrote in message
Show quoteHide quote news:97a31aec-1820-4108-b7c3-2d1ffde53d95@h2g2000yqg.googlegroups.com... Also, still doesnt work even if I use the interface name. Appears toOn May 28, 3:42 pm, "Pegasus [MVP]" <n***@microsoft.com> wrote: > <BertieBigBol***@gmail.com> wrote in message > > news:7a90e0dd-389c-4cc3-b563-8a9eb6f881d7@g37g2000yqn.googlegroups.com... > > > 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 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 On May 28, 2:25 pm, "BertieBigBol***@gmail.com"
<BertieBigBol***@gmail.com> wrote: > Got a script that runs automatically to set the IP address of my Have tried completely uninstalling the network interfaces and> 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. 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?
Mapped Network Drives on login for Specific Users Only
what happens when a subnet mask doesn't match up Migrating to a new server 2 PCs networked- One connected the other not online-Help! IP address in conflict..? server info on desktop Mise en réseau DNs for Server 2003 manual replication objects policies |
|||||||||||||||||||||||