Skip to main content

If a pc has 2 NIC cards how do ARP recognises Resolves the N

More
17 years 6 months ago #20198 by shreyas
Suppose there is a pc with 2 or more NIC cards.V have routed a packet to the ip address of that system.Once the packet reaches the datalink layer,it uses ARP to resolve the MAC address but how will it recognise the particular MAC to which v have to send in that pc?
Could anyone help me with this issue?
More
17 years 6 months ago #20203 by Smurf
I don't fully understand what you are asking on this ?

The fact that you have two (or more) NICs in your machine doesn't change the ARP process in any way. If a machine wants to talk to IP address 10.10.10.10 then as you quite rightly say, the Data Link layer needs to resolve the IP to MAC mapping in order to talk to the machine in question (since all Ethernet Frames deal with MAC addresses, IP packets are encapsulated from the Network Layer as its passed to the Data Link Layer)

The ARP process will prodcast an ARP request, all machine on that network segment will see that request and the machine with that IP Address will answer with its MAC address in a UniCast reply. This process works regardless of a single NIC or multiple NICs. Also, if multiple IP Addresses are bound to the same NIC, the process will still work the same, just multiple IP Addresses will have the same MAC address.

Hope it helps.

Wayne Murphy
Firewall.cx Team Member
www.firewall.cx

Now working for a Security Company called Sec-1 Ltd in the UK, for any
Penetration Testing work visit www.sec-1.com or PM me for details.
More
17 years 6 months ago #20208 by shreyas
I understood that but my doubt is when ARP request is there which MAC address the system gives since it have 2 nic cards.
More
17 years 6 months ago #20209 by Smurf
Oh i see.

Its simple that it will give the MAC address of the NIC that has the IP Address bound to it. If you have two NIC's, you must have two different addresses assigned to each NIC. Depending on which IP Address you are ARP'ing for, will depend on the NIC that the traffic is going to, therefore that NIC will respond

Wayne Murphy
Firewall.cx Team Member
www.firewall.cx

Now working for a Security Company called Sec-1 Ltd in the UK, for any
Penetration Testing work visit www.sec-1.com or PM me for details.
More
17 years 6 months ago #20210 by shreyas
Iam little bit confused now.suppose v hav 5 nic cards it is not possible to hav 5 ip.suppose v hav 5 nic cards and 2 ip address which mac it will return?
More
17 years 6 months ago #20211 by Smurf
If you have 5 NICs in your machine and only 2 IP Addresses, then you must have mapped these IP Addresses to only 2 NICs within that machine. The other 3 NIC's will not be in use since you do not have the IP addressing information attached to them therefore they cannot be addressed.

Remember, ARP is the process of mapping an IP to MAC to allow machines to communicate. If you do not have an IP mapped in the first place then that NIC will not be used.

Hope that clears it up.

Wayne Murphy
Firewall.cx Team Member
www.firewall.cx

Now working for a Security Company called Sec-1 Ltd in the UK, for any
Penetration Testing work visit www.sec-1.com or PM me for details.
Time to create page: 0.130 seconds