PC Review Forums Newsgroups Windows XP Windows XP Embedded Re: IP Address and NetMask

Reply

Re: IP Address and NetMask

 
Thread Tools Rate Thread
Old 23-07-2003, 02:19 PM   #1
Dan Simpson [MS]
Guest
 
Posts: n/a
Default Re: IP Address and NetMask


Networking Configuration defaults to DHCP. This is because if Target
Designer set a static IP address for a run-time image, and that run-time
image was replicated across a bunch of devices, they all would have the same
IP address.

You can use netsh to configure networking on a run-time image after it has
been deployed. Also, you can create a netsh script that you can call from
your application.

To enable netsh, add the following components:
Network Command Shell
Network Command Shell Interface Context
IP Router Monitor Library

If you're not using the Explorer shell, you will need to name the
network interface by manually calling HrRenameConnection. Explorer names
the
interfaces when it starts ("Local Area Connection" for example). If you're
using a different shell, run this command:

rundll32 netshell.dll HrRenameConnection

You should be able to find more information on using netsh on MSDN. If
you're looking for specific APIs, you should probably take a look on MSDN
for networking SDKs and make sure the relevant libraries are added to your
system.

thanks,
Dan


--
This posting is provided "AS IS" with no warranties, and confers no rights.


"BN" <crap@eltrek.no> wrote in message
news:e%23VgBkQUDHA.304@tk2msftngp13.phx.gbl...
> I am doing some tests with XPe, and see that it is not possible to set IP
> address and netmask "easily" from Target Designer.
>
> My question is:
>
> Does anyone know of a Windows API that will allow me to set these from my
> program..?
>
> Any comments and ideas are welcome..
>
>



  Reply With Quote
Old 24-07-2003, 01:50 AM   #2
Chew Lek Wah
Guest
 
Posts: n/a
Default Re: IP Address and NetMask

Can Microsoft confirm that the Networking APIs does not have any functions
to change IP or netmask ? MSDN do not have a listing on such a function,
only on functions get and set certain properties but not IP and netmask.

"Dan Simpson [MS]" <dansimp@online.microsoft.com> wrote in message
news:3f1e9987$1@news.microsoft.com...
> Networking Configuration defaults to DHCP. This is because if Target
> Designer set a static IP address for a run-time image, and that run-time
> image was replicated across a bunch of devices, they all would have the

same
> IP address.
>
> You can use netsh to configure networking on a run-time image after it has
> been deployed. Also, you can create a netsh script that you can call from
> your application.
>
> To enable netsh, add the following components:
> Network Command Shell
> Network Command Shell Interface Context
> IP Router Monitor Library
>
> If you're not using the Explorer shell, you will need to name the
> network interface by manually calling HrRenameConnection. Explorer names
> the
> interfaces when it starts ("Local Area Connection" for example). If

you're
> using a different shell, run this command:
>
> rundll32 netshell.dll HrRenameConnection
>
> You should be able to find more information on using netsh on MSDN. If
> you're looking for specific APIs, you should probably take a look on MSDN
> for networking SDKs and make sure the relevant libraries are added to your
> system.
>
> thanks,
> Dan
>
>
> --
> This posting is provided "AS IS" with no warranties, and confers no

rights.
>
>
> "BN" <crap@eltrek.no> wrote in message
> news:e%23VgBkQUDHA.304@tk2msftngp13.phx.gbl...
> > I am doing some tests with XPe, and see that it is not possible to set

IP
> > address and netmask "easily" from Target Designer.
> >
> > My question is:
> >
> > Does anyone know of a Windows API that will allow me to set these from

my
> > program..?
> >
> > Any comments and ideas are welcome..
> >
> >

>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off