Home > OS >  How to configure the network virtual machine
How to configure the network virtual machine

Time:09-16

CentOS - 8 - x86 64-1905 - dvd1. Iso how to configure the network, the trouble under the guidance of predecessors, please

CodePudding user response:

Win on the virtual machine? The vm?

CodePudding user response:

# vi/etc/sysconfig/network - scripts/ifcfg - eth0
It is ok to lose in the parameters,

CodePudding user response:

Vim/etc/sysconfig/network - scripts/ifcfg - eth0
TYPE="Ethernet"
PROXY_METHOD="none"
BROWSER_ONLY="no"
BOOTPROTO="static"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
IPV6_ADDR_GEN_MODE="stable - privacy"
NAME="eth0
"DEVICE="eth0"
ONBOOT="yes"
IPADDR="192.168.1.24
"The PREFIX="24"
GATEWAY="192.168.1.1"
NETMASK=255.255.255.0
DNS1="114.114.114.114"
IPV6_PRIVACY="no"
ZONE=public

CodePudding user response:

Three kinds of connection mode of virtual machines, this a few points method is in the setup interface, rather than a configuration interface using, remember remember!
Method one: put your virtual network adapter VMnet8 set to automatically obtain IP, automatically obtain DNS server, enable,
Method 2: bring your virtual machine operating system of the "local connection" is set to automatically obtain IP, automatically receive the DNS server (in a virtual machine, right click "local connection" - double-click the "Internet protocol", and see if it is automatic!!!! Fixed IP also change here!)
Method 3: right you want to set up virtual pause "Settings" (because some of the more than one), select "Ethernet" in the "hardware", will be on the right side of the network connection to the NAT - sure,
Methods: four points in the "edit" in the menu bar - choose "virtual network Settings", "automatic bridge" to first be removed (cut off the hook hook), choose "DHCP" open DHCP services, "start" - application, again by the same method to open "NAT" function,

CodePudding user response:

Learning, thank you
  • Related