莱因电博

Li-e.cn

Li Internet Electronic Blog
@rss

Linux 系统修改网卡MAC地址

Modifying MAC addresses of network adapters in Linux systems

————————————————————

1. Linux 修改MAC地址

## 禁用eth0网卡
ifconfig eth0 down

## 修改MAC地址为 00:LE:EE:00:00:16
ifconfig eth0 hw ether 00:LE:EE:00:00:16 

## 启用eth0网卡
ifconfig eth0 down

2. 永久(软)修改

## 编辑文件
vim /etc/init.d/rc.local
(C) 2019 - 2024 Li-e.cn莱因电博(立网电子博客) | Powered by Vercel , based on Hugo with Gists theme.