centos6.9虚拟机识别不了新网卡

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos6.9虚拟机识别不了新网卡相关的知识,希望对你有一定的参考价值。

1、ifconfig看不到新网卡: [[email protected] ~]# ifconfig  eth0      Link encap:Ethernet  HWaddr 00:0C:29:38:DD:03             inet addr:192.168.1.107  Bcast:192.168.1.255  Mask:255.255.255.0           inet6 addr: fe80::20c:29ff:fe38:dd03/64 Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:1199 errors:0 dropped:0 overruns:0 frame:0           TX packets:252 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:125240 (122.3 KiB)  TX bytes:42908 (41.9 KiB) lo        Link encap:Local Loopback             inet addr:127.0.0.1  Mask:255.0.0.0           inet6 addr: ::1/128 Scope:Host           UP LOOPBACK RUNNING  MTU:65536  Metric:1           RX packets:45 errors:0 dropped:0 overruns:0 frame:0           TX packets:45 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:0            RX bytes:5945 (5.8 KiB)  TX bytes:5945 (5.8 KiB) 2、ip addr可以看到新网卡eth1,记录mac地址:           [[email protected] ~]# ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN      link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00     inet 127.0.0.1/8 scope host lo     inet6 ::1/128 scope host         valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000     link/ether 00:0c:29:38:dd:03 brd ff:ff:ff:ff:ff:ff     inet 192.168.1.107/24 brd 192.168.1.255 scope global eth0     inet6 fe80::20c:29ff:fe38:dd03/64 scope link         valid_lft forever preferred_lft forever 3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000     link/ether 00:0c:29:38:dd:0d brd ff:ff:ff:ff:ff:ff 3、拷贝eth0配置文件威eth1,并且更改mac地址、IP地址等: [[email protected] ~]# cd /etc/sysconfig/network-scripts/ [[email protected] network-scripts]# cp ifcfg-eth0 ifcfg-eth1 [[email protected] network-scripts]# vi ifcfg-eth ifcfg-eth0  ifcfg-eth1   [[email protected] network-scripts]# vi ifcfg-eth1 DEVICE="eth1" BOOTPROTO="static" BROADCAST="192.168.136.255" HWADDR="00:0c:29:38:dd:0d" IPADDR="192.168.136.7" IPV6INIT="yes" IPV6_AUTOCONF="yes" NETMASK="255.255.255.0" NM_CONTROLLED="yes" ONBOOT="yes" TYPE="Ethernet" 4、重启网卡并用ifconfig进行验证。 [[email protected] network-scripts]# /etc/init.d/network restart 正在关闭接口 eth0:                                        [确定] 关闭环回接口:                                             [确定] 弹出环回接口:                                             [确定] 弹出界面 eth0: Determining if ip address 192.168.1.107 is already in use for device eth0...                                                            [确定] 弹出界面 eth1: Determining if ip address 192.168.136.7 is already in use for device eth1...                                                            [确定] [[email protected] network-scripts]# ifconfig  eth0      Link encap:Ethernet  HWaddr 00:0C:29:38:DD:03             inet addr:192.168.1.107  Bcast:192.168.1.255  Mask:255.255.255.0           inet6 addr: fe80::20c:29ff:fe38:dd03/64 Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:10873 errors:0 dropped:0 overruns:0 frame:0           TX packets:1983 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:1097307 (1.0 MiB)  TX bytes:328774 (321.0 KiB) eth1      Link encap:Ethernet  HWaddr 00:0C:29:38:DD:0D             inet addr:192.168.136.7  Bcast:192.168.136.255  Mask:255.255.255.0           inet6 addr: fe80::20c:29ff:fe38:dd0d/64 Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:12 errors:0 dropped:0 overruns:0 frame:0           TX packets:12 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:720 (720.0 b)  TX bytes:828 (828.0 b) lo        Link encap:Local Loopback             inet addr:127.0.0.1  Mask:255.0.0.0           inet6 addr: ::1/128 Scope:Host           UP LOOPBACK RUNNING  MTU:65536  Metric:1           RX packets:155 errors:0 dropped:0 overruns:0 frame:0           TX packets:155 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:0            RX bytes:43225 (42.2 KiB)  TX bytes:43225 (42.2 KiB)


以上是关于centos6.9虚拟机识别不了新网卡的主要内容,如果未能解决你的问题,请参考以下文章

vmware克隆Centos6.9虚拟机网卡无法启动问题

Hyper-V新建虚拟机中网卡无法识别

centos6.9 网络配置,防火墙,复制虚拟机20180127

请问一下,我才买了一个usb无线网卡,在虚拟机里连接了,但kali linux发现不了,该怎么办才

电脑中虚拟机如何删除不了怎么办

kali linux 虚拟机不识别本机无线网卡