Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Centos6.5 minimal in VMware uses NAT mode to connect to the Internet

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

As most companies and schools now implement the binding of IP addresses and host Mac addresses, it is necessary to apply in advance if you use bridging mode to give virtual machines access to the Internet. In order not to make a big fight for virtual machines to access the Internet, we can use NAT mode to give virtual machines access to the Internet. NAT mode can meet most of the requirements except that it cannot access other hosts in the local area network like bridging mode. Here is how centos6.5 minimal uses NAT to surf the Internet.

Open the virtual machine, enter the account number and password to log in to the system

two。 Click Virtual Machine, select Settings, open the Virtual Machine Settings dialog box, under the hardware tab, click the Network Adapter item, select NAT Mode on the right, OK.

3. Modify the configuration file to boot. Enter the command at the terminal and open the configuration file ifcfg-eth0 using the vi editor

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

Press the "I" key to enter vi editing mode and modify the following. After the modification, press the "Esc" key to enter vi command mode, enter ": wq" to save and exit.

4. Restart the network service and enter the command

# service network restart

6. View IP information and enter commands

# ifconfig-a

7. Test connectivity, enter command

# ping www.baidu.com

Congratulations! You can surf the Internet now! Have fun!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report