Home > OS >  My virtual machine he not connected!! For big solutions
My virtual machine he not connected!! For big solutions

Time:11-15

The following diagram, clearly all green, just don't give me connected to the Internet, can set the view, the native network IP also confirmed several times, just don't know what went wrong!!!!!!

CodePudding user response:

Is not no net, is cannot resolve the domain name

Check 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 problems
Manually 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/94694567

CodePudding user response:

Ping an IP address can see ping no, that is the problem of DNS, cannot go to reset the gateway and IP address

CodePudding user response:

Manually configure the IP address of the static
Vi/etc/sysconfig/network - scripts/ifcfg - eth0
Confirm BOOTPROTO=none
Save the restart
If can not see the virtual machine network adapter Settings
  • Related