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)