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