Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Wed, 24 Jan 2007 10:19:52 +0100,    group: microsoft.public.platformsdk.networking        back       


Assign IP address to a remote device by its MAC   
Hi all

Ho do I, PROGRAMMATICALLY,  assign IP attributes (IP address, Default 
Gateway, Subnet Mask, Port) to a remote device on the local network?
I know that the command 'ARP -s <IP address> <MAC address>' assigns the <IP 
address> to the devoce wich has the <MAC address>, and that BOOTP protocol 
is used for all attribtes.

Is the an API for these commands/Protocols? A sample code will, of course' 
be very appreciated.

TIA

Boaz Ben-Porat

Milestone Systems A/S
Denmark
date: Wed, 24 Jan 2007 10:19:52 +0100   author:   Boaz Ben-Porat

Re: Assign IP address to a remote device by its MAC   
"Boaz Ben-Porat"  wrote in message 
news:u3rRPj5PHHA.4492@TK2MSFTNGP02.phx.gbl...
> Hi all
>
> Ho do I, PROGRAMMATICALLY,  assign IP attributes (IP address, Default 
> Gateway, Subnet Mask, Port) to a remote device on the local network?

In general, you can't.  You can communicate with software on the remote 
machine which will make the changes if it trusts you.  Some devices (network 
appliances) can't change their configuration at all.

> I know that the command 'ARP -s <IP address> <MAC address>' assigns the 
> <IP address> to the devoce wich has the <MAC address>, and that BOOTP 
> protocol

No, it doesn't.  ARP updates your local IP->MAC mapping table, and has no 
effect on any other device on the network, only your ability to communicate 
with them.

> is used for all attribtes.
BOOTP or DHCP can in fact assign the information you are talking about, but 
the timing is determined by the client device.  You cannot "push" new 
configurations.

>
> Is the an API for these commands/Protocols? A sample code will, of course' 
> be very appreciated.
If you run a BOOTP/DHCP server, then you may be able to control the 
configuration it sends to clients.  A lot of them use simple text files and 
a simple API to reload the configuration when the files change.  This will 
not cause any client to update its configuration until the client OS decides 
to contact the DHCP/BOOTP server again.

>
> TIA
>
> Boaz Ben-Porat
>
> Milestone Systems A/S
> Denmark
>
date: Wed, 24 Jan 2007 08:38:14 -0600   author:   Ben Voigt am

Re: Assign IP address to a remote device by its MAC   
One such agent is WMI ( wbem ) , so if device/computer have such support, 
possible using Win32_NetworkAdapterConfiguration interface ( for Windows ) 
call EnableStatic() with desired IP and so on
Arkady

"Ben Voigt" <rbv@nospam.nospam> wrote in message 
news:uanZeU8PHHA.4492@TK2MSFTNGP02.phx.gbl...
>
> "Boaz Ben-Porat"  wrote in message 
> news:u3rRPj5PHHA.4492@TK2MSFTNGP02.phx.gbl...
>> Hi all
>>
>> Ho do I, PROGRAMMATICALLY,  assign IP attributes (IP address, Default 
>> Gateway, Subnet Mask, Port) to a remote device on the local network?
>
> In general, you can't.  You can communicate with software on the remote 
> machine which will make the changes if it trusts you.  Some devices 
> (network appliances) can't change their configuration at all.
>
>> I know that the command 'ARP -s <IP address> <MAC address>' assigns the 
>> <IP address> to the devoce wich has the <MAC address>, and that BOOTP 
>> protocol
>
> No, it doesn't.  ARP updates your local IP->MAC mapping table, and has no 
> effect on any other device on the network, only your ability to 
> communicate with them.
>
>> is used for all attribtes.
> BOOTP or DHCP can in fact assign the information you are talking about, 
> but the timing is determined by the client device.  You cannot "push" new 
> configurations.
>
>>
>> Is the an API for these commands/Protocols? A sample code will, of 
>> course' be very appreciated.
> If you run a BOOTP/DHCP server, then you may be able to control the 
> configuration it sends to clients.  A lot of them use simple text files 
> and a simple API to reload the configuration when the files change.  This 
> will not cause any client to update its configuration until the client OS 
> decides to contact the DHCP/BOOTP server again.
>
>>
>> TIA
>>
>> Boaz Ben-Porat
>>
>> Milestone Systems A/S
>> Denmark
>>
>
>
date: Wed, 24 Jan 2007 18:47:04 +0200   author:   Arkady Frenkel

Re: Assign IP address to a remote device by its MAC   
"Arkady Frenkel"  wrote in message 
news:ekvSJd9PHHA.1756@TK2MSFTNGP05.phx.gbl...
> One such agent is WMI ( wbem ) , so if device/computer have such support, 
> possible using Win32_NetworkAdapterConfiguration interface ( for Windows ) 
> call EnableStatic() with desired IP and so on

WMI runs atop unicast IP, so changing IP parameters underneath is a 
dangerous game -- you'll likely end up with an inconsistent configuration, 
unable to connect to the target to complete the change.


