Re: Ethernet HW address on linux

This is a discussion on Re: Ethernet HW address on linux within the Linux Networking forums, part of the Linux Forums category; Larry I Smith <larryXiXsmith@verizon.net> wrote in message news:<qsuNc.12400$Nu4.12053@nwrddc01.gnilink.net&...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-28-2004
Pushkar Naik
 
Posts: n/a
Default Re: Ethernet HW address on linux

Larry I Smith <larryXiXsmith@verizon.net> wrote in message news:<qsuNc.12400$Nu4.12053@nwrddc01.gnilink.net>. ..
> Pushkar Naik wrote:
> > Hello,
> > I'm working with an application that tries to detect the
> > ethernet hw address of the machine for validating a user. My PC does
> > not have an ethernet card. So
> > when the application querries, linux returns a null string, and the
> > applications fails to run.
> > The same application on same PC on windows works fine because windows
> > returns the ethernet id as 000000000000 and not a null string.
> >
> > Is there any way i can make linux return the ethernet id as
> > 000000000000 when the ethernet card is not present on the machine ?
> >
> > I guess virtual ethernet adaptor could be one possible way, can
> > someone give me a step by step procedure for going about using this
> > method, if this is the best solution.
> >
> > Thanx in advance.
> >
> > Regards,
> > Pushkar

>
> Hmm, why not just accept/interpret the null string to
> mean 'no ethernet card' (i.e a null string is the same
> as 000000000000)?
>
> Assuming 000000000000 for "no card" will NOT work across
> multiple OS's (not just Linux). That's highly
> Windows-specific.
>
> Larry


Hello Larry,
Well, the application i talked about is a licensed one
with only binaries available, no source code. Now the application
tries to look for a integer value and not a character string of the
address. Thats the reason it fails with that null string response from
linux. Coz the license contains an ethernet address of 000000000000
while linux gives "", since they dont match it cribs thats the hw
address dont match.

How can i set some mac address in linux to be reported to anyone who
querries, in the absence of a physical card ?

Pushkar.
Reply With Quote
  #2 (permalink)  
Old 07-28-2004
Iwo Mergler
 
Posts: n/a
Default Re: Ethernet HW address on linux

Pushkar Naik wrote:
> Larry I Smith <larryXiXsmith@verizon.net> wrote in message news:<qsuNc.12400$Nu4.12053@nwrddc01.gnilink.net>. ..
>
>>Pushkar Naik wrote:
>>
>>>Hello,
>>> I'm working with an application that tries to detect the
>>>ethernet hw address of the machine for validating a user. My PC does
>>>not have an ethernet card. So
>>>when the application querries, linux returns a null string, and the
>>>applications fails to run.
>>>The same application on same PC on windows works fine because windows
>>>returns the ethernet id as 000000000000 and not a null string.
>>>
>>>Is there any way i can make linux return the ethernet id as
>>>000000000000 when the ethernet card is not present on the machine ?
>>>
>>>I guess virtual ethernet adaptor could be one possible way, can
>>>someone give me a step by step procedure for going about using this
>>>method, if this is the best solution.
>>>
>>>Thanx in advance.
>>>
>>>Regards,
>>>Pushkar

>>
>>Hmm, why not just accept/interpret the null string to
>>mean 'no ethernet card' (i.e a null string is the same
>>as 000000000000)?
>>
>>Assuming 000000000000 for "no card" will NOT work across
>>multiple OS's (not just Linux). That's highly
>>Windows-specific.
>>
>>Larry

>
>
> Hello Larry,
> Well, the application i talked about is a licensed one
> with only binaries available, no source code. Now the application
> tries to look for a integer value and not a character string of the
> address. Thats the reason it fails with that null string response from
> linux. Coz the license contains an ethernet address of 000000000000
> while linux gives "", since they dont match it cribs thats the hw
> address dont match.
>
> How can i set some mac address in linux to be reported to anyone who
> querries, in the absence of a physical card ?
>
> Pushkar.


You could load a dummy ethernet driver, similar to
this one:

http://www.xml.com/ldd/chapter/book/ch14.html

I believe, you then can use ifconfig to set the MAC
address at will.

http://whoozoo.co.uk/mac-spoof-linux.htm

Kind regards,

Iwo
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:21 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0