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

How to use virtualbox NAT Network in RHEL6 operating system in Linux

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

Share

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

It is believed that many inexperienced people are at a loss about how to use the virtualbox NAT network in the RHEL6 operating system in Linux. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

Linux Network configuration Basics 5

RHEL6 operating system uses virtualbox NAT network

Host win7 can currently access the Internet

Virtualbox Software Management-Global Settings-add NAT Network to Network

Add network card to linux virtual machine to access external network using NAT network

1 add nat network to global settings

Set up the nat network dhcp address pool, that is, the ip address that the virtual machine will get

2 add network card to virtual machine and use custom NAT network

3 start the virtual machine and manually edit the configuration Nic configuration file

View the current network card information, where eth3 is the newly added nat network

[root@rhel64] # ifconfig-a

Write the configuration file of the network card

[root@rhel64 ~] # vi / etc/sysconfig/network-scripts/ifcfg-eth3

DEVICE=eth2

BOOTPROTO=dhcp

ONBOOT=yes

[root@rhel64 ~] # cat / etc/sysconfig/network-scripts/ifcfg-eth2

[root@rhel64 ~] # ifup eth3

[root@rhel64 ~] # ifconfig eth3

4 access to the public network test

[root@rhel64] # ping www.baidu.com-c4

After reading the above, have you mastered how the RHEL6 operating system in Linux uses the virtualbox NAT network? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

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

Servers

Wechat

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

12
Report