eth1 does not show

(1) Command to check, why there is no network card eth0, or eth1, etc.

The solution to the eth0 device not found under CentOS
Problem description:

The ifconfig command cannot find the eth0 device, and there is only the ifcfg-lo file in /etc/sysconfig/network-scripts/, but no ifcfg-eth0.

Temporary solution 1:

Use the command ifconfig eth0 192.168.1.x to set the IP of eth0 normally. This method is only a temporary solution, and it will become invalid after the system restarts. .

Permanent solution 2:

1. Create a new ifcfg-eth0 file in the /etc/sysconfig/network-scripts/ directory;

2 , Correctly set DEVICE, BOOTPROTO, ONBOOT, IPADDR, GATEWAY, DNS1, DOMAIN, NETMASK, NETWORK, NAME, etc. of ifcfg-eth0, for example:

DEVICE=eth0

(2) For the wireless network card, why some display eth1 and some display wlan0?

In essence, it is just a mark.
In English, the ether means ether, which is Ethernet
wlan, which is Wireless LAN

(iii) HP desktop cannot read the corresponding eth1 Network card

First of all, it doesn’t matter if you find this configuration file. Check vi/etc/udev/rules.d/70-persistent-net.rules here to see your network card information, find The name of your corresponding network card such as SUBSYSTEM==”net”,ACTION==”add”,DRIVERS==”?*”,ATTR{address}==”00:0c:29:8f:89:97″,ATTR{ type}==”1″,KERNEL==”eth*”,NAME=”eth0″ Here the network card name is defined as eth0 and then vi/etc/sysconfig/network-sprict/ifcfg-eth0 create and edit the network card configuration file, name In fact, the random content DEVICE=eth0 corresponds to the name of the network card found above. This is the key. Others can be set according to the default settings. After the settings are completed, restart the service to recognize the use. Let me tell you one thing, in the VM, you After adding a network card, even if you use ifconfig-a, sometimes you can’t see any network card, but your network card does exist. . . .

㈣ linux eth1 devices cannot be enabled all the time

How many network cards do you want to use eth1?
Run ifconfig -a with root privileges and paste the output.

㈤ One server has two network cards ETH0 and ETH1. Using the same computer, PING ETH0 works normally, but PING ETH1 fails. How to solve the problem of ETH1 failure

You can check that the IPs of A and C must be 192.168.0.*, because A/C and ETH1 are not in the same network segment, so they cannot be pinged. If you want A/C to achieve file sharing, you can manually set the IP to 192.168 .2.*

(vi) The new network card added by the virtual machine linux does not find its configuration files eth1 and eth2

  1. old This version is called ethx
  2. The new version has been renamed
  3. You can use ip add to view the interface name
  4. I hope it can help you, please adopt

㈦ Run the ifconfig command under Linux but it does not display the information of eth0 but only displays the information of lo. What’s the matter?

Is the network card not activated?
#ifup
eth0 network service under restart#
service
network
start
If it doesn’t work#
dmesg
|grep
eth0/eth0 to see if the network card driver is installed.

㈧ The MAC address of the eth1 device is not as expected, ignore it, and use ifconfig to view the network card of eth1

eth1 hasn’t been started yet
You should see this
ifconfig -all
You can see all the network card devices
ifonfig eth1 up
Start eth1 and see Look

㈨ My linux uses ifconfig to display eth1, but there is no eth1 in network-scripts, only eth0. What is going on?

vi ifcfg-eth0 See if the dev in the configuration file is eth1.

㈩ The new network card added by the virtual machine linux does not find its configuration files eth1 and eth2.

First of all, it doesn’t matter if you find this configuration file, first check vi /etc/udev/rules.d/70-persistent-net.rules Here you can see your network card information, find The name of your corresponding network card; for example: SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR==”00:0c:29:8f:89:97″, ATTR== “1”, KERNEL==”eth*”, NAME=”eth0″ Here the network card name is defined as eth0; then vi /etc/sysconfig/network-sprict/ifcfg-eth0 create and edit the network card configuration file, the name is actually arbitrary. The content DEVICE=eth0 corresponds to the network card name found above. This is the key. Others can be set according to the default settings. After the settings are completed, restart the service to identify and use it. Let me tell you one thing. In the VM, you add If the network card is installed, even if you use ifconfig -a, you may not be able to view any network card sometimes, but yourThe �� card does exist. In addition, if you are interested, you can read “Linux should be learned like this” written by Mr. Liu Trent as an introductory book. If you think it is good, please accept it~

0

Related Ad

Comments (No)

Leave a Reply