Linux virtual machine CENTOS64 bit _6.5+VM10 host is fixed IP LAN settings proxy Internet, virtual machine set fixed IP text detailed steps

Source: Internet
Author: User
Tags ping network

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

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.