修改Linux網卡MAC地址

方法1:
ifconfig eth0 down
ifconfig eth0 hw ether 00:AA:BB:CC:DD:EE
ifconfig eht0 up


方法2:
ip link set eth1 down
ip link set eth1 address 00:AA:BB:CC:DD:EE
ip link set eth1 up
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章