Difference between revisions of "MAC address spoofing"

From ArchWiki
Jump to: navigation, search
Line 1: Line 1:
 
[[Category:Network]]
 
[[Category:Network]]
 
{{i18n_links_start}}
 
{{i18n_links_start}}
{{i18n_entry|Česky|:Zmena_MAC_adresy)}}
+
{{i18n_entry|Česky|:Zmena_MAC_adresy}}
 
{{i18n_entry|English|:MAC_Address_Spoofing}}
 
{{i18n_entry|English|:MAC_Address_Spoofing}}
 
{{i18n_links_end}}
 
{{i18n_links_end}}

Revision as of 17:36, 21 January 2007

Template:I18n links start Template:I18n entry Template:I18n entry Template:I18n links end


It is possible (for whatever reasons) to make your network card broadcast a different MAC address. Suppose your network interface is ethX. Then, to retrieve your MAC address:

$ ifconfig ethX

The thing you want is the 6 byte number in the hexadecimal form, something like this:

HWaddr 00:1D:98:5A:D1:3A

Changing the MAC address is easy, shut down the network interface, change the MAC address and restore the interface. This can be done succinctly, as root:

# /etc/rc.d/network stop
# ifconfig ethX hw ether FF:FF:FF:FF:FF:FF
# /etc/rc.d/network start

where FF:FF:FF:FF:FF:FF is your new MAC address.