Computing.Net > Forums > Linux > How Get Mac Address

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How Get Mac Address

Reply to Message Icon

Name: Wendel Dean Renner
Date: November 24, 2003 at 05:15:22 Pacific
OS: Linux
CPU/Ram: Intel/512
Comment:

How to get MAC Address programmatically?
Does anyone know of a system call for Linux to get the MAC address programmatically? For windows, GetAdapersInfo seems to be the best way - see http://www.codeguru.com/network/GetMAC.html. Anyone see a reason why not to base licensing of software using the MAC address to uniquely define a particular computer? What else is there?



Sponsored Link
Ads by Google

Response Number 1
Name: 3Dave
Date: November 24, 2003 at 08:32:37 Pacific
Reply:

Anyone see a reason why not to base licensing of software using the MAC address to uniquely define a particular computer?

# ifconfig eth0 hw ether 00:00:00:00:00:00
will set your MAC address to 00:00:00:00:00:00 or whatever you like (depending on NIC).


0

Response Number 2
Name: 3Dave
Date: November 24, 2003 at 08:33:33 Pacific
Reply:

oh....and what if the PC doesn't have a NIC?


0

Response Number 3
Name: Rick
Date: November 24, 2003 at 12:17:11 Pacific
Reply:

or 2 or 3 nics? which one would you use to set the software to use?


0

Response Number 4
Name: Deputy DooDah
Date: November 25, 2003 at 16:47:05 Pacific
Reply:

..and what if you change your NIC?

...and what if you buy another computer, get rid of the old one and want to move your software to the new box?

...what if you want to do all this at 2 a.m. on a Sunday night, when there's no support line to call which would keep you punching numbers for half an hour anyway if it were open.

When I pay for software, I expect to be able to use it when I want, just like anything else. I absolutely refuse to use products with the kind of resrtictions you're mentioning.

I just switched my office from Norton to McAfee because of Product Activation.

I'm progressing from MS Office to OpenOffice for the same reason.

Windows XP will never be installed here.

See what I'm getting at? I'm not trying to be ugly here, so please don't be offended. I'm trying to make the point that while these activation and restriction schemes may (but usually don't) thwart pirates, they always turn away legitimate customers like me, who resent being treated like thieves.

I maintain that after a product is sold, it no longer belongs to the store, it belongs to the person who paid good money for it.

CompUSA and Fry's (these are computer stores) station people by the door to "check your receipt" as you leave. I just refuse to let them. If I say anything at all to them after they protest my walking by them it's " this is mine, not yours". If they truly think I'm stealing, then they're welcome to call the cops.

The same with software. If you think I stole it, get a warrant and search my place. That's the legal way to do it. I can't tolerate companies functioning as if they are the law.

Damn. I really let go with that one, didn't I.


0

Response Number 5
Name: Ashok Hebbar
Date: November 25, 2003 at 23:31:01 Pacific
Reply:

Hi
I have a linux network with redhat 9 kernel 2 server & few nodes. I have a software which is based on Novell server & which is designed to take node address (Mac ID) from nodes and authenticate. How do I achieve this in linux envoronment ?
All I want to know is how to get Mac ID of a node (Using SSH (?)) ?

can anybody help ??

Thanks in advance

Cheers

Ashok


0

Related Posts

See More



Response Number 6
Name: 3Dave
Date: November 26, 2003 at 01:17:32 Pacific
Reply:

To get remote hardware address with ssh:

$ ssh -l root machinename /sbin/ifconfig

Otherwise you something like etherape to display your whole network graphically including mac address.

There are also perl modules to sniff out networks.


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: How Get Mac Address

Rogers and Mac address www.computing.net/answers/linux/rogers-and-mac-address/14981.html

mac address ff:ff:ff:ff:ff:ff www.computing.net/answers/linux/mac-address-ffffffffffff/9885.html

MAC address www.computing.net/answers/linux/mac-address/26651.html