[go: up one dir, main page]

0% found this document useful (0 votes)
48 views6 pages

CECS 303 - Lab 1

Uploaded by

mrg166
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views6 pages

CECS 303 - Lab 1

Uploaded by

mrg166
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Lab #1

Class: CECS 303 – Networks and Network Security


Instructor: Chris Samayoa
Due Date: September 6, 2024 by 9pm PST

Objective: Create a networked lab environment for use throughout the semester
Links:
• VirtualBox: https://www.virtualbox.org/wiki/Downloads
• Ubuntu: https://ubuntu.com/download/server or
https://ubuntu.com/download/desktop
• Basic Linux Commands: https://maker.pro/linux/tutorial/basic-linux-
commands-for-beginners
Instructions (for server installation):
Prepare minimum of two Ubuntu instances using VirtualBox that can
communicate over a local network
1. Download and install VirtualBox instance appropriate for your operating
system (v7.0)
2. Download Ubuntu ISO (version 22.04 LTS)
a. If using M-series Apple Chip then be sure to download ARM version
i. https://ubuntu.com/download/server/arm
3. Open VirtualBox application
a. Select “Machine -> New” from top level menu
i. Name: Provide unique name
ii. Folder: Leave default or choose a different location
iii. ISO Image: Select downloaded ISO file
iv. Type: Linux
v. Version: Ubuntu (64-bit)
b. Select ‘Next’

c. Unattended Guest OS Install Setup


i. Enter desired values for Username, Password, and Hostname
1. BE SURE TO TAKE NOTE OF USERNAME and PASSWORD
USED
ii. Ensure that ‘Guest Additions’ is checked
d. Hardware
i. Base Memory: Recommend minimum of 1024mb
ii. Processors: 1 should be sufficient
e. Virtual Hard Disk
i. Select ‘Create a virtual hard disk now’
ii. Disk Size: Set to minimum of 25gb
f. Complete Setup
4. Change host network settings
a. Select host
b. Click ‘Machine -> Settings’
c. Select ‘Network’ in left menu
d. Change ‘Attached to:’ drop down menu to ‘Bridged Adapter’
i. Ensure that your active network device is selected under
‘Name’
e. Click ‘OK’ on bottom to close
5. Proceed with installing the Ubuntu operating system
a. For the purposes of this lab the defaults work
b. You may need to re-enter a host name, username, and password
i. BE SURE TO TAKE NOTE OF USERNAME and PASSWORD USED
c. I recommend installing the OpenSSH server when prompted as it is a
good tool to familiarize yourself with
d. There is no need to select additional packages to install when
prompted
e. Allow updates to finish installing before selecting ‘Reboot Now’

i.
6. After reboot, login with username and password
7. Run command “sudo apt install net-tools”
a. Once this is complete, you should be able to reach the internet
b. Test by using ping
i. e.g. “ping –c 4 google.com” and ensure you receive a response
ii.
8. Run command ‘ifconfig’ and take note of your host’s IP address

a.
b. e.g. This host has an IP address of 192.168.4.46

Configure second host using the same instructions as above


1. Don’t forgot to modify network adapter and mount the Ubuntu ISO as
instructed above
2. Ensure a different host name is used during installation
3. User name can be the same or different (up to you)
4. Ensure during installation that a different IP address is assigned to the
second host

DNS Queries:
The ‘dig’ command in Linux is useful to gather DNS information. Please pick a
domain (e.g. csulb.edu) and run the following commands to familiarize yourself
with the type of information publicly available about a domain:
1. Find the domain’s primary IP address(es): dig <domain-name.com> (e.g.
‘dig csulb.edu’)
a. Check to see if the www subdomain returns a different IP address
than the domain itself (e.g. ‘dig www.csulb.edu)
b. Try to find other subdomains associated with the domain (e.g. mail,
owa, smtp, ftp, etc.)
2. Find the domain’s mail server by using the MX command: dig <domain-
name.com> MX
a. The MX record in DNS tells other mail servers where to send email
for a particular domain
3. Lookup the domain’s assigned name servers: dig <domain-name.com> NS
a. The list that comes up are all the servers responsible for keeping up-
to-date DNS records for the domain
4. Lookup some of the reverse DNS records for one or more of the IP
addresses you are able to identify: dig –x <IP address> (e.g. ‘dig –x
134.139.19.17’)
a. In the example provided above 134.139.19.17 is the IP address for
csulb.edu
b. Reverse DNS entries can provide further information regarding who
owns or uses an IP address

Deliverables (submit via BeachBoard)


1. Screenshot of ‘ifconfig’ command output from both hosts
2. Screenshot of each host successfully pinging the other
a. e.g. “ping –c 4 <host ip address>”
Example:

Screenshots from both hosts should be shown


3. Screenshots of dig command for MX record and at least one reverse DNS
search
Note: Command “shutdown now” will cleanly shut down virtual machines when
you are done working with them

You might also like