mandriva下如何改网卡MAC?
时间:2008-05-08
来源:互联网
因为学校对IP和MAC进行了绑定,所以我得把网卡的MAC改成已注册的那个MAC才能通过上网验证。
刚接触LINUX,不知道怎么改,有知道的朋友帮一下忙。
**********************
网上有说:
修改Linux系统里相关rc.local文件MAC值.
可以通过改启动脚本/etc/rc.d/rc.local:
ifconfig eth0 down
ifconfig eth0 hw ether xxxxxxxxxxxx
ifconfig eth0 up
/sbin/route add default gw x.x.x.x eth0
:wq 保存退出
reboot
************************
可是mandriva是一进去就是图形界面的,知道怎么实施这个方法或者知道其它方法的朋友告诉一下我,
先谢谢了。
作者: 89490558 发布时间: 2008-05-08
作者: ayo 发布时间: 2008-05-08
作者: ayo
用控制台或者用kwrite直接打开/etc/rc.d/rc.local文件修改
|
谢谢!
作者: 89490558 发布时间: 2008-05-09
作者: 89490558
我找到那个文件修改,提示没有权限,再请教一下,我是不是该先用chmod命令改一下权限?那个命令在哪运行?
谢谢! |
作者: chanshun8 发布时间: 2008-05-09
K控制台-su-输入root密码
ifconfig eth1 down (我的以太网卡是eth1)
ifconfig eth1 hw ether xxxxxxxxxxxx 提示“设备或资源忙”
这样是不是上一个停用网卡的命令没执行成功啊?试了几次了,都是这样,但我执行了ifconfig eth1 down后右下角的网络图标马上提示断开且示配置……的,似乎是停用成功的。
这该怎么解决啊?和我机子上还有一个无线网卡(即eth0有关吗?)
这是我怀疑和eth0有关,然后做的:
[chen@localhost ~]$ su
口令:
[root@localhost chen]# /sbin/ifconfig eth1 down
[root@localhost chen]# /sbin/ifconfig eth1 hw ether 00:1b:38:04:41:ad
SIOCSIFHWADDR: 设备或资源忙
[root@localhost chen]# /sbin/ifconfig eth1 down
[root@localhost chen]# ifdown eth1
[root@localhost chen]# /sbin/ifconfig eth1 hw ether 00:1b:38:04:41:ad
SIOCSIFHWADDR: 设备或资源忙
[root@localhost chen]# ifup eth1
[root@localhost chen]# ifdown eth1
[root@localhost chen]# ifdown eth0
usage: ifdown <device name> **************************************** ifdown eth0时,出错
[root@localhost chen]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:15:F2:00:00:00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:11 Base address:0x8000 ************************************ 但ifconfig eth0又可以看到它的
[root@localhost chen]# ifconfig eth0 down *********************************** 但ifconfig eth0 down 似乎可以成功执行
[root@localhost chen]# ifconfig eth1 down
[root@localhost chen]# /sbin/ifconfig eth1 hw ether 00:1b:38:04:41:ad
SIOCSIFHWADDR: 设备或资源忙
[root@localhost chen]# ifconfig eth0 up
SIOCSIFFLAGS: 没有那个文件或目录 *********************************** 但ifconfig eth0 up 又出错了
[root@localhost chen]# ifup eth0
/sbin/ifup: configuration for eth0 not found.
Usage: ifup <device name> *********************************** 但ifup eth0 也错误
[root@localhost chen]# ifup eth1
[root@localhost chen]#
作者: 89490558 发布时间: 2008-05-09
论坛旧帖子里好像也有说明的
作者: struq 发布时间: 2008-05-10
作者: y126578 发布时间: 2008-05-21
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28