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