You can do so by typing the following in the terminal: Now, you will have to restart your network. type the following in the terminal:Ĭat /etc/sysconfig/network-scripts/ifcfg-eth0 Now, save the file by pressing “ESC” and typing :wq and hit ENTER. Now, add/modify the file as follows (DO NOT CHANGE the HWADDR line your config file): Vi /etc/sysconfig/network-scripts/ifcfg-eth0 NOTE: You will have a line that starts with HWADDR in the your config file, do not change or modify that line. This is the simplest way to configure your network. We can configure the network by using Dynamic IP address which are assigned automatically by the DHCP server. You can choose either static or dynamic method and can do so by editing the file /etc/sysconfig/network-scripts/ifcfg-eth0. You can configure your network either by using Dynamic IP addressing assigned by your DHCP server or you can manually configure your IP Address statically.
Step 2: Configure CentOS network settings: Now, you can start your CentOS VM by selecting you VM and clicking on “ Start”. So, you have now configured the Virtual Box. And finally check the field “ Cable Connected”. For example, I have a dell wireless adapter, so I choose the Name as “Dell Wireless” from the drop down menu. Then choose the “Name” to your network interface. Now, go to the tab Network and change the “ Attached to” field to “ Bridged Adapter”. Open Virtual Box and right click on your CentOS VM, and click on “S ettings“. It is faster as it treat the VM as an individual host within the network. I will be using the Bridged Adapter mode for this guide. You can find more details about the different modes here.
There are different modes or ways you can configure your Virtual box network settings. Step 1: Configure Virtual Box Network Settings: