need help with NETSH

G

Guest

I'm trying to use NETSH to set static IP for my work
laptop, here's the command:
NETSH INT IP SET ADDRESS "Local Area Connection" STATIC
192.168.2.2 255.255.255.0

but I got the invalid interface error.
I did check the interface name by going to Network &
DialUp connection to verify the name.
However, when I use a dump command
(NETSH>interface ip>dump), the name appeared
as "{5A00B56A-5966-44C1-951E-898CCB87C274}"
How do I make this name to be the same as my "Local Area
Connection" name? TIA

..
 
P

Pegasus \(MVP\)

I'm trying to use NETSH to set static IP for my work
laptop, here's the command:
NETSH INT IP SET ADDRESS "Local Area Connection" STATIC
192.168.2.2 255.255.255.0

but I got the invalid interface error.
I did check the interface name by going to Network &
DialUp connection to verify the name.
However, when I use a dump command
(NETSH>interface ip>dump), the name appeared
as "{5A00B56A-5966-44C1-951E-898CCB87C274}"
How do I make this name to be the same as my "Local Area
Connection" name? TIA


This command works on my machine:

netsh interface ip set address local static 192.168.1.1 255.255.255.0
 
M

Marcus Gau-Wagener

I have the same problem.

NETSH asnwers with the GUID instead of a normal name.
Nither GUID nor the normal name "Local Area Connection" nor "LAN-Verbindung"
can not be used as a name in
SET ADDRESS NAME = "{....}" STATIC ...

IPCONFIG prompts the normal name.

How can I tell NETSH to use it?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top