Hi Harold,
You can change the IP address manually with netsh. Check out the following
netsh instructions:
Adding Netsh Support to a Run-Time Image
Using the Net Shell (Netsh) utility, you can configure the IP addresses,
netmasks, gateways, and additional protocols and services on your run-time
image. Adding Net Shell support to your run-time image enables you to
configure networking on your target device after your run-time image is
deployed.
In Target Designer, a run-time image defaults to Dynamic Host Configuration
Protocol (DHCP). To configure a static IP address, or configure multiple
networking cards, you must use the netsh command after the run-time image is
deployed.
Note You cannot set a static IP address in Target Designer because every
target device you deploy your run time image to has the same IP address.
Each IP address must be configured individually.
To add Net Shell to a run-time image
1. To enable the Netsh utility, as well as the interface context commands,
add the following components to your run-time image:
· Network Command Shell
· Network Command Shell Interface Context
· IP Router Monitor Library
Additional Net Shell components add support for different Net Shell
contexts, which are categories of network protocols, services, or utilities
related to a particular feature, as follows:
· Home Networking Monitory Library (bridge context)
· Network Diagnostics (diag context)
· Remote Access Monitory (ras context)
Additionally, the following TCP/IP component is recommended:
· TCP/IP Utilities
2. After adding these components, check dependencies and rebuild your image.
Using Netsh to Configure Networking on a Run-Time Image
Using the Net Shell (Netsh) utility, you can configure networking on a
run-time image after deploying the image and running First Boot Agent (FBA).
If you are running a shell other than Explorer, you must manually register
the names of each network interface on the system. Explorer automatically
names the network connections when the system starts, for example, "Local
Area Connection" or "Wireless Network Connection".
To name the networking interface
1. Use the HrRenameConnection function to name the network interface. Call
the function with the following command:
rundll32 netshell.dll HrRenameConnection
2. Verify the networking interface is 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".
Once your network interface is named, you use the Netsh utility to configure
it.
Depending on the requirements of your target device, you can configure your
network interfaces to use either static or dynamic IP addresses, and you can
configure multiple network interfaces for multiple network cards.
To configure an IP address using Netsh
Use one of the following options to configure the IP address using Netsh:
· To configure a static IP address, use the following Netsh syntax:
netsh interface ip set address <interface name> static <ip address> <mask>
<default gateway> <gateway interface metric>
For example, to set a static IP address of 192.168.1.10 with a netmask of
255.255.255.0, use the following command:
netsh interface ip set address "Local Area Connection" static 192.168.1.10
255.255.255.0 192.168.1.1 1
-or-
· To configure an interface for DHCP, use the following Netsh syntax:
netsh interface ip set address "Local Area Connection" dhcp
-or-
· To configure networking on multiple networking cards, issue separate
commands for each card on the system. For example, to set two different
static IP addresses for two networking cards on the system:
netsh interface ip set address "Local Area Connection" static 192.168.1.10
255.255.255.0 192.168.1.1 1
netsh interface ip set address "Local Area Connection 2" static 192.168.1.20
255.255.255.0 192.168.1.1 1
Hope this helps,
Dan