shell 纸一的运维终端 _ - 2025年1月
type: channel
link: https://type.paper1.cc/index.php/2025/01/
description: #系统错误：大脑空间不足 _
items: Linux中的网卡mac地址修改

Linux中的网卡mac地址修改
type: item
date: 2025-01-09T05:49:55+00:00
description: 一、RHEL系统编辑配置文件/etc/sysconfig/network-scripts/ifcfg-ens160添加mac地址MACADDR=b4:05:5d:e5:1f:de重启网卡ifdown ens160 && ifup ens160二、Ubuntu系统编辑配置文件vim /etc/netplan/00-installer-config.yaml配置mac地址# This is the network config written by 'subiquity' network: version: 2 ethernets: ens160: macaddress: 00:11:22:33:44:55 addresses: - 192.168.1.181/24 nameservers: addresses: - 223.5.5.5 search: [] routes: - to: default via: 192.168.1.254重启网卡netplan try