Networking Forums

Networking Forums > Computer Networking > Linux Networking > change (clone) a MAC adress in Linux.

Reply
Thread Tools Display Modes

change (clone) a MAC adress in Linux.

 
 
J. Preeker
Guest
Posts: n/a

 
      05-29-2004, 08:06 AM
Hey,

I'm trying to figure out how I can clone my MAC adress in Linux because my
internet provider only allows one MAC adress to have access to the
internet. So I could fake the MAC adress like it was on my old computer.
Any suggestions? I use Fedora core 2. Any help would be greatly apreciated.

--
Gemaakt met M2, Opera's revolutionaire e-mailprogramma:
http://www.opera.com/m2/
 
Reply With Quote
 
 
 
 
Sven Vermeulen
Guest
Posts: n/a

 
      05-29-2004, 08:26 AM
On Sat, 29 May 2004 08:06:38 GMT, J. Preeker <(E-Mail Removed)> wrote:
> I'm trying to figure out how I can clone my MAC adress in Linux because my
> internet provider only allows one MAC adress to have access to the
> internet. So I could fake the MAC adress like it was on my old computer.
> Any suggestions? I use Fedora core 2. Any help would be greatly apreciated.


I do something similar at the university where only "their" PCs get Internet
access. You can create a virtual interface with a given MAC address, for
instance:

# ifconfig eth0:0 hw ether 0008742B9A99

Then you can use it like a regular interface:

# dhcpcd eth0:0

Wkr,
Sven Vermeulen

--
Bent Hindrup Andersen, Danish MEP, about the Software Patent Directive:
The approach of the Commission and Council in this directive is shocking.
They are making full use of all the possibilities of evading democracy that
the current Community Law provides. <http://lwn.net/Articles/84009/>
 
Reply With Quote
 
Rod Smith
Guest
Posts: n/a

 
      05-29-2004, 02:43 PM
In article <sOXtc.136974$(E-Mail Removed)>,
Sven Vermeulen <(E-Mail Removed)> writes:
>
>
> On Sat, 29 May 2004 08:06:38 GMT, J. Preeker <(E-Mail Removed)> wrote:
>> I'm trying to figure out how I can clone my MAC adress in Linux because my
>> internet provider only allows one MAC adress to have access to the
>> internet. So I could fake the MAC adress like it was on my old computer.
>> Any suggestions? I use Fedora core 2. Any help would be greatly apreciated.


First of all, if you've got two computers that you want to use, a better
solution is to use a routing configuration. Either use one computer as the
router (as well as for other things) or buy a broadband router (sold by
Linksys, NetGear, ZyXEL, and many others; check
http://practicallynetworked.com/list.asp?p=1 for one of many sites that
reviews these devices). Using a broadband router has security advantages,
too, even if you've just got one computer. Specifically, these devices use
Network Address Translation (NAT), which as one practical effect blocks
outside attempts to access ports on the computer(s) "behind" it, except in
response to outgoing packets. Thus, if you forget to shut down some
unnecessary server, outside crackers won't be able to access it, possibly
abusing some bug to break in. (This assumes proper configuration, as is
typical out of the box, and no bugs in the router itself, of course.)

> I do something similar at the university where only "their" PCs get Internet
> access. You can create a virtual interface with a given MAC address, for
> instance:
>
> # ifconfig eth0:0 hw ether 0008742B9A99
>
> Then you can use it like a regular interface:
>
> # dhcpcd eth0:0


This can be done with a standard "eth0" interface, not just "eth0:0". To
do this, though, you might need to hack your network startup scripts. At
first glance, in Fedora Core 2, this would probably be /sbin/ifup; but
I've not tried modifying it to do this, and it looks like the Red
Hat/Fedora developers have made this script quite complex. It might be
simpler to just disable the standard network-starting tools and write a
simple SysV startup script to do the job in whatever way is appropriate
for your network.

If you've replaced an old computer with a new one, another couple of
options are available, too:

- Tell your ISP about the change so that they have your new computer's
MAC address on file and will authenticate it.
- Swap NICs with the old computer. This will give the new computer the old
computer's MAC address.

--
Rod Smith, (E-Mail Removed)
http://www.rodsbooks.com
Author of books on Linux, FreeBSD, and networking
 
Reply With Quote
 
 
 
Reply

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change the hostname in linux guddu Linux Networking 3 06-23-2008 12:24 PM
Change from Linux to Windows. TJ Windows Networking 2 05-14-2008 08:06 AM
How to change TTL of Linux john Linux Networking 12 11-16-2007 06:46 PM
Prevent access to linux server when mac adress does not match ip adress kris houben Linux Networking 8 11-08-2006 06:52 PM
clone a linux system over the network maxim2k Linux Networking 0 05-06-2005 07:20 PM



1 2 3 4 5 6 7 8 9 10 11