On 10/09/2013 19:47, Joseph wrote:
> Does anybody know how to spoof mac address on Gentoo?
> 
> I want to connect a machine directly to the modem but if I do so my
> static IP will change; so to retain static IP I want to spoof mac
> address on one of my machine to the same MAC as on my router.
> 


If you have a host and a router with the same MAC address, how do you
suppose ethernet will continue to work?

Instead, rather do it right - your modem has a dhcp server. Configure it
to supply a specific address to your host's MAC address. Or, just set
the address statically in /etc/conf.d/net and don't use dhcp.

Or, do you actually want to bridge the modem and do pppoe on the host
instead of by the modem?

in /etc/conf.c/net:

mac_key_001122334455="s:foobar"

documented in /usr/share/doc/netifrc*/net.example.bz2

If you use a different network manager, consult that packages own docs
on how to change mac addresses.



-- 
Alan McKinnon
alan.mckin...@gmail.com


Reply via email to