Weekend Assignment #1

Objective:#

Extract IP subnet from particular branch in CSV report, and ping all addresses in that branch's range.

Date:#

September 16, 2022

Overview#

The Nerdlings corporation has 4 branches (lol), each with its own private subnet connected together with routed site-to-site VPNs. Using the provided branch_report.csv, write a script that will ping all the IPs possible in the Amadora, Portugal branch.

Create a file named branch_report.csv containing the following data:

COUNTRY, CITY,TIMEZONE,VPN_SOFTWARE,IP_SUBNET,BRANCH_MASCOT
USA,Memphis,EDT,OpenVPN,192.168.77.0/24,chicken
South Africa,Welkom,SAST,Wireguard,192.168.8.0/24,narwhal
Portugal,Amadora,WEST,Cisco,10.155.0.0/16,dolphin
USA,Orlando,EDT,Wireguard,192.168.9.0/24,turtle

NOTES:#

There is no need to calculate the IP addresses based on the CIDR subnet notation. You can assume you'll need to iterate both of the last two octets based on the /16 subnet. (The /16 is only there to make separating fields potentially more challenging, depending on how you extract the first half of the IP addresses you'll need to ping.)

Due Date:#

We'll cover a possible solution during the livestream this Sunday, September 18, 2022, 3PM EDT.

Solution:#

Solution livestream is now available

 

Last updated on