Naming Network Interfaces on a Run-Time Image

Before you can use the Net Shell (Netsh) utility, you must assign names to the network interfaces you want to configure.

If you are using the Explorer shell, these interfaces are automatically named when the system start. For example, "Local Area Connection" or "Wireless Network Connection".

However, if you are running a shell other than Explorer, you must manually register the names of each network interface on the system.

To name a network interface on your run-time image

  1. Display the current network interfaces names using the following Netsh command:

    netsh interface ip show address
    
  2. If the network connections are not named, you must call the HrRenameConnection function.

    1. Call the HrRenameConnection function to name the network interface by using the following command:

      rundll32 netshell.dll HrRenameConnection 
      

      If your device has more than one network card, each network card is assigned a unique name.

    2. Verify the networking interface has been named by running the following command:

      netsh interface ip show address
      

      The networking interface should default to a generic name, such as "Local Networking Connection".

  3. After your network interface is named, use the Netsh utility to configure it. For more information, see Configuring a Static IP Address on a Run-Time Image or Configuring a Dynamic IP Address on a Run-Time Image.

See Also

Adding Netsh Support to a Run-Time Image | Network Configuration | How to Configure a Static IP Address on a Run-Time Image

Last updated on Wednesday, October 18, 2006

© 2006 Microsoft Corporation. All rights reserved.