Bridged network connection under CentOS 7 virtual machine

Obtaining an IP address automatically The

virtual machine uses the bridge mode, which is equivalent to connecting to the network of the physical machine. The network of the physical machine has a DHCP server to automatically assign an IP address.

#dhclient automatically obtains the ip address Command

#ifconfig Query the network card information in the system. After the ip address and MAC address are

assigned to the ip address, use the physical machine to ping the ip address to check whether the ping is successful.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326279205&siteId=291194637