Solution to connecting centOS to a wireless LAN in VMWare

Source: Internet
Author: User

Solution to connecting centOS to a wireless LAN in VMWare

Yesterday, when I configured the centOS network under the virtual machine, because my host is connected to wifi, many tutorials only talk about how to configure the network of the virtual machine when the host has a fixed IP address, I saw a lot of solutions for connecting to wifi on the Internet and found that they were useless after one attempt. So I tried another method and recorded it here.

1. Configure the VM as a bridge

2. Enter setup in centOS to set the network to DHCP.

3. Enter vi/etc/sysconfig/network-scripts/ifcfg-eth0 under centOs to change ONBOOT = no to ONBOOT = yes, then save and exit (Press ESC first, then press: wq)

4. Enter service network restart in centOS to restart the network service.

After completing the preceding steps, you can view the ip address and other information of the VM through ifconfig, and ping the VM.

If the preceding steps do not work, add the following steps:

1. Choose Edit from VMWare> Virtual Network editor.

2. Then change the settings

3. Connect the VMNet0 bridge to your host's wireless network card, as shown in figure

4. After confirming, enter service network restart under centOS to restart the network service.

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.