With great power comes great responsibility.

janeiro 27, 2008

MAC Address

Setup:
  • MACADDR=12:34:56:78:90:AB
  • hwaddress ether 12:34:56:78:90:AB
On fly:
  • ifconfig eth0 down hw ether 12:34:56:78:90:AB
  • ifconfig eth0 up
Ou usando iproute2:
  • ip link set eth0 down
  • ip link set eth0 address 12:34:56:78:90:AB
  • ip link set eth0 up
  • echo "1" > /proc/sys/net/ipv4/ip_forward