Objective:
I used to use the bridge mode configuration, the IP address can be ping, the gateway how all ping does not pass. We might as well switch to a way to change the bridging mode to NAT mode.
(1) Modify the Linux virtual Machine network adapter mode to NAT mode
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M02/9E/81/wKioL1mSoJ2CVwKNAABtMs_4sa8027.jpg-wh_500x0-wm_ 3-wmp_4-s_1214664546.jpg "title=" 1.jpg "alt=" Wkiol1msoj2cvwknaabtms_4sa8027.jpg-wh_50 "/>
(2) Modifying the virtual network editor
View DHCP settings, 192.168.31.128---192.168.31.254
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M01/9E/92/wKiom1mSoS-Rp3GvAACz_rQrH_8978.jpg-wh_500x0-wm_ 3-wmp_4-s_2878287739.jpg "title=" 2.jpg "alt=" Wkiom1msos-rp3gvaacz_rqrh_8978.jpg-wh_50 "/>
(3) Modify the NIC configuration file for Linux
Bootproto=dhcp
ipaddr=192.168.31.129
netmask=255.255.255.0
gatway=192.168.31.1
(4) Restart the network card
Service Network restart
Resolves an issue where Linux virtual machines cannot ping gateways in Vmare workstation