Change NIC MAC in linux

root@spacecamp:~# ifconfig eth2 down
root@spacecamp:~# ifconfig eth2 hw ether aa:aa:aa:aa:aa:aa
root@spacecamp:~# ifconfig eth2 up
root@spacecamp:~# ifconfig eth2
eth2      Link encap:Ethernet  HWaddr AA:AA:AA:AA:AA:AA
          inet addr:192.168.20.1  Bcast:192.168.20.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1275 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:0 (0.0 b)  TX bytes:319067 (311.5 Kb)
          Interrupt:11 Base address:0x4000
Dette indlæg blev udgivet i Knowledge Base, Linux, Networking, Old Base. Bogmærk permalinket.

Skriv et svar