Home > OS >  Physical machine installation centos7 only install the desktop can get IP address.
Physical machine installation centos7 only install the desktop can get IP address.

Time:09-26

Install virtual host the smallest without desktop centos7 system, we won't be able to check the IP address.
Online search methods are tried, such as: no to yes. Add MAC address, remove device rows cannot get IP address.
Want to ask next how to solve this
Error message:
Restarting the network (via systemctl) : the Job for the network. The service failed because the control process exited with the error code.
. See "systemctl status network service" and "journalctl - xe" for details. [failure]

CodePudding user response:

In a virtual machine with three network mode, only the host, the NAT, bridge, bridge, you can't obtain IP address automatically? NAT, can automatically access, also can configure themselves, their configuration, need to configure the IP address, gateway, DNS, etc., you can refer to the following configuration, and at the same time you configure the IP address, gateway, corresponding with the virtual machine Settings, for example, I use vmware, NAT network configuration in the edit - & gt; The virtual network editor - & gt; NAT


TYPE=Ethernet
BOOTPROTO=none
NAME=ens33
DEVICE=ens33
ONBOOT=yes
IPADDR=192.168.10.2
GATEWAY=192.168.10.254
The PREFIX=24
DNS1=8.8.8.8
DNS2=114.114.114.114

CodePudding user response:

reference 1st floor zhouchao6 response:
has three network model in the virtual machine, only the host, the NAT, bridge, bridge, you can't obtain IP address automatically? NAT, can automatically access, also can configure themselves, their configuration, need to configure the IP address, gateway, DNS, etc., you can refer to the following configuration, and at the same time you configure the IP address, gateway, corresponding with the virtual machine Settings, for example, I use vmware, NAT network configuration in the edit - & gt; The virtual network editor - & gt; NAT


TYPE=Ethernet
BOOTPROTO=none
NAME=ens33
DEVICE=ens33
ONBOOT=yes
IPADDR=192.168.10.2
GATEWAY=192.168.10.254
The PREFIX=24
DNS1=8.8.8.8
DNS2=114.114.114.114

Not on the virtual machine, in the notebook,

CodePudding user response:

refer to the second floor godrodman response:
Quote: refer to 1st floor zhouchao6 response:
has three network model in the virtual machine, only the host, the NAT, bridge, bridge, you can't obtain IP address automatically? NAT, can automatically access, also can configure themselves, their configuration, need to configure the IP address, gateway, DNS, etc., you can refer to the following configuration, and at the same time you configure the IP address, gateway, corresponding with the virtual machine Settings, for example, I use vmware, NAT network configuration in the edit - & gt; The virtual network editor - & gt; NAT


TYPE=Ethernet
BOOTPROTO=none
NAME=ens33
DEVICE=ens33
ONBOOT=yes
IPADDR=192.168.10.2
GATEWAY=192.168.10.254
The PREFIX=24
DNS1=8.8.8.8
DNS2=114.114.114.114

Not on the virtual machine, in the notebook,


It is simple, with reference to the above configuration, see your LAN IP address of the section, choose an IP, gateway is generally *. *. *. 1
  • Related