Home>Article>Operation and Maintenance> What should I do if I can’t find the network card under centos?

What should I do if I can’t find the network card under centos?

Mary-Kate Olsen
Mary-Kate Olsen Original
2020-03-31 11:18:15 5344browse

What should I do if I can’t find the network card under centos?

Problem:

The network card cannot be found after centos is installed on the virtual machine.

Environment:

1. Virtual machine: virtual Box

2. System: centOS 6.5

(Recommended tutorial:centos tutorial)

Solution:

1. Select bridge mode on the virtual machine

What should I do if I can’t find the network card under centos?

2. Find the network card configuration file

#cd /etc/sysconfig/network-scripts/ #ls

3. Edit ifcfg-eth0

#vim ifcfg-eth0

What should I do if I can’t find the network card under centos?

4. Set onboot=yes for startup

5. After modifying and saving, restart network service

#service network restart

What should I do if I can’t find the network card under centos?

Recommended related video tutorials:linux video tutorial

The above is the detailed content of What should I do if I can’t find the network card under centos?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn