Case Study Lab I: Discovering IP addresses from text

Task Overview
Description of the task

Our company operates also a backup server. Backup server in our company has an external dynamic IP address you received from your ISP. The address does not change often. However, it changes time to time. We would need to find out what IP address is currently external interface backup server.

It's time to write your first script. Your task is to get the IP address of the interface /dev/eth0. Write a script that displays current IP address located on the network interface /dev/eth0.

Technical instructions

For solving the problem follow these steps:

  • #ifconfig command lists all information about network interfaces of the server for other options #man use ifconfig.