『One』How to solve the problem that the eth0 network card cannot be found after redhat9 is installed
ifconfig -a to see if there is any
Use lspci to see if the ethernet card device can be found
If you can’t see ifconfig, but there are devices in lspci, it means that there is no driver. Redhat 9 is too old to recognize the network card. It is normal.
『Ⅱ』 The RedHat network on the virtual machine is blocked. , eth0 has no ip
The network of the virtual machine adopts the Bridged (bridged) method. At first, I thought that it was because some network cards on the machine were not connected with cables, and VMWare happened to use the network card. After a few hours , by disabling the unconnected network card, and mapping VMWare’s VM0 to other connected network cards, did not solve the problem.
I installed redhatlinux9.0 in the VM virtual machine and prepared to share files with the host, but the network was blocked!
Unable to activate, always prompt after entering ifup eth0:
Dertermining IP information for eth0….failed – no link present check cable
Solution:
in /etc/ Add the following script to sysconfig/network-scripts/ifcfg-eth0
:
check_link_down() {
return 1;
}
Specific operation:
[ [email protected] root]# cd /etc/sysconfig/network-scripts/
[[email protected] network-scripts]# vi ifcfg-eth0
# Please read /usr/share/doc/initscripts -*/sysconfig.txt
# for the documentation of these parameters.
ONBOOT=yes
USERCTL=no
PEERDNS=yes
TYPE=Ethernet
DEVICE=eth0
HWADDR=00:0c:29:64:c2:5f #You can not add it here, it depends on your machine (it is recommended not to add it first)
BOOTPROTO=dhcp
# The following is the added part, the specific operation method: first press a, insert the following text after the cursor, and finally: wq save and exit (or edit with Gedit)
check_link_down(){
return 1;
}
Next, restart the network (if restarting the network doesn’t work, restart the system!)
[[email protected] network-scripts]# ifup eth0
Determining IP information for eth0… done.
Well, see the above prompt that it has been successful, you can use ifconfig to check whether you have obtained a valid IP.
『Three』 My newly installed redhat 6.2 system ifconfig checks that the network card has lo and eth1, but there is no eth0 that I want, start the network card eth0 and report an error without equipment
Check if there is an ifcfg-eth0 file in the /etc/sysconfig/network-scripts/
directory. If so, open it and change ONBOOT=no to ONBOOT=yes
『4』 How to solve the problem The indicator light will flash, so you can quickly determine the location of the eth0 network port (press Ctrl+C to end the command, stop flashing)
Also determine eth1, eth2. . .
“Wu” Redhat Linux5.1 server, start eth0 will crash.
Have you checked /var/log/messages* for anything unusual, especially related to the network, this is very important.
/etc/hosts file, usually should be:
127.0.0.1 localhost
This line should not be less.
『Lu』 I installed redhat 9 on a virtual machine and cannot start eth0
It may be a problem with the network card settings, do not set up a bridge, set up NAT or communicate with the host Public network card
『柒』 linux 7 red hat what to do if there is no eth0
1. Go to the /etc/sysconfig/network-scripts directory to see ifcfg-eth* , there are several
2. If there is no ifcfg-eth0, but there is ifcfg-eth0.bak, rename it with mv,
3. Execute service network restart on the machine, does it look like it?
4./etc/rc.d/init.d/kudzu start restart the network card
『渌』What do eth0 and eth1 do in linux configuration
eth0 and eth1 are network card devices.
It’s just a name that doesn’t need to be tangled. It’s not a normal network card or a wireless network card who said that he doesn’t understand anything.
Usually the server will have multiple network cards, so there are names like eth0
eth1
eth2
, and in some systems the wireless network card will be named as wlan0
wlan1. . . .
Specifically, you can look under the directory etc/sysconfig/network-scripts,
ifcfg-eth0 represents the configuration of eth0, you change the file to eth1, and modify the content of the file,
That’s eth1. .
Of course, this configuration method is not applicable to all linux systems, but it is applicable to RHEL.
『玖』 Redhat linux prompts the following interface when starting up, after entering the system,Check the network connection, eth0 is followed by the word never, and it has been unable to connect to the Internet.
Is it a failure after a long time? It should be that you set eth0 to dhcp to obtain ip, and your network There is no dhcp server in it, so it will take a long time to pass, and see if the dhcp and nat services in vmware are started in the service
You can also set it to manual
DEVICE=eth0 #Describe the network card The corresponding device alias, for example, in the file ifcfg-eth0, it is eth0
BOOTPROTO=static #Set the way the network card obtains the ip address. The possible options are static, dhcp or bootp, which correspond to the statically specified ip address respectively. The ip address obtained by the dhcp protocol and the ip address obtained by the bootp protocol
BROADCAST=192.168.0.255 #corresponding subnet broadcast address
HWADDR=00:07:E9:05:E8:B4 #corresponding The physical address of the network card
IPADDR=12.168.1.2 #If the method of setting the network card to obtain the ip address is statically specified, this field specifies the ip address corresponding to the network card
IPV6INIT=no
IPV6_AUTOCONF=no
NETMASK=255.255.255.0 #Network mask corresponding to the network card
NETWORK=192.168.1.0 #Network address corresponding to the network card
ONBOOT=yes #Whether to set this network interface when the system starts, set to yes When the system starts, activate this device when the system starts
“pick” redhat system how to rename the eth0 displayed by the ifconfig command to front1 which files need to be modified
vim/etc/udev/rules.d/70-persistent-net.rules
Rename eth0 to front1 and restart the system
0
Comments (No)