How to use virtualbox NAT Network in RHEL6 operating system in Linux
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!