> Arkady
>
> "Ben Voigt" <rbv@nospam.nospam> wrote in message 
> news:uanZeU8PHHA.4492@TK2MSFTNGP02.phx.gbl...
>>
>> "Boaz Ben-Porat"  wrote in message 
>> news:u3rRPj5PHHA.4492@TK2MSFTNGP02.phx.gbl...
>>> Hi all
>>>
>>> Ho do I, PROGRAMMATICALLY,  assign IP attributes (IP address, Default 
>>> Gateway, Subnet Mask, Port) to a remote device on the local network?
>>
>> In general, you can't.  You can communicate with software on the remote 
>> machine which will make the changes if it trusts you.  Some devices 
>> (network appliances) can't change their configuration at all.
>>
>>> I know that the command 'ARP -s <IP address> <MAC address>' assigns the 
>>> <IP address> to the devoce wich has the <MAC address>, and that BOOTP 
>>> protocol
>>
>> No, it doesn't.  ARP updates your local IP->MAC mapping table, and has no 
>> effect on any other device on the network, only your ability to 
>> communicate with them.
>>
>>> is used for all attribtes.
>> BOOTP or DHCP can in fact assign the information you are talking about, 
>> but the timing is determined by the client device.  You cannot "push" new 
>> configurations.
>>
>>>
>>> Is the an API for these commands/Protocols? A sample code will, of 
>>> course' be very appreciated.
>> If you run a BOOTP/DHCP server, then you may be able to control the 
>> configuration it sends to clients.  A lot of them use simple text files 
>> and a simple API to reload the configuration when the files change.  This 
>> will not cause any client to update its configuration until the client OS 
>> decides to contact the DHCP/BOOTP server again.
>>
>>>
>>> TIA
>>>
>>> Boaz Ben-Porat
>>>
>>> Milestone Systems A/S
>>> Denmark
>>>
>>
>>
>
>
date: Wed, 24 Jan 2007 11:45:36 -0600   author:   Ben Voigt am

Re: Assign IP address to a remote device by its MAC   
AFAIK that work pretty nice in the admin scripts for network configuration 
( which was born for ... ) , so don't see the reason why it willn't work for 
computer ( at least inside the LAN ) with specific MAC
Arkady

"Ben Voigt" <rbv@nospam.nospam> wrote in message 
news:e83DC99PHHA.4912@TK2MSFTNGP05.phx.gbl...
>
> "Arkady Frenkel"  wrote in message 
> news:ekvSJd9PHHA.1756@TK2MSFTNGP05.phx.gbl...
>> One such agent is WMI ( wbem ) , so if device/computer have such support, 
>> possible using Win32_NetworkAdapterConfiguration interface ( for 
>> Windows ) call EnableStatic() with desired IP and so on
>
> WMI runs atop unicast IP, so changing IP parameters underneath is a 
> dangerous game -- you'll likely end up with an inconsistent configuration, 
> unable to connect to the target to complete the change.
>
>
>> Arkady
>>
>> "Ben Voigt" <rbv@nospam.nospam> wrote in message 
>> news:uanZeU8PHHA.4492@TK2MSFTNGP02.phx.gbl...
>>>
>>> "Boaz Ben-Porat"  wrote in message 
>>> news:u3rRPj5PHHA.4492@TK2MSFTNGP02.phx.gbl...
>>>> Hi all
>>>>
>>>> Ho do I, PROGRAMMATICALLY,  assign IP attributes (IP address, Default 
>>>> Gateway, Subnet Mask, Port) to a remote device on the local network?
>>>
>>> In general, you can't.  You can communicate with software on the remote 
>>> machine which will make the changes if it trusts you.  Some devices 
>>> (network appliances) can't change their configuration at all.
>>>
>>>> I know that the command 'ARP -s <IP address> <MAC address>' assigns the 
>>>> <IP address> to the devoce wich has the <MAC address>, and that BOOTP 
>>>> protocol
>>>
>>> No, it doesn't.  ARP updates your local IP->MAC mapping table, and has 
>>> no effect on any other device on the network, only your ability to 
>>> communicate with them.
>>>
>>>> is used for all attribtes.
>>> BOOTP or DHCP can in fact assign the information you are talking about, 
>>> but the timing is determined by the client device.  You cannot "push" 
>>> new configurations.
>>>
>>>>
>>>> Is the an API for these commands/Protocols? A sample code will, of 
>>>> course' be very appreciated.
>>> If you run a BOOTP/DHCP server, then you may be able to control the 
>>> configuration it sends to clients.  A lot of them use simple text files 
>>> and a simple API to reload the configuration when the files change. 
>>> This will not cause any client to update its configuration until the 
>>> client OS decides to contact the DHCP/BOOTP server again.
>>>
>>>>
>>>> TIA
>>>>
>>>> Boaz Ben-Porat
>>>>
>>>> Milestone Systems A/S
>>>> Denmark
>>>>
>>>
>>>
>>
>>
>
>
date: Thu, 25 Jan 2007 10:00:59 +0200   author:   Arkady Frenkel

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us