This project has been created as part of the 42 curriculum by amtan.
NetPractice is a networking project from the 42 School curriculum. The goal is to solve 10 network configuration levels by correctly setting IP addresses, subnet masks, gateways, and routing tables.
The project teaches how hosts, switches, routers, and Internet interfaces communicate using TCP/IP. Each level requires checking packet paths, fixing forward and return routes, and exporting the solved configuration.
Download net_practice.1.9.tgz from the project page, then extract it:
tar -xzf net_practice.1.9.tgzEnter the extracted directory:
cd net_practiceThen run the training interface:
./run.shIf needed, it can also be started with a Python local server from inside the extracted directory:
python3 -m http.server 49242Then open the matching localhost URL in a browser, for example:
http://localhost:49242In the interface, enter the login:
amtanFor each level:
- Read the objective.
- Configure the editable IP addresses, subnet masks, gateways, and routes.
- Click Check again to test the network.
- Use the logs to debug any failed forward or return path.
- When the level is solved, click Get my config before moving to the next level.
For submission, export one configuration file for each of the 10 levels. The repository root must contain:
README.md- 10 exported configuration files, one per level
All 10 exported configuration files must be placed at the repository root.
Classic networking references used for this project:
- Microsoft Learn - TCP/IP addressing and subnetting basics
- RFC 791 - Internet Protocol
- RFC 826 - Address Resolution Protocol
- RFC 4632 - Classless Inter-domain Routing, CIDR
The networking concepts studied include TCP/IP addressing, IPv4, CIDR, subnet masks, default gateways, routers, switches, OSI layers, TCP/IP layers, ARP, routing tables, static routes, default routes, longest-prefix match, subnetting, packet forwarding, and return paths.
AI was used as a tutoring and study aid to explain networking concepts, practice manual subnetting, review route and gateway logic, understand NetPractice logs, prepare defense explanations, and draft this README.