With the ifconfig command, only lo, there is no eth0 solution

Source: Internet
Author: User

Transfer from http://www.imooc.com/course/qadetail/qid/59155?page=2

Problem Description: Enter the Ifconfig command in the video, display the eth0 and lo, but you do not get the result in the virtual machine, but only lo, that is, the network card is not started, there is no IP, unable to connect remotely with Xshell.

Solution:

1. Enter the/etc/sysconfig/network-scripts directory and find that there is a ifcfg-eth0, that is, the network card (driver) is present but not enabled.

2. Enter the IFCONFIG-A command to display the eth0 and lo.

3. Enter ifconfig eth0 up to enable the NIC. With Ifconfig, you can only see the address of the Inet6 (IPv6?), without the inet address (that is, the IP of the Xshell connection input).

4. Modify the/etc/sysconfig/network-scripts/ifcfg-eth0 file to change the Onboot=no to Onboot=yes, but the results of ifconfig have not changed. (Omitting this step does not know whether it is valid)

5. Service network restart, restart. The shutdown eth0 ok,bring up eth0 ok,determine IP for eth0 OK appears.

6. Enter Ifconfig, and the inet address of the eth0 appears. Successful connection with Xshell.

PS: Supplemental video, Setup from Xshell and set IP, but if not set IP Xshell How to connect to the virtual machine ... Please ask the teacher and your classmates to answer. If you follow this step to do success or failure, please also bask in the following, we discuss together!

With the ifconfig command, only lo, there is no eth0 solution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.