Skip to content

Instantly share code, notes, and snippets.

@paddykontschak
Created January 13, 2017 14:13
Show Gist options
  • Save paddykontschak/d9e09c3fdcc4fc3696c7d1b09d0e3646 to your computer and use it in GitHub Desktop.
Save paddykontschak/d9e09c3fdcc4fc3696c7d1b09d0e3646 to your computer and use it in GitHub Desktop.
# Subnetting IPv4
192.168.2.1/22
## Netzmaske
/22 ^= 255.255.252.0
/ \
__/|_____ |\_______
1111.1111.1111.1111.1111.11|00.0000.0000
{ Mask hides this part. }{ your pc }
{ no access }
Welche Netzmaske ist ungültig?
## Netzadresse
Nur 3. Oktett:
SNM: 1111 1100
IP: 0000 0010 ^
--------------
0000 0000
NA: 192.168.0.0
## Broadcastadresse
3. + 4. Oktett
_______________
SNM: 1111 11|00 0000 0000
IP: 0000 00|11 1111 1111 v
|______________
BA: 192.168.3.255
#####
192.168.0.1 - 192.168.3.254
192.168.57.3/21
/21 ^= 1111 1000
3. Oktett
|
SNM: 1111 1|100
IP: 0011 1|001 ^
-----------|---
0011 1|000
|
NA: 192.168.56.0
BA: 192.168.63.255
SNM: 1111 1|000 0000 0000
IP: 0011 1|111 1111 1111
-----------|-------------
0011 1|111 1111 1111
# Subnetting IPv6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment