CentOS Network settings in VMware

Source: Internet
Author: User

CentOS Network settings in VMware

background :
The laptop has two network cards:
1. Wired Network card Connection company intranet, only configure the intranet IP and subnet mask;
2. Wireless card, connect 4g wireless router, DHCP automatic configuration.
Questions :
CentOS cannot connect to the extranet after installing CentOS5.6 in VMware.
Solution :
1. Select CentOS in VMware, right-click Virtual machine settings, select Network adapter, select Bridge Mode, check the status of replication physical network connection;
2. VMware left top corner menu select Edit, virtual network editor, check VMnet0, the following vmnet information, check the bridge mode, and then the drop-down box to bridge to select Wireless, which is connected to the external network wireless network card, 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 is ready.

CentOS Network settings in VMware

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.