Get the App
SLTechnology News&Howtos  ›  Servers  › 

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

Shulou Source: shulou.com Published: 2022-06-01 02:50:06 09月23日 Update

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!

Tags: Network network card configuration operating system system global content address file method more problem helpless for this reason Internet information reason foundation host host Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Docker Xiaomi vpn Shulou Tech Info