centos6.5 minimal in VMware uses NAT mode networking

Source: Internet
Author: User

Because most companies and schools now implement IP addresses and host MAC address bindings, if you use bridging mode to access virtual machines, you need to apply in advance. We can use NAT mode to surf the virtual machine in order to make it unnecessary to surf the web for a mere virtual machine. In addition to being unable to access other hosts within the LAN like bridging mode, NAT mode can meet most requirements. Here's how centos6.5 minimal uses NAT to surf the internet.

    1. Open the virtual machine, enter the account, password login system

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/8B/02/wKiom1hBF5mxyeWRAACE9JTI47U174.jpg-wh_500x0-wm_3 -wmp_4-s_4086852344.jpg "title=" 1.jpg "alt=" Wkiom1hbf5mxyewraace9jti47u174.jpg-wh_50 "/>

2. Click Virtual Machine, select settings, open the Virtual Machine Settings dialog box, under Hardware tab, click the network adapter item, and on the right, select Nat mode, OK.

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/8A/FE/wKioL1hBGJaTpFvYAADQ5eSsW1k132.jpg-wh_500x0-wm_3 -wmp_4-s_194353336.jpg "title=" 2.jpg "alt=" Wkiol1hbgjatpfvyaadq5essw1k132.jpg-wh_50 "/>

3. Modify the configuration file to start the boot. In the terminal input command, use the VI Editor to open the configuration file Ifcfg-eth0

# Vi/etc/sysconfig/network-scripts/ifcfg-eth0

Press "I" key to enter VI edit mode, modify the following content. After modifying, press "ESC" key to enter VI command mode, enter ": Wq" to save and exit.

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/8A/FE/wKioL1hBHL-y9JaFAACH37SQZqU763.jpg-wh_500x0-wm_3 -wmp_4-s_1832284696.jpg "title=" 4.jpg "alt=" Wkiol1hbhl-y9jafaach37sqzqu763.jpg-wh_50 "/>

4. Restart the Network service, enter the command

# Service Network Restart

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/8A/FE/wKioL1hBHS2BssNGAACWrtZgw3A909.jpg-wh_500x0-wm_3 -wmp_4-s_2254841953.jpg "title=" 5.jpg "alt=" Wkiol1hbhs2bssngaacwrtzgw3a909.jpg-wh_50 "/>

6. View IP information, enter a command

# ifconfig-a

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/8A/FE/wKioL1hBHZmRgdeJAAEDBijlfBU798.jpg-wh_500x0-wm_3 -wmp_4-s_958463924.jpg "title=" 6.jpg "alt=" Wkiol1hbhzmrgdejaaedbijlfbu798.jpg-wh_50 "/>

7. Test connectivity, enter commands

# ping Www.baidu.com

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/8B/02/wKiom1hBHfnw7KXPAADgB9qN9h0049.jpg-wh_500x0-wm_3 -wmp_4-s_1961786044.jpg "title=" 8.jpg "alt=" Wkiom1hbhfnw7kxpaadgb9qn9h0049.jpg-wh_50 "/>

Congratulations to you! You can surf the internet now! Have fun!


centos6.5 minimal in VMware uses NAT mode networking

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.