Linux怎样暂时修改IP地址及MAC地址

前言
调试需要

流程
(1)修改IP地址:eth0
ifconfig eth0 192.168.0.111

(2)修改MAC地址:暂时更改MAC地址为:00:AA:BB:CC:DD:EE
ifconfig eth0 down
ifconfig eth0 hw ether 00:AA:BB:CC:DD:EE
ifconfig eth0 up

以上。

posted @ 2020-08-04 18:00  小翁同学  阅读(432)  评论(0编辑  收藏  举报