12
Project 7-3: Explore VM Network Configuration Options in Oracle VirtualBox
Earlier in this book, you had the opportunity to create at least one VM using Oracle
VirtualBox. The instructions for this project are specific to VirtualBox, although they can
be adapted to Hyper-V or VMware. The instructions also assume you have Windows 10
installed on the VM, although again, the steps could be adapted to another OS.
In this project, you will explore the network settings for the VM, practice communicating
between the VM and the host machine, and practice communicating between the VM and
a host on the Internet. The host computer, which is the physical computer, should be
connected to the Internet. Complete the following steps:
1. Open VirtualBox and start the Windows 10 VM.
2. Open a Command Prompt window and enter ipconfig to determine the VM’s
IPv4 address, subnet mask, and default gateway. Write down this information.
3. Check the VM’s connection to the Internet by pinging one of Google’s DNS
servers with the command ping 8.8.8.8. Was the ping successful?
4. Open the Command Prompt window on the host computer, the physical PC
5. How does the host computer’s address information compare with the VM’s
information? Both computers should have a default subnet mask of
255.255.255.0, which means both computers have a Class C IPv4 address. Look
at the first three octets of each computer’s IPv4 address. Do they match? If so,
they’re on the same subnet. If not, the computers are on different subnets. Are
these two computers on the same subnet?
6. Return to the Oracle VM VirtualBox Manager window. Right-click the VM in the
left pane and click Settings.
7. In the Settings window, click Network in the left pane and then make sure the
Adapter 1 tab is selected, as shown in Figure 7-32. Notice in this figure that the
adapter is attached to NAT.
8. Click the Attached to down arrow, click Bridged Adapter, and then click OK.
9. Return to the VM’s window. You see a message indicating that the VM has
detected a network change, and is requesting permission to find PCs and other
devices and content on the network. Click Yes.
10. Repeat the ipconfig command. What are the IPv4 address, subnet mask, and
default gateway now? How does this information compare with the host PC’s
information? Are the two computers on the same subnet now?
11. On the VM, ping Google’s DNS server again. Was the ping successful?
12. On the Oracle VM VirtualBox Manager window, return to the VM’s Settings,
14
13. On the VM, repeat ipconfig and ping Google’s DNS server again. What
changed?
14. Change the VM’s Attached to setting to NAT and click OK. On the VM, repeat
ipconfig and ping Google’s DNS server again. What changed?
15. Close all windows on the VM, shut down the VM, and close all windows on the
host machine.
Project 7-4: Create a VPN Connection
For this project, you will download and install a free VPN client app, and use the app to
surf online. Complete the following steps:
1. In your browser, go to hide.me and click Pricing. Register for the free tier of
2. In your account dashboard, download the VPN client to your computer and install
it.
3. After installation, sign in to the app using the hide.me account that you created in
Step 1. Once you’ve signed in, click Settings at the bottom of the hide.me VPN
15
a. What is a Kill Switch?
b. Which setting disables local network connectivity during the VPN
connection?
c. What is the default MTU size?
d. Which VPN protocol does hide.me use by default?
4. Close the Settings dialog box. In the hide.me VPN dialog box (see Figure 7-33),
what is your current IP address?
[[Insert Figure 7-33 here]]
5. Click Connect. It might take several minutes to complete the connection. Once
you are connected, what is your new IP address?
If you get an error message, or if the app gets stuck for more than 10 minutes,
complete the following steps to create a new rule in Windows Firewall that will
allow hide.me to create a VPN connection.
a. Press Win+R and enter WF.msc. The Windows Firewall with Advanced
Security window opens.
b. In the left pane, click Inbound Rules. In the right pane, click New Rule.
c. Make sure Program is selected, then click Next.
d. Select This program path, and then click Browse. Navigate to the location of
the installed hide.me app. If you’re not sure where the app is installed, use
Cortana to search for hide.me VPN, right-click the app in the search results,
e. Once you’ve located the hide.me app, select it and click Open. Then click
f. Select Allow the connection if it is secure, and then click Next three times.
h. Name the rule hide.me VPN. Click Finish. The new rule is listed at the top of
the Inbound Rules pane. Close the Windows Firewall with Advanced Security
window and try again to create a VPN connection through the hide.me VPN
app.
6. Open a browser and navigate to a couple of websites. When you’re finished, what
is the new remaining Data Transfer level?
17
Capstone Projects
Capstone Project 7-1: Use SSH in Ubuntu
In this project, you will learn to use SSH in Ubuntu. Using the Ubuntu VMs you created
in Capstone Projects 2-1 and 4-1, follow these steps to create a SSH connection.
On the VM that has Ubuntu Server installed, do the following:
2. SSH is included in Ubuntu Server but is not installed. Enter this command to
install and start SSH: sudo apt-get install ssh
On the VM that has Ubuntu Desktop installed, do the following:
5. Open a shell prompt, and enter the command ifconfig. Note the IP address of
the Ubuntu Desktop VM.
6. Enter the ssh command with the IP address of the Ubuntu Server VM. For
18
If your username on the Ubuntu Server machine is not the same as your username
on the Ubuntu Desktop machine, you’ll need to add a bit more information to this
command in order to remote into the server. Try this command instead:
7. Enter your password on the server to log on to the server using SSH. You now
8. Enter the dir command. What directory is the server’s current default directory?
9. Enter the ifconfig command. Which IP address is displayed in the command
output, the Ubuntu Desktop VM, or Ubuntu Server VM?
10. When you’re finished using the SSH session, break the session using this exit
command.
12. Add some notes to your Wikidot website about the SSH installation on the
Ubuntu Server VM.
19
Capstone Project 7-2: Build a Packet Tracer Network
In Capstone Project 6-1 in Chapter 6, you installed Packet Tracer and completed the
Packet Tracer 101 course. In this project, you will begin to build your own network from
scratch, and you’ll continue building on this network in future chapters. Look back at
your notes on your Wikidot website if you need help remembering details about what you
learned in the earlier project.
On the same computer that you used for Capstone Project 6-1, complete the following
steps:
1. Open Packet Tracer.
3. Add two 2960 switches to the workspace.
5. Arrange these devices in a pyramid shape, with the workstations at the bottom,
the switches in the middle, and the router at the top. See Figure 7-34 to get an idea
of the correct layout. Use the Copper Straight-Through connection to connect
each of these devices as described next:
a. On each workstation, connect the Ethernet cable to the FastEthernet0
interface.
b. On each switch, connect the Ethernet cable from the workstation to the
FastEthernet0/1 interface. Connect the Ethernet cable from the router to the
FastEthernet0/2 interface.
20
c. On the router, connect Switch0 to the FastEthernet0/0 interface and connect
d. Wait a few minutes for the workstation-to-switch connections to turn green on
both ends of each connection.
The router and the switch have to be configured for the connections to come up:
6. Click the Router0 to open the configuration window. Click the Config tab. As
7. Click the FastEthernet0/0 interface. Make the following changes to the
interface’s configuration:
8. Click the FastEthernet1/0 interface. Make the following changes to the
interface’s configuration:
9. Close the Router0 window, and wait a few minutes for the switch-to-router
connections to turn green on both ends of each connection.
10. Click PC0 to open the configuration window. Click the Desktop tab, and then
click IP Configuration. Make the following changes to the workstation’s
configuration:
21
IP Configuration: Static
11. Close the IP Configuration window by clicking the small, blue X in the upper
12. Close Command Prompt and close the PC0 window.
13. Click PC1 to open the configuration window. Click the Desktop tab, and then
click IP Configuration. Make the following changes to the workstation’s
configuration:
14. Close the IP Configuration window by clicking the small, blue X in the upper
15. Enter the command ping 192.168.0.100. Was the ping successful? If so,
then you have successfully begun building your Packet Tracer network. If not,
16. Open the Simulation Panel (click View, Simulation Mode, or press Shift+S)
and run the ping again. Move or minimize the PC1 configuration window so you
22
17. When you’ve explored the PDU messages, close the Simulation Panel, close
18. Add a Note to each connection that lists its IP address, subnet mask, and default
gateway if relevant. Figure 7-35 shows an example for the router.
19. Click File, Save, and save your Packet Tracer file in a safe place for future
projects.
20. Add installation information to the Packet Tracer page on your Wikidot website,