LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-06-2014, 12:27 PM   #1
vicky007aggrwal
Member
 
Registered: Aug 2012
Posts: 95

Rep: Reputation: Disabled
mac address


how to find the mac address because on my redhat Linux machine I have 10 network card installed, I don't know which to use as MAC address. Is there any thumb rule in finding MAC address of Linux machine in case of multiple Ethernet cards..??


please please help
 
Old 01-06-2014, 12:28 PM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,027

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
ifconfig mac address = hwaddr
 
Old 01-06-2014, 12:29 PM   #3
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Computers do not have MAC addresses, NICs do. You have 10 NICs, therefore you have 10 MACs. If you want to know which one of the 10 you're currently using, then use ifconfig.
 
Old 01-06-2014, 12:31 PM   #4
vicky007aggrwal
Member
 
Registered: Aug 2012
Posts: 95

Original Poster
Rep: Reputation: Disabled
I know that but there are multiple Ethernet cards installed on my machine , which one should I use as my machine MAC address

++++++++++++++++++++++command output of my machine+++++++++++++++++++++++++++++++++++++++++++++++++

ifconfig -a
bond0 Link encap:Ethernet HWaddr 00:90:FA:1A:47:12
inet6 addr: fe80::290:faff:fe1a:4712/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:51292853 errors:0 dropped:0 overruns:0 frame:0
TX packets:93765353 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:19024257168 (17.7 GiB) TX bytes:130226181896 (121.2 GiB)

bond0.2200 Link encap:Ethernet HWaddr 00:90:FA:1A:47:12
inet addr:102.210.72.18 Bcast:10.10.73.255 Mask:255.255.254.0
inet6 addr: fe80::290:faff:fe1a:4712/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:31496131 errors:0 dropped:0 overruns:0 frame:0
TX packets:80508114 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:16128517806 (15.0 GiB) TX bytes:129825297499 (120.9 GiB)

bond1 Link encap:Ethernet HWaddr 90:E2:BA:42:95:3E
inet6 addr: fe80::92e2:baff:fe42:953e/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:233636545 errors:113 dropped:0 overruns:0 frame:113
TX packets:205390684 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:72260754347 (67.2 GiB) TX bytes:75892460670 (70.6 GiB)

bond1.2160 Link encap:Ethernet HWaddr 90:E2:BA:42:95:3E
inet addr:159.202.228.117 Bcast:159.202.228.255 Mask:255.255.255.0
inet6 addr: fe80::92e2:baff:fe42:953e/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:194091965 errors:0 dropped:0 overruns:0 frame:0
TX packets:203593348 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:64639941836 (60.2 GiB) TX bytes:75696627235 (70.4 GiB)

eth0 Link encap:Ethernet HWaddr 90:E2:BA:42:95:3E
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:26176079 errors:32 dropped:0 overruns:0 frame:32
TX packets:53444316 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4446549207 (4.1 GiB) TX bytes:18923979935 (17.6 GiB)
Memory:c4200000-c4280000

eth1 Link encap:Ethernet HWaddr 90:E2:BA:42:95:3E
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:75499150 errors:68 dropped:0 overruns:0 frame:68
TX packets:364048 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:27312922113 (25.4 GiB) TX bytes:44521151 (42.4 MiB)
Memory:c4280000-c4300000

eth2 Link encap:Ethernet HWaddr 40:F2:E9:21:7A:12
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Memory:c4580000-c45a0000

eth3 Link encap:Ethernet HWaddr 40:F2:E9:21:7A:13
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Memory:c45a0000-c45c0000

eth4 Link encap:Ethernet HWaddr 40:F2:E9:21:7A:14
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Memory:c45c0000-c45e0000

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
Old 01-06-2014, 12:35 PM   #5
jms89
Member
 
Registered: Jan 2013
Posts: 41

Rep: Reputation: Disabled
What do you need the MAC address for? Whatever device is connected to a particular ethernet card, that card's MAC address is the adress that device will see...
 
Old 01-06-2014, 12:37 PM   #6
vicky007aggrwal
Member
 
Registered: Aug 2012
Posts: 95

Original Poster
Rep: Reputation: Disabled
I need MAC address for this machine as third party applications will generate licenses for their products to run on this machine & which are bound to MAC addresses
 
Old 01-06-2014, 12:42 PM   #7
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
It depends on the application, but in my experience licenses are usually tied to the MAC of eth0. You should contact the providers to ask them though.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
using arp for converting ip address to mac address in kernel module programing in c karan2386 Linux - Kernel 1 03-31-2012 06:02 AM
how do I find what MAC address web pages see as my MAC address rob.rice General 20 05-29-2010 03:08 AM
Ethernet MAC Addresses database; MAC address-based processing cctualatin Linux - Newbie 1 04-14-2009 09:59 AM
how to get ip address, broadcast address, mac address of a machine sumeshstar Programming 2 03-12-2005 05:33 AM


All times are GMT -5. The time now is 06:19 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration