After VMware virtual machine, connect not to the Internet, through the ifconfig command, view the results:
Then, I want to try to ping the local physical machine address in the virtual machine, the result.
Summing up, there are 4 main steps:
1. Use chkconfig iptables off to shut down the Linux system firewall and make sure Windows Firewall shuts down as well.
2. Change the default NAT link mode in the network option to "Bridge link".
3.root User Login, modify the network configuration file, the command is as follows
[Email protected] ~]# Vi/etc/sysconfig/network-scripts/ifcfg-eth0
Then, you can see the "Ethernet Adapter VMware Network Adapter VMnet8:" IP Address "192.168.139.1" in window via cmd > ipconfig
Modify the configuration file according to the IP address, and the red part is the modified content.
DEVICE="Eth0" Bootproto="Static"Statically set IP, configure broadcast below=192.168.253.255Broadcast Address*ipaddr=192.168.139.1*IP address, manually specified, avoids each dynamic allocation of NETMASK=255.255.255.0Subnet Mask Network=192.168.253 .0 //network number *gateway =172.18.8 .254* //Gateway HWADDR = "00:0c:29:8d:07:8e" Nm_controlled= "yes" Onboot= "yes" //system starts, automatically starts the NIC type= "Ethernet" Uuid= "73869271- Edc7-45a1-bbc7-1691af066ae2 "
4, after the completion of the modification, we must remember, there is a step, restart the service!
[Email protected] ~]# service network restart
After a successful reboot, the test effect
Test results, using Ifconfig view, as shown in the successful display of the Internet address:
Ok
Connect to the network using a bridge connection in VMware