We've observed an inconsistency in the representation of network values for higher CIDR notations, specifically CIDR /31 and /32. Additionally, the corresponding subnet masks of 255.255.255.254 and 255.255.255.255 seem to display these values inaccurately. This can potentially lead to configuration errors and misinterpretation of network boundaries. A prompt review and rectification would greatly enhance the accuracy and reliability of the system.
From the logs below, note the following anomalies:
For a /31 CIDR, the last usable address is shown as the network address itself, which is incorrect.
For a /32 CIDR, the first usable address should be the same as the network address, but it's being shown as one address higher. Additionally, the last usable address is shown as 192.168.1.255, which is not applicable for a /32 CIDR notation.
Bitte gib die Netzwerk Adresse ein: 192.168.1.1/31
Du hast folgende Netzwerk Adresse eingegeben: 192.168.1.0/31
2023/08/16 20:45:22 Die Subnetzmaske ist: 255.255.255.254
2023/08/16 20:45:22 Die Netzwerk Adresse ist: 192.168.1.0
2023/08/16 20:45:22 Die erste nutzbare Adresse des Netzwerks ist: 192.168.1.1
2023/08/16 20:45:22 Die letzte nutzbare Adresse des Netzwerks ist: 192.168.1.0
2023/08/16 20:45:22 Die Broadcast Adresse des Netzwerks ist: 192.168.1.1
Bitte gib die Netzwerk Adresse ein: 192.168.1.0/32
Du hast folgende Netzwerk Adresse eingegeben: 192.168.1.0/32
2023/08/16 20:45:55 Die Subnetzmaske ist: 255.255.255.255
2023/08/16 20:45:55 Die Netzwerk Adresse ist: 192.168.1.0
2023/08/16 20:45:55 Die erste nutzbare Adresse des Netzwerks ist: 192.168.1.1
2023/08/16 20:45:55 Die letzte nutzbare Adresse des Netzwerks ist: 192.168.1.255
2023/08/16 20:45:55 Die Broadcast Adresse des Netzwerks ist: 192.168.1.0