Join Scott Simpson for an in-depth discussion in this video Virtual environment setup, part of Linux: Network Configuration.
- I'm using Oracle VirtualBox for my environment, which you can download from virtualbox.org. I've already downloaded that and installed it from my platform. I've also downloaded the CentOS Installer from centos.org and the Ubuntu Desktop Installer from ubuntu.com. In this video, I'm not going to go through the process of installing the operating system. That's covered in other courses. Take a few minutes after this video, and get everything set up on your system. At most in this course, I'll have three virtual machines running, so plan your RAM allocation accordingly.
You can get by with giving each machine one gigabyte. I've made a few modifications to the virtual machines. I've installed the VirtualBox guest additions and I've changed the interface a little bit to make it more visible on your screen. I'm using the GNOME classic desktop on CentOS and Unity on Ubuntu. And I've made some tweaks to my bashrc file on both platforms to add a new line before commands and to change the color of the prompts for clarity. With the default settings, VirtualBox will put each of our machines in its own network, each with the same IP address.
But we want our machines to be on the same virtual network. So, I'll go into the VirtualBox settings and set that up. I go to the Preferences and choose Network. And then under NAT Networks, I'll create a new NAT network. I'll take a look at the settings with the little screwdriver icon, and I can see this is 10.0.2.0/24 and it supports DHCP. That's what I want, good. In this course, I'll mostly be using CentOS, and in a later chapter I'll make some clones of the CentOS image. So, with that image shut down, I'll go and I'll export an Appliance of this image.
I'll put that on my desktop, and click through the prompts. This will give me an easy way of bringing up new, identical machines later on. You could also snapshot and clone if you wanted to. Now, I want to make sure that the images we'll use at the beginning of the course are both on the same network. So, I'll choose the image, and choose Settings. I'll go to Network, and under Adapter 1, I'll change it from NAT to NAT Network and then make sure the network we just created is selected, and I'll so that for this one as well.
NAT Network and NAT Network. Great, I'll start these up. I'll log in. I'll open up my terminal, and we're ready to go.
Note: This course concentrates on the CentOS distribution of Linux, but there are separate lessons on configuring networking for Ubuntu/Debian.
- Finding device information
- Managing connections with NetworkManager
- Configuring dynamic addresses using DHCP
- Configuring static clients
- Configuring Wi-Fi
- Configuring networking manually
- Setting the hostname
- Configuring the firewall
- Routing traffic between networks