recently, there are too many things in my life, I have been wanting to learn Linux operating system well, but I have no time.
last night, ready to configure the FTP server, the results found that the virtual machine and the local network connection is not connected, baidu online once, the problem was quickly solved, so will solve the problem to share out.
> strong>
1, use ifconfig command to check the RedHat network device (network interface card), found that eth0 network card did not start.
2. So I use the ifup eth0 command to enable the network interface eth0, and I realize that I cannot start today. failed; no link present. Check cable?”
solution:
1. The connection mode between the virtual machine and the machine is: host-only mode. I will not introduce the differences between several connection modes. If the previous connection was not host-only, the virtual machine will need to be restarted after the change.
2. Start the two virtual network CARDS of the machine.
3. Add the following script in /etc/sysconfig/network-scripts/ifcfg-eth0:
check_link_down() {
return 1;
} p>
specific operation is as follows:
enter the following command:
[root@localhost root]# cd /etc/sysconfig/network-scripts/
[root@localhost network-scripts]# vi ifcfg-eth0
return 1;
check_link_down() {
return 1;
check_link_down() {
return 1;
check_link_down() {
return 1;
} p>
Next, restart the network (if it doesn’t work, restart the system!).
[root@localhost network-scripts]# ifup eth0
Determining IP information for eth0… done.
ok, see the above prompt indicates that it has been successful, you can check if you have got a valid IP by ifconfig.
Finally, check on the machine to see if you can PING the Linux operating system in the virtual machine
Read More:
- When ifconfig configures the network, “siocsifaddr: no such device” and “eth0: error while getting interface” appear flags:No such dev”
- Ethernet Cable vs. Telephone Cable: Which Is Your Option?
- Several ways to check the IP address of raspberry pie
- Ubuntu network configuration+Fixing “Failed to bring up eth0” in Ubuntu
- When the springcloud obtains the cloud link database information, an error is reported: errorcode 1045, state 28000
- Solution to restart without showing eth0 connection after installing virtual machine
- Solution summary of VMware network card without IP and failure to start network card (continuous update)
- VirtualBox + CentOS 7 virtual machine setting static IP address of host only NIC
- [solved] DNET: failed to open device eth5
- “DNET: failed to open device eth1” error resolution of nmap
- A new virtual machine cannot be connected to the network (error fetching interface information device not found),
- [solved] closingontransa ctionalSqlSessionorg.apache.ibatis . session.defaults.DefaultSqlSession @20] No information after that.
- IP address cannot be viewed through ifconfig in virtual machine
- Error:Connection activation Failed: no suitable device found for this connection solution
- JDBC connect to Sql Server to connect to the database–The TCP/IP connection to the host localhost, port 1433 has failed
- [Solved] error: link.exe‘ failed with exit status 1158
- PHP link database error PHP_ network_ getaddresses: getaddrinfo failed: Name or service not known
- [Solved] spacy Install Error: AttributeError: type object ‘_CleanResult‘ has no attribute ‘from_link‘
- Solve the problem of illegalargumentexception: at least one JPA metadata must be present
- Information contained in Debug Assertion Failed of Microsoft Visual C++ Runtime Library