About Linux Network configuration issues

Source: Internet
Author: User

Just contact with Linux, the network configuration problems get the head big. In retrospect, it was not so difficult as I had thought. Now share with you, hope to help you.

Just a little attention is OK. is the host (your PC) IP with the client (your virtual machine) IP address in the same network segment.

I'm using NAT mode. Ping on host to view host IP, ipconfig command in command window

Then just set the IP in the virtual machine is also within the 192.168.245.** this network segment is OK.

Red Hat users can setup commands directly in root user mode, Note: Ubuntu users do not have this command. Ubuntu can be modified directly in the configuration file.

Save exit. Of course, you can also directly in the configuration file changes, VI, ETC/SYSCONFIG/NETWORK-SCRIPTS/IFCFG-EH0

Finally restart the Network service is OK command for service network restart.

Both of these methods can permanently modify the IP. You can also use ifconfig eth0 192.168.245.12 the network 255.255.255.0 method, but this method is limited to temporary modifications. Reconfiguration is required after reboot.

Finally, Ping. Look, it's the Buddha who can ping the pass. Like this is OK!

The above is personal sharing, little girl, explanation is somewhat stretched, but hope to be like me as a beginner Linux students to provide a little help. Thank you!

About Linux Network configuration issues

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.