前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >VirtualBox-复制虚拟机-重置网卡

VirtualBox-复制虚拟机-重置网卡

作者头像
用户1212940
发布2022-04-13 15:39:39
9130
发布2022-04-13 15:39:39
举报
文章被收录于专栏:Lambda

情况说明

改网卡名

改拥有新虚拟机MAC地址的网卡名称为eth0; 注释掉原eth0;

代码语言:javascript
复制
[root@lebron ~]# vim /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# PCI device 0x8086:0x100e (e1000)
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:1c:68:04", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x8086:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:ee:4b:73", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

# PCI device 0x8086:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:6c:8b:62", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

改eth0的MAC地址

代码语言:javascript
复制
[root@lebron ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=08:00:27:6C:8b:62
TYPE=Ethernet
UUID=1e3c54ec-0df1-42f7-a577-6a18be5a839e
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=dhcp
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2018/11/07 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 情况说明
  • 改网卡名
    • 改eth0的MAC地址
    领券
    问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档