Netsh command to add interface

ipv4netshnetworking

I am working with Windows 2012 R2 Core and I having problems with setting up my NICs after they got reset.

When I run "netsh int show int" it shows bother Interfaces as Enabled and Connected.

When I run "netsh int ipv4 show config" it only shows the "Loopback Pseudo-Interface 1". I have two NICs on the server "Ethernet 2" and "Ethernet 3". How to enable them show they have an interface in ipv4?

Everything has to be done in either CMD or Powershell. There is no GUI.

Thank you!

Best Answer

With Server 2012 R2 you can turn on the GUI to configure what you need. Then remove it afterwards to put it back to core if you really get into a bind.

I ran netsh int ipv4 show config on server 2012 R2 with GUI installed and got the proper results (this machine had a static IP). I also ran it on a Windows 7 machine with DHCP enabled and got the proper results as well.

I'd make sure IPV4 is enabled on each of those interfaces. As that could be why your are not seeing those interfaces with the command.

Might help: https://technet.microsoft.com/en-us/library/bb490943.aspx

Related Topic