方法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
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
博客介绍了在Linux系统中修改网卡MAC地址的两种方法。方法一是使用ifconfig命令,先关闭网卡,修改MAC地址,再开启网卡;方法二则是使用ip link set命令,同样先关闭,修改地址后开启。
749

被折叠的 条评论
为什么被折叠?



