ipaddress setting problem

  • Thread starter Thread starter hslan
  • Start date Start date
H

hslan

Hi all:
Sorry, I want to know which component in that I can
set fixed IP address in target designer.
Thanks in advance!
 
hslan,

There isn't a component as of SP1 that will allow you to set the IP address.
There are components on www.xpefiles.com that will allow you to
programmatically set the IP address of a runtime. If your using a shell
other than explorer this component will help. If you are using explorer as
the shell, you can use the net.exe utility to set the IP address from a
batch/script during FBA.

HTH,

Brad Combs
Imago Technologies
 
Set a batch file or script to run during RunOnce, use the
command entries below to have netsh.exe configure the IP
for you. You will also need to add the "Network Command
Shell" & "NetSh Command Shell Context" & "IP Router
Monitor Library" components.
The batch file/script contents follows:

netsh interface ip set address name="Local Area
Connection" source=static addr=192.168.1.10 255.255.255.0
192.168.1.1 1
netsh interface ip set dns name="Local Area Connection"
static 192.168.1.2 primary
netsh interface ip add dns name="Local Area Connection"
192.168.1.3 index=2
netsh interface ip add dns name="Local Area Connection"
192.168.1.4 index=3

Mark
 
Mark

I couldn't find the "NetSh Command Shell Context" component. When I ran the
first command, I got an error saying: The following command was not found
"interface ip set address " etc... . I ran the command netsh /? -
interface was not a choice in the "Commands in tihs context:" menu. I must
be missing at least 1 component. Is it the NetSh Command Shell Context
component or are there others that you know of that I may be missing?
Thanks.

Steve
 
Figured it out. Added
"Network Command Shell Interface Context" in Software:System:Networking &
Communications:Infrastructure
to my XPe image.

Steve
 

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

Back
Top