A:
Virtual machine is a desktop installation
1. Virtual machine-Settings-Network adapter sub-option-select "Bridge mode"
2. Select System in Virtual machine-preferences (Preferences)-Network connection (Networking Connections)
3, if you click on the SYstem eth0 for editing, do not choose to add and then edit, select IPv4 settings (IPv4 Settings)-Add double-click to add
(Subnet mask, gateway, DNS are set to the same as the host, the IP address can be set to the same network segment), after the setup is complete, click Apply (Apply ...) )
4, set the proxy Internet and host agent settings to the same in the virtual machine select System-Preferences (Preferences)-Network proxy
Select manually configure a proxy server-use the same proxy for all protocols
Root user Login to set the following 3 files
VI Command Click I for editing, after editing, click Esc to exit the edit page: X to save,: q! do not save changes, vi entered the file # represents a comment
/etc/sysconfig/network
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/resolv.conf
To open a terminal in a virtual machine to set up
Vi/etc/sysconfig/network
Networking=yes
HOSTNAME=YOUYOUPC #安装虚机时起的名称
gateway=10.122.109.209 #网关
Vi/etc/sysconfig/network-scripts/ifcfg-eth0
Device=eth0
Type=ethernet
Uuid=742545a9-3777-42cf-9232-d777210683dc
Onboot=yes
Nm_controlled=yes
Bootproto=static
ipaddr=10.122.109.42 #ip
Prefix=22
gateway=10.122.109.209 #网关
dns1=10.33.176.66 #DNS
Defroute=yes
Ipv4_failure_fatal=yes
Ipv6init=no
Name= "System eth0"
hwaddr=00:0c:29:77:65:67
Vi/etc/resolv.conf
NameServer 10.33.176.66 #DNS
Can ping the host to test, I am ping network, you can open the URL to test whether the Internet
Linux virtual machine centos64 bit _6.5+VM10 host is fixed IP LAN settings proxy Internet, virtual machine set fixed IP text detailed steps