Linux 更改MAC地址

Linux 更改MAC地址:
1. 临时更改:
 # ifdown eth0
 # ifconfig eth0 hw ether 0029340830249(MAC地址)
 # ifup eth0

2. 永久生效:
 # vi /etc/rc.d/rc.local
   ifdown eth0
   ifconfig eth0 hw ether 002934083024(MAC地址)
   ifup eth0
 # service network restart

3. 添加新网卡:
  a. VM --> 添加网卡
  b. 启动时按 '<-' , 确定相关默认配置
  c. 在/etc/sysconfig/network-scripts/创建新网卡文件
  d. 配置新网卡文件

原文地址 http://unix-cd.com/unixcd12/article_6067.html  

你可能感兴趣的:(C++,c,linux,unix,C#)