Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The solution of not finding Network Card eth0 in CentOS system

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

The physical network card here refers to the actual network interface equipment on the server, here I have two network cards on the server, and the two physical network cards seen in the system correspond to the two network interfaces of eth0 and eth1 respectively.

Recently, after installing CentOS with VMware, when configuring IP with ifconfig, I found that the network card eth0 was missing.

1. Use the command: ifconfig eth0 up starts the network card, but the IP address, subnet mask and gateway are all wrong.

You can change it using the following command:

Ifconfig eth0 10.0.13.24 netmask 255.255.255.0 gateway 10.0.13.1

If the network connection uses bridging, you can continue to configure the network eth0.

2. Modify the / etc/sysconfig/network-scripts/ifcfg-eth0 file as follows:

DEVICE=eth0 / / device name ONBOOT=yes / / activate the device yes or noBOOTPROTO=static / / static or dhcpIPADDR=10.0.13.24 / / IP address NETMASK=255.255.255.0 / / subnet mask GATEWAY=10.0.13.1 / / gateway HWADDR=00:0C:29:96:38:F8 / / MAC address at system startup

3. Use the command: service network restart to restart the network service

The above is the details of the linux virtual machine can not find the network card eth0, please pay attention to other related articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report