SM1: Open-source operating systems
ASIX/DAW/DAM-1 sm1act03: Basic Network Configuration
04-10-24

Task sm1act03: Basic Network Configuration

GENERAL CONDITIONS
Deadline DAW1: On 11-10-24 teacher will check that your operating system is working properly   
Deadline ASIX1: On 11-10-24 teacher will check that your operating system is working properly

DOCUMENTATION
1- Linux network interface:  https://www.baeldung.com/linux/network-interface-configure#what-is-a-network-interface
2-
Basic network concepts (IP address, mask, gateway and DNS): https://www.dipolnet.com/what_is_the_ip_address_network_mask_gateway__bib538.htm
3- MAC (or hardware) address: https://slts.osu.edu/articles/whats-a-mac-address-and-how-do-i-find-it/
4- Linux ip command examples: https://www.cyberciti.biz/faq/linux-ip-command-examples-usage-syntax/
5- Bridge adapter vs NAT: https://medium.com/@megops/comparing-networking-solutions-in-virtualbox-nat-nat-network-host-network-and-bridged-network-5edb99d7c33b
6- Linux Network Manager: https://linuxconfig.org/linux-gui-network-managers

PRACTICAL EXERCISE


FIRST PART:  SHOWING YOUR NETWORK CONFIGURATION. TESTING CONNECTIVITY

1
.- With the help of  Network Manager shows clearly:
    a) Network Interface identifier of your network card.
    b)
MAC
(or hardware) address of your network card.
    c)
IP address of your computer.
    d) IP address of the Gateway (Router) on your local network.
    e) IP addresses of the primary and secondary DNS servers queried by computers on your local network.

2.-
With the help of  Network Manager shows clearly the  configuration Method of your computer.

3.-
With the help of  commands shows clearly:
    a) T
he ethernet interface identifier.
    b)
MAC (or hardware) address of your ethernet interface.
    c)
IP address of your computer
.
    d)
IP address of the Gateway (Router) on your local network.
    e)
IP addresses of the primary and secondary DNS servers queried by computers on your local network.

4
.- With the help of  commands tests the connectivity of your computer to:
   
a)  www.google.com. Is there connectivity?. How do you know it?.
    b) IP address 7.7.7.7.
Is there connectivity?. Why?.

5.-
Find out the public IP address of www.google.com.

 

SECOND PART:  BASIC MANAGEMENT OF YOUR NETWORK SETTINGS

1
.- Manually configure your ethernet interface using Network Manager:

and with  the help of  commands shows clearly:
    a) T
he ethernet interface identifier.
    b)
MAC (or hardware) address of your ethernet interface.
    c)
IP address of your computer
.
    d)
IP address of the Gateway (Router) on your local network.
    e)
IP addresses of the primary and secondary DNS servers queried by computers on your local network.
 

2.- Configure again 
your  network interface  using the Automatic (DHCP) method 
using Network Manager. Afterwards, show again the network configuration with the help of commands.

THIRD PART - WORK IN GROUP (TWO STUDENTS)
1.- Log in the system as a root user. Install on your computer the following packages of sotfware: openssh-server, openssh-client and net-tools. Log out of your root account and become again a regular user.
2.-
Run the following command: systemctl  status  ssh. Check if the ssh server has been loaded and is running on your system.
3.- Check the IP address of your virtual machine.

4.- Check connectivity with the virtual machine of a classmate.
5.- Connect your virtual machine to the virtual machine of the cIassmate using the ssh client. Follow these steps:

    a) Run the command:  ssh  username@ip_addres -p 22 where username is the username of the classmate in his/her virtual computer and ip_address is the ip address of his/her virtual machine.
    b) Answer yes to the question Are you sure you want to continue connecting (yes/no)?.
    c) Password --> Write your  username password
    d) Check that you have gained access to the classmate virtual machine.
6.- Close the connection to the classmate virtual machine running the command exit or logout.