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.
Bridged network connection under CentOS 7 virtual machine
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326393268&siteId=291194637
Ranking