CodePudding user response:
Is not no net, is cannot resolve the domain nameCheck the IP address of the Linux, you most is not get IP
DHCPCD automatically obtain IP can be used
CodePudding user response:
The network configuration problemsManually configure the IP address of the static
Also is to manually configure the IP address, subnet mask, gateway and DNS,
Set the method is as follows:
Vi/etc/sysconfig/network - scripts/ifcfg - eth0
Edit the local network adapter configuration file
Mainly to see whether the following a few is the same as given below,
ONBOOT=yes
BOOTPROTO=none
IPADDR=192.168.1.66
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS1=192.168.1.1
Said the second does not use DHCP service, if is manually configure a static IP address, BOOTPROTO value to none or static,
Said the third set the IP address,
The fourth said set subnet mask,
Item 5 said set gateway,
Sixth said setting the preferred DNS server, DNS actually has its own configuration file/etc/resolv. Conf, set up DNS, here it is written into the DNS configuration file/etc/resolv. Conf.
Restart the network service,
CodePudding user response:
The original link https://blog.csdn.net/weixin_33971205/article/details/94694567CodePudding user response:
Ping an IP address can see ping no, that is the problem of DNS, cannot go to reset the gateway and IP addressCodePudding user response:
Manually configure the IP address of the staticVi/etc/sysconfig/network - scripts/ifcfg - eth0
Confirm BOOTPROTO=none
Save the restart
If can not see the virtual machine network adapter Settings