LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 665|回复: 2

如何修改网卡的MAC

[复制链接]
发表于 2004-9-18 09:49:41 | 显示全部楼层 |阅读模式
宿舍拉宽带,每跟线按照网卡的MAC分配一个IP,不是这个网卡是上不了网的,也就是MAC与IP,要对应,

我在WINDOWS下,用一个修改MAC的软件,把我的网卡地址修成别人的地址,在dos下ipconfig /all显示为修改后的MAC,用他的网线,可以上网,

但是在我的linux下面,也这样,不知道在哪里改,请教高手,我用的系统是redhat AS3U2
发表于 2004-9-18 12:19:00 | 显示全部楼层
我自己看ifconfig 的帮助做的,不知道对不对哈
[root@Key root]# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:0A:E6:0C:6A:3E
          inet addr:192.168.0.185  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10544 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9776 errors:0 dropped:0 overruns:0 carrier:0
          collisions:2723 txqueuelen:100
          RX bytes:8895626 (8.4 Mb)  TX bytes:1501994 (1.4 Mb)
          Interrupt:11 Base address:0x6000

[root@Key root]# ifconfig eth0 down
[root@Key root]# ifconfig eth0 hw ether 010101010101
[root@Key root]# ifconfig eth0 up
[root@Key root]# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 01:01:01:01:01:01
          inet addr:192.168.0.185  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10544 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9776 errors:0 dropped:0 overruns:0 carrier:0
          collisions:2723 txqueuelen:100
          RX bytes:8895626 (8.4 Mb)  TX bytes:1501994 (1.4 Mb)
          Interrupt:11 Base address:0x6000

[root@Key root]#
 楼主| 发表于 2004-9-18 13:51:37 | 显示全部楼层
修改成功,多谢了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表