Join Scott Simpson for an in-depth discussion in this video Lab setup, part of LFCS: Networking (Ubuntu).
- [Instructor] In this course, I'll be using Ubuntu virtual machines on private virtual networks. These machines will have two network adapters and as we go through the course, I'll be changing their settings and using the VirtualBox software to configure which network they're plugged into. If you don't have a virtual machine set up yet, take a moment to do that. You can refer to our courses on installing Linux and the course titled Learning VirtualBox for more detailed information. I have two machines here and I'll add them to a virtual network so they can communicate with each other.
Here in VirtualBox, I'll go into File and choose Preferences. And then I'll choose the Network option. Then I'll click the New Adapter button and that creates a new network for me. I'll click to edit it and I can see that this is the network 10.0.2.0/24 and it supports DHCP, which we'll take a look at in a little bit. For now, though, I'll press OK and I'll press OK again. I'll go to my virtual machine and choose Settings and choose Network.
For Adapter one, I'll make sure it's enabled and then I'll change where it's attached to NatNetwork. That'll select the network that we just created. Then I'll click on Adapter two and choose to enable the network adapter, but for now I'll leave it unattached. I'll press OK and then do the same thing for my other virtual machine. The network will be attached to NatNetwork and Adapter two will be enabled but not attached. This is what the network looks like at this point.
My two clients are members of the same network. VirtualBox is doing some stuff in the background that we're not worried about right now. Just as if you had two physical computers plugged into the same network. We're focusing on the client systems for now. If you want a more in depth look at the VirtualBox software, and how to set up different network modes for your VMs, take a look at my course that dives deeper into the VirtualBox software, called Learning VirtualBox. I expect that you're comfortable with working at the command line and that you're at least familiar with networking terms like ethernet, router, firewall, and so on.
This course will focus on setting up networking on Ubuntu, not on the fundamentals of networking itself. If you need to refresh your knowledge of networking, check out our foundations of networking series to see if there's anything you might need to revisit. The commands I'll show you in this course have many options and if you want to learn more about them, you can explore the man pages for additional information. We'll use the most common options and focus in on the basics. And now, back in the VirtualBox manager, I'll choose the first virtual machine and click start.
I'll log in. And I'll open up a terminal. Now we're ready to explore networking on Ubuntu.