virutalbox 中 centos 或 ubuntu 找不到网卡的解决办法
来源:互联网 发布:政委 知乎 编辑:程序博客网 时间:2024/05/13 06:08
如果你把虚拟机文件从别的地方copy过来,很可能会找不到网卡。
原因是网卡的mac 地址发生了变化。
1、查看virtualbox分配的网卡mac
如上图红线的位置。
2、如何察看本机的网卡信息 ?
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:08:53:80",ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
其中 ATTR{address}=="08:00:27:08:53:80", 就是自己机器上配置的网卡信息,可能会有多个网卡。
这个时候,我们可以调整 NAME 后的网卡的名字,比如更改成 eth1
把virtualbox分配的地址按照格式写好。
然后保存推出。
3、找出网卡IP配置。
vim /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
HWADDR="08:00:27:08:53:80"
NM_CONTROLLED="yes"
ONBOOT="yes"
BOOTPROTO=dhcp
把 HWADDR 更改为刚才那个mac地址。
4、重启网卡
service network restart
这个时候,我们会发现网卡找到了,并且按照你的方式分配了IP。
- virutalbox 中 centos 或 ubuntu 找不到网卡的解决办法
- Ubuntu下网卡找不到的解决办法
- wireshark在ubuntu下找不到网卡的解决办法
- wireshark在ubuntu下找不到网卡的解决办法
- wireshark找不到网卡的解决办法
- wireshark 找不到网卡的解决办法
- Wireshark找不到网卡解决办法
- VirutalBox 下安装 CentOS
- VirtualBox虚拟机Ubuntu找不到网卡的解决方法
- 64位Ubuntu中找不到arm-linux-gcc的解决办法
- centOS中找不到ifcongfig命令解决办法
- virutalbox 无线网卡桥接
- ubuntu拔插网线或usb网卡导致dns服务丢失的解决办法
- Ubuntu双系统重装win7/8后找不到系统或进入grub命令行的解决办法
- CentOS 6.4 上找不到qmake的解决办法
- CentOs 找不到ifconfig 命令的解决办法
- CentOs 找不到ifconfig 命令的解决办法
- ubuntu 提示/etcfstab 中找不到iso 解决办法
- 编写好的代码的10条戒律
- 安卓NDK下读取文件
- Biorhythms
- linux下拷贝整个目录
- 对于成人英语培训你有哪些顾虑?
- virutalbox 中 centos 或 ubuntu 找不到网卡的解决办法
- Bitmap byte Drawable 相互转换
- WEB中文字体应用指南
- 破壁灵芝孢子粉是苦的吗
- ecshop 常见问题记录
- 源代码分析-构建调用图
- 改变activity默认的背景
- 整数解(2092)
- C++内联函数和宏定义