VMware in the CentOS network setup

Source: Internet
Author: User

VMware in the CentOS network setup

Bottom :
The laptop has two network cards:
1. Network card connected to the company intranet, only configured the intranet IP and subnet mask.
2. Wireless card. Connect the 4g wireless router. DHCP is configured on its own initiative.


Questions :
CentOS cannot connect to the extranet after installing CentOS5.6 in VMware.
How to resolve :
1. In VMware, select CentOS, right-click Virtual machine settings, select Network adapter, select Bridge Mode, check the replication physical network connection status.
2. In the top left corner of VMware, select Edit--Virtual network editor, select VMnet0, vmnet information below. Shang mode, and then the drop-down box is bridged to select Wireless. That is, the wireless network card connected to the external network, determine
3. Edit the CentOS network configuration:
vim /etc/sysconfig/network-scripts/ifcfg-eth0.
Content is

    DEVICE=eth0    HWADDR=虚拟网卡地址,不用改    ONBOOT=yes    BOOTPROTO=static    USERCTL=yes    PEERDNS=yes    IPV6INIT=no    NM_CONTROLLED=yes    TYPE=Ethernet    NETMASK=255.255.255.0    IPADDR=192.168.0.44     //这里要设置跟路由器lan在同一网段    GATEWAY=192.168.0.1  // 这里设置路由器地址

4. Restart Network SERVICE Command

Service Network restart

5. Ping Www.baidu.com has been able to

Copyright notice: This article Bo Master original articles, blogs, without consent may not be reproduced.

VMware in the CentOS network setup

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.