我们学校的IP和MAC地址是绑定的,可是前几天我换了张网卡。怎么改网卡的MAC地址啊.....
<I>谢谢了</I>
新手,问答大家个问题........
-
- 帖子: 2
- 注册时间: 2005-06-09 21:12
- firehare
- 帖子: 2625
- 注册时间: 2005-04-10 16:54
- 来自: 温州大学
- 联系:
- oneleaf
- 论坛管理员
- 帖子: 10441
- 注册时间: 2005-03-27 0:06
- 系统: Ubuntu 12.04
- oneleaf
- 论坛管理员
- 帖子: 10441
- 注册时间: 2005-03-27 0:06
- 系统: Ubuntu 12.04
找了一下,试试
代码: 全选
方法一:
第一步:
在/etc/rc.local和/etc/rc.sysinit中加入如下内容:
/sbin/ifconfig eth0 down
/sbin/ifconfig eth0 hw ether ##:##:##:##:##:##
/sbin/ifconfig eth0 up
第二步:
在/etc/sysconfig/network-scripts/ifcfg-eth0中加入如下内容:
MACADDR=##:##:##:##:##:##
并修改HWADDR=##:##:##:##:##:##(如无则添加)。
方法二:
在/etc/rc.d/init.d第40行位置加入如下内容:
mac=##:##:##:##:##:##
ifdown eth0
ifconfig eth0 hw ether $mac
etho "MAC address has been switched to $mac"
方法三:
关掉网络服务,不让系统自己启动网络,在/etc/rc.local中加入如下内容:
ifup lo
/sbin/ifconfig eth0 hw ether ##:##:##:##:##:##
ifup eth0
方法四:
在/etc/sysconfig/hwconf中的class: NETWORK部分加入如下内容:
network.hwaddr: ##:##:##:##:##:##
方法五:
在/etc/network/interfaces中加入如下内容:
hwaddress ether ##:##:##:##:##:##
当净其意如虚空,远离妄想及诸取,令心所向皆无碍
- firehare
- 帖子: 2625
- 注册时间: 2005-04-10 16:54
- 来自: 温州大学
- 联系:
好东东!支持一下!!oneleaf 写了:找了一下,试试
代码: 全选
方法一: 第一步: 在/etc/rc.local和/etc/rc.sysinit中加入如下内容: /sbin/ifconfig eth0 down /sbin/ifconfig eth0 hw ether ##:##:##:##:##:## /sbin/ifconfig eth0 up 第二步: 在/etc/sysconfig/network-scripts/ifcfg-eth0中加入如下内容: MACADDR=##:##:##:##:##:## 并修改HWADDR=##:##:##:##:##:##(如无则添加)。 方法二: 在/etc/rc.d/init.d第40行位置加入如下内容: mac=##:##:##:##:##:## ifdown eth0 ifconfig eth0 hw ether $mac etho "MAC address has been switched to $mac" 方法三: 关掉网络服务,不让系统自己启动网络,在/etc/rc.local中加入如下内容: ifup lo /sbin/ifconfig eth0 hw ether ##:##:##:##:##:## ifup eth0 方法四: 在/etc/sysconfig/hwconf中的class: NETWORK部分加入如下内容: network.hwaddr: ##:##:##:##:##:## 方法五: 在/etc/network/interfaces中加入如下内容: hwaddress ether ##:##:##:##:##:##
我心无畏,源自于我心无知。
-
- 帖子: 15
- 注册时间: 2005-07-19 12:15
- firehare
- 帖子: 2625
- 注册时间: 2005-04-10 16:54
- 来自: 温州大学
- 联系: