Resolves an issue where Linux virtual machines cannot ping gateways in Vmare workstation

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.