Re: Determine IP address assigned to MAC
- From: "Secure Buddha" <securebuddha@xxxxxxxxx>
- Date: 13 Jan 2006 02:01:44 -0800
This ia actually the job of the reverse address resolution
protocol(rarp). Google for it to find out more information if you so
desire. However, this rarp protocol will not apply to your scenario
becuase there are no static address assignments.
To successfully acquire the information that you need for a given node
you will need to send a broadcast to the subnet that you are attempting
to access using the "ping" utility. This will then elicit a response
from all the nodes located on the desired node's subnet. More
importantly, the node that you are trying to access.
Now that you have received a echo_reply from the subnet nodes, your arp
cache will contain all the MAC address to IP address resolutions. You
can then "grep" the cache for the needed MAC address to IP address
pairing.
for instance:
buddha@linux:~> ping -b <subnet broadcast>
PING <subnet broadcast>(<subnet broadcast>) 56(84) bytes of data.
64 bytes from <subnet broadcast>: icmp_seq=1 ttl=64 time=0.130 ms
64 bytes from <subnet broadcast>: icmp_seq=2 ttl=64 time=0.078 ms
64 bytes from <subnet broadcast>: icmp_seq=3 ttl=64 time=0.087 ms
64 bytes from <subnet broadcast>: icmp_seq=4 ttl=64 time=0.109 ms
64 bytes from <subnet broadcast>: icmp_seq=5 ttl=64 time=0.097 ms
64 bytes from <subnet broadcast>: icmp_seq=6 ttl=64 time=0.086 ms
buddha@linux:~> /sbin/arp -a
? (<node1>) at 00:0A:41:7E:B8:A0 [ether] on eth0
? (<node2>) at 00:0A:41:7E:B8:A1 [ether] on eth0
? (<node3>) at 00:0A:41:7E:B8:A2 [ether] on eth0
Now this whole process is dependent on a few things:
1. You are capable of sending broadcasts to the internal subnet. It may
be rejected from a external router or firewall through ingress rules.
2. Host resident firewalls may deny echo_requests.
3. Egress filtering may be in place to deny information leakage from
the internal network/subnets.
Hopefully, that'll help. Good luck.
Thomas
.
- Follow-Ups:
- Re: Determine IP address assigned to MAC
- From: Moe Trin
- Re: Determine IP address assigned to MAC
- References:
- Determine IP address assigned to MAC
- From: Ian Pilcher
- Determine IP address assigned to MAC
- Prev by Date: Re: Determine IP address assigned to MAC
- Next by Date: Re: UPnP NAT
- Previous by thread: Re: Determine IP address assigned to MAC
- Next by thread: Re: Determine IP address assigned to MAC
- Index(es):
Relevant Pages
|