How to view the IP address of a virtual machine and how to configure a static IP for a virtual machine

Source: Internet
Author: User

Steps:

1. Knock on the command line ifconfig (Note that this is ifconfig not ipconfig, at the beginning you have been mistaken) the following figure:


Through inet addr:192.168.0.17 is the current IP of your virtual machine

2. We generally in the LAN is through the DHCP protocol to send IP requests to the gateway, so the way to obtain the IP is dynamic, of course, you can on the virtual machine, the IP set to static, set the method as follows:

1 > enter setup at the command line (note that there is no space between setup, beginning to assume set up, so it has been wrong), after entering the following page will appear:


2> Selection: Network configuration----Device configuration----eth0 (This is the NIC, eth means ether)-----Press ENTER will appear after this page

You can complete the configuration of the IP of the virtual machine by configuring it here (using the parentheses in DHCP if you are writing *, which means you chose DHCP dynamic allocation)


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.