Welcome 微信登录

首页 / 操作系统 / Linux / Linux下MAC地址

本文主要介绍下修改MAC地址的方法。
#1,查看当前MAC地址,并且备份查看当前MAC地址:ifconfig | grep HWaddroutput:eth0 Link encap:Ethernet HWaddr 00:19:48:2E:D1:200:19:48:2E:D1:2即是你的MAC地址,将其复制到一个文件中保存。

#2,以root权限修改MAC地址:禁用eth0ifdown eth0修改MAC地址为00:E0:81:5C:B4:0Fifconfig eth0 hw ether 00:E0:81:5C:B4:0F生效修改:ifconfig eth0 | grep HWaddr提示,上述修改MAC地址只是暂时的。一旦重启,系统会恢复原物理MAC地址。
How to change MAC address in Fedora
1. First step is to find the current MAC address and take a backup copy in a safe place.To know your current MAC type:
$ ifconfig | grep HWaddr
eth0 Link encap:Ethernet HWaddr 00:19:48:2E:D1:27The above hexadecimal numbers 00:19:48:2E:D1:27 is your MAC address for device eth0.
Simply copy and paste it in a file.2. Now, time to change the MAC address this requires you to work as root user.
Take the network interface down
# ifdown eth0Now, lets change the current MAC address to 00:E0:81:5C:B4:0F
# ifconfig eth0 hw ether 00:E0:81:5C:B4:0FTake the network interface up again
# ifconfig eth0 upCheck if your MAC address is changed:
# ifconfig eth0 | grep HWaddrNote:
Changing MAC address is only temporary. Once you reboot your machine, the operating system will reflect the physical MAC address burnt in your network card and not the MAC address you set. 关于HP 388G7安装Vmware 4.1.0后报错的问题Cool Dock for Gnome shell: Unity 2D Launcher相关资讯      Linux教程 
  • Linux教程:如何在命令行中查看目  (07/28/2014 12:22:23)
  • Linux 修改root密码  (11/03/2012 07:53:38)
  • su - root 与su root的区别  (06/06/2012 00:39:40)
  • Linux进程间通信:消息队列  (01/28/2013 09:43:00)
  • U盘安装Linux开机无法启动解决方法  (10/07/2012 08:55:52)
  • Windows 7/Linux 同步时间  (05/15/2012 06:17:55)
本文评论 查看全部评论 (0)
表情: 姓名: 字数