LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-05-2005, 08:02 AM   #1
fssengg
Member
 
Registered: Feb 2005
Location: Kerala(God's own country)
Distribution: Redhat-8
Posts: 35

Rep: Reputation: 15
Question why we have mac address when we had ip address?


hai alll
I have a question.I asked it to many people but o one can give a correct reply
the question is "why we have unique mac address when we have ip address which is uniuqe in a network.?
Most people answered that it is for portablity with older systems .is it true?
 
Old 04-05-2005, 08:16 AM   #2
angrybeaver
Member
 
Registered: Aug 2004
Location: .au
Distribution: debian, BSD
Posts: 104

Rep: Reputation: 17
This might answer your question.

Keep in mind that not all comms run over TCP/IP

Last edited by angrybeaver; 04-05-2005 at 08:20 AM.
 
Old 04-05-2005, 08:26 AM   #3
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32
Hi,

Of course IP address are unique on a network, but that's not enough so as to identify a machine.
IP address are unique but not dedicated to a host. Most networks use dhcp, which means that IP address can belong to any computer !!!
The real issue, is that, when a network adapter sends a packet, the only way to tell that he is the sender is that he puts its own address in the packet. But since IP address can change from machines (and from NIC), then there must be an address specific to the NIC : that's the use of a mac address for ethernet.

What's more, some devices (cameras, prodcution machines) do not use IP, since it's a layer above ethernet that may not be needed. Another exemple : when you first configure some network adapters (as a matter of fact Linksys WET54G --- which is a real ******) you have to address them through ethernet so as to be able to give them an IP config.

Well, back to work !
 
Old 04-06-2005, 01:11 AM   #4
abhijeetudas
Member
 
Registered: Sep 2004
Distribution: Redhat / Fedora
Posts: 114

Rep: Reputation: 15
Of all the network equipment
Only routers can read the IP address from a given Packet & then route it accordingly


Switches [ most commonly used ]
divert traffic based on the mac address..


you mite want to read about the 7 Layer OSI model for network communication
to get a clear understanding how how packets actually reach their destination
 
Old 04-06-2005, 06:49 AM   #5
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
Re: why we have mac address when we had ip address?

Quote:
Originally posted by fssengg
hai alll
I have a question.I asked it to many people but o one can give a correct reply
the question is "why we have unique mac address when we have ip address which is uniuqe in a network.?
Most people answered that it is for portablity with older systems .is it true?
That's interesting because if you asked someone who was familiar with networking they should be able to give you a better answer.

Everyone else seems to have answered your question, or provided helpful information/links so I'll just generalize and say that systems on a global network, like The Internet, use your IP address to find your system because they can group IP addresses into subnets to more easily find where in the world you are, while computers on a local network use the MAC address to distinguish the different computers plugged into the same hub/switch/router. Both addresses are needed because the MAC address distinguishes you on the Ethernet network you are plugged into while the IP address distinguishes you on The Internet, which has more than just Ethernet networks on it.
 
  


Reply



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

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find an IP address from the MAC address of a remote machine ? jitz Linux - General 3 01-03-2006 07:55 AM
How to find IP address of a machine if I know their MAC Address dysenteryduke Linux - Networking 13 09-12-2005 10:21 AM
how to get ip address, broadcast address, mac address of a machine sumeshstar Programming 2 03-12-2005 04:33 AM
DHCP Server MAC Address found, IP address not assigned wmburke Linux - Wireless Networking 17 11-17-2004 10:33 AM
How to know MAC address ( Machine address)?? vanhelsing Linux - Networking 3 08-12-2004 09:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration