Skip to content

viruskizz/42bangkok-netpractice

Repository files navigation

Netpractice

minishell badge

42Bangkok's project

The Netpractice 42 project is a general practical exercise to let you discover networking. You will have to configure small-scale networks. To do so, it will be necessary to understand how TCP/IP addressing works.

You will have to complete 10 levels (i.e. 10 exercises) and turn them in your Git repository.

Guide 📑

Read my full guide in Netpractice 42Bangkok guide

My learning resource

This resource is coverage all knowledge that you should know. It short and good explaination

Concept

Configuration

  1. Client ip do not overlap to other
  2. Switch need to connect client in same subnet
  3. Router can connect between subnet
  4. route table is configured from source ip to destination with CIDR (0.0.0.0/0)
  5. Private ip do not access internet
    • from 10.0.0.0 to 10.255.255.255
    • from 172.16.0.0 to 172.31.255.255
    • from 192.168.0.0 to 192.168.255.255
  6. Do not set local ip
    • from 127.0.0.1 to 127.255.255.254

Step to solve problem

  1. Check CIDR or Subnet mask
  2. Check specific client ip that is assigned
  3. calculate available ip range in subnet
  4. Config route table follow by problem goals

How to pass the evaluation

  1. Memorize CIDR table
  2. Practice level 6 to 10 from thinking to muscle memory

CIDR Sheet table

Address Host Netmask
/30 4 2 255.255.255.252
/29 8 6 255.255.255.248
/28 16 14 255.255.255.240
/27 32 30 255.255.255.224
/26 64 62 255.255.255.192
/25 128 126 255.255.255.128
/24 256 254 255.255.255.0
/18 16384 16382 255.255.192.0
/16 65536 65534 255.255.0.0

Get started

With these resources you can get through it in every level but it not easy anyway

.

challenge-yaself

.

~~ Good luck


Learn Basic Network 📖

You also can learn basic network config in level 1 - 5

Level 1

Every client need to be set as different ip address.

solve-level-1
Level 2 Border ip is cannot be used because it is reserved for network transmission. solve-level-2
Level 3 Border ip is cannot be used because it is reserved for network transmission. solve-level-3
Level 4 Border ip is cannot be used because it is reserved for network transmission. solve-level-4
Level 5 Border ip is cannot be used because it is reserved for network transmission. solve-level-5

Challenge ya self 🎲

I would like to provide a hint for every level from 6 - 10

challenge-yaself

Hint

Level 6 hint-level-6
Level 7 hint-level-7
Level 8 hint-level-8
Level 9 hint-level-9
Level 10 hint-level-10

Burn da problem ⚔️

Peek the answer to check your solution and earn your point.

burn-ya-point

Solution

Level 6 solve-level-6
Level 7 solve-level-7
Level 8 solve-level-8
Level 9 solve-level-9
Level 10 solve-level-10

Releases

No releases published

Packages

No packages published