HowTo Rename Network Interface on Windows Server

Version 1

    By default Windows servers create default naming for the network interfaces, it could be "Local Area Network" or just "Ethernet 1" for example.

    This post shows simple procedure to change the port name on Windows servers 2012.

     

    References

     

    Setup

    One Windows 2012 server connected to a switch.

     

    Configuration

    1. Check the "Network and Sharing Center" in the Control Panel.

    In this case we can see that we have one port that is UP named "Ethernet 9".

    41.PNG

     

    2. Open Command line (cmd) or PowerShell and run the following command:

    PS C:\Users\Administrator> netsh interface ipv4 show interface

     

     

    Idx     Met         MTU          State                Name

    ---  ----------  ----------  ------------  ---------------------------

      1          50  4294967295  connected     Loopback Pseudo-Interface 1

    12           5        1500  disconnected  Ethernet

    13          10        1500  connected     Ethernet 2

    17           5        9600  disconnected  Ethernet 5

    18           5        8986  disconnected  Ethernet 6

    19           5        1500  connected     Ethernet 9

    20           5        8986  disconnected  Ethernet 8

     

    See the "Ethernet 9" interface name.

     

    3. Run the following command to change that interface name with your new chosen name.

    In this case, I select the name "CX3Pro_P1" (Port #1 of ConnectX-3 Pro adapter).

     

    PS C:\Users\Administrator> netsh interface set interface name = "Ethernet 9" newname = "CX3Pro_P1"

     

    4. Verify again the port name.

     

    PS C:\Users\Administrator> netsh interface ipv4 show interface

     

    Idx     Met         MTU          State                Name

    ---  ----------  ----------  ------------  ---------------------------

      1          50  4294967295  connected     Loopback Pseudo-Interface 1

    12           5        1500  disconnected  Ethernet

    13          10        1500  connected     Ethernet 2

    17           5        9600  disconnected  Ethernet 5

    18           5        8986  disconnected  Ethernet 6

    19           5        1500  connected     CX3Pro_P1

    20           5        8986  disconnected  Ethernet 8

     

    And via the GUI.

     

    41.PNG