1. Inspect the current network configurations on the physical machine. Display the following information:

To change the network configurations, we need to be root. Generally, we don’t need root access to inspect them.

Use ifconfig to find out the MAC address, IP address, and network mask. Which interface is the relevant one?

image.png

image.png

image.png

Layer 2 - MAC address - ether: 08:00:27:ad:25:87

Layer 3 - IP address - inet 192.168.1.10

           - Network mask - 255.255.255.0

           - Default gateway - 192.168.3.1

Layer 7 - DNS - 192.168.3.1

Relevant interface - eth0

  1. Create a script that checks if there is an internet connection and displays appropriate messages.