# ifconfig
View the NIC information as shown in:
# ifconfig Eth0 192.168.0.107
Eth0 represents the first network card, all the set up in Linux is a file, so eth0 is the first NIC file name,
IP needs to be configured according to the IP of the computer, need to ensure that the same network segment in order to communicate, such as all in 192.168.0 this network segment
After the configuration and then look at the network card information will be more than one eth0 NIC.
After the IP is configured, ping the command prompt to check if it can ping
Note 1: You need to set up the network adapter for the virtual machine before configuring IP
Note 2: IP configured in this way will restore the settings after the system restarts and permanently modify the configuration in Linux to modify the configuration file directly.
Linux Configuration temporary IP address