Re: Manually controlling ARP requests

From: Lew Pitcher (Lew.Pitcher_at_td.com)
Date: 01/20/04


Date: Tue, 20 Jan 2004 09:57:16 -0500

Michael AKA Slowhand wrote:

> "Lew Pitcher" <Lew.Pitcher@td.com> skrev i en meddelelse
> news:81iNb.2052$c1.345205@news20.bellglobal.com...
>
>>David Anderson wrote:
>>
>>
>>>Hi all,
>>>
>>>For I program I am writing, I need to be able to retrieve the MAC
>>> address
>>>for any IP address I receive (the ability to communicate with the said
>>> IP
>>>directly is implicit in the environment I work in).
>>
>>One question: will the partner systems (the "IP addresses you receive") be
>>restricted to IPs on your subnet, or can /any/ IP (on your subnet or not)
>> be a candidate.
>>
>>If /any/ IP address can be a candidate, then you won't be able to get a
>> 100%
>>solution, as ARP only covers the NICs on your subnet (your LAN segment,
>>really, unless your bridges enable ARP passthroughs). The other IP
>> addresses
>>will all have the NIC address of your gateway, and not their own NIC
>> addresses.
>
> I assume you can do this with raw sockets however this works different of
> different dists of linux.
> Like PING (using raw) is able to send an echo which is routed.
> Maybe it is your gateway MAC address you get.
> I would like to hear the answer!

You will never get an ARP that carries an address from outside of your
subnet. That's guaranteed.

-- 
Lew Pitcher, IT Consultant, Application Architecture
Enterprise Technology Solutions, TD Bank Financial Group
(Opinions expressed here are my own, not my employer's)


Relevant Pages

  • Re: UpdatedConfirmation of NLB
    ... IP Subnet. ... It seems that you're intending the second NICs as the Heartbeat ... Configure Network Load Balancing (NLB) with Two Network Adapters ... Configure the NLB Cluster properties according to your parameters, ...
    (microsoft.public.windows.server.clustering)
  • Re: Problem using Remoting with 2 NICs
    ... I agree with you on the 2 NIC's with same subnet being a bad idea. ... Setting the http channels useIpAddress property to false on the server fixed ... I have clients connecting successfully on NIC 1, ... When both NICs are enabled. ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Third NIC
    ... Try the WAP on the switch that the SBS internal nic is connected to. ... the SBS really supports just the one subnet. ... If all 5 nics are physically in your SBS server you might as well only have one. ...
    (microsoft.public.windows.server.sbs)
  • Re: 2 NIC SBS2003R2 LAN/WAN Firewall Router Connection Failure
    ... router from internal client or SBS. ... Please contact your router vendor to check the settings in the router, ... may be there are some rule deny the access from some IP addresses or subnet. ... |> Two Nics, a static IP address, ISA, router ...
    (microsoft.public.windows.server.sbs)
  • Re: Free brain teaser - Networking ?
    ... The mask defines which bits in the IP address are used to define the subnet so both make it up. ... Make the mask 255.255.255.192 (for all NICs on that subnet, ... computer addresses and that's 6 bits for 64 on each subnet, minus the 0 and 63 numbers leaving 62 for actual computer and router addresses. ...
    (alt.comp.hardware.pc-homebuilt)