Python Program Given IPv4 Subnet Mast Find a ClassCIDR b o

Python Program

Given IPv4 & Subnet Mast Find:

a. Class/CIDR

b. # of hosts

c. IPv4 in HEX

d. Broadcast Address

e. Network Address

f. All host addresses

The code should do something like the following website

http://www.calculator.net/ip-subnet-calculator.html

Solution

IP Address:   183.83.96.9
Network Address:   183.83.96.8
Usable Host IP Range:   183.83.96.9 - 183.83.96.10
Broadcast Address:   183.83.96.11
Total Number of Hosts:   4
Number of Usable Hosts:   2
Subnet Mask:   255.255.255.252
Wildcard Mask:   0.0.0.3
Binary Subnet Mask:   11111111.11111111.11111111.11111100
IP Class:   C
CIDR Notation:   /30
IP Type:   Public

Short:   183.83.96.9 /30
Binary ID:   10110111010100110110000000001001
Integer ID:   3075694601
Hex ID:   0xb7536009
in-addr.arpa:   9.96.83.183.in-addr.arpa
IPv4 Mapped Address:   ::ffff:b753.6009
6to4 Prefix:   2002:b753.6009::/48

All Possible /30 Networks for 183.83.96.*

Network Address   Usable Host Range   Broadcast Address:
183.83.96.0   183.83.96.1 - 183.83.96.2   183.83.96.3
183.83.96.4   183.83.96.5 - 183.83.96.6   183.83.96.7
183.83.96.8   183.83.96.9 - 183.83.96.10   183.83.96.11
183.83.96.12   183.83.96.13 - 183.83.96.14   183.83.96.15
183.83.96.16   183.83.96.17 - 183.83.96.18   183.83.96.19
183.83.96.20   183.83.96.21 - 183.83.96.22   183.83.96.23
183.83.96.24   183.83.96.25 - 183.83.96.26   183.83.96.27
183.83.96.28   183.83.96.29 - 183.83.96.30   183.83.96.31
183.83.96.32   183.83.96.33 - 183.83.96.34   183.83.96.35
183.83.96.36   183.83.96.37 - 183.83.96.38   183.83.96.39
183.83.96.40   183.83.96.41 - 183.83.96.42   183.83.96.43
183.83.96.44   183.83.96.45 - 183.83.96.46   183.83.96.47
183.83.96.48   183.83.96.49 - 183.83.96.50   183.83.96.51
183.83.96.52   183.83.96.53 - 183.83.96.54   183.83.96.55
183.83.96.56   183.83.96.57 - 183.83.96.58   183.83.96.59
183.83.96.60   183.83.96.61 - 183.83.96.62   183.83.96.63
183.83.96.64   183.83.96.65 - 183.83.96.66   183.83.96.67
183.83.96.68   183.83.96.69 - 183.83.96.70   183.83.96.71
183.83.96.72   183.83.96.73 - 183.83.96.74   183.83.96.75
183.83.96.76   183.83.96.77 - 183.83.96.78   183.83.96.79
183.83.96.80   183.83.96.81 - 183.83.96.82   183.83.96.83
183.83.96.84   183.83.96.85 - 183.83.96.86   183.83.96.87
183.83.96.88   183.83.96.89 - 183.83.96.90   183.83.96.91
183.83.96.92   183.83.96.93 - 183.83.96.94   183.83.96.95
183.83.96.96   183.83.96.97 - 183.83.96.98   183.83.96.99
183.83.96.100   183.83.96.101 - 183.83.96.102   183.83.96.103
183.83.96.104   183.83.96.105 - 183.83.96.106   183.83.96.107
183.83.96.108   183.83.96.109 - 183.83.96.110   183.83.96.111
183.83.96.112   183.83.96.113 - 183.83.96.114   183.83.96.115
183.83.96.116   183.83.96.117 - 183.83.96.118   183.83.96.119
183.83.96.120   183.83.96.121 - 183.83.96.122   183.83.96.123
183.83.96.124   183.83.96.125 - 183.83.96.126   183.83.96.127
183.83.96.128   183.83.96.129 - 183.83.96.130   183.83.96.131
183.83.96.132   183.83.96.133 - 183.83.96.134   183.83.96.135
183.83.96.136   183.83.96.137 - 183.83.96.138   183.83.96.139
183.83.96.140   183.83.96.141 - 183.83.96.142   183.83.96.143
183.83.96.144   183.83.96.145 - 183.83.96.146   183.83.96.147
183.83.96.148   183.83.96.149 - 183.83.96.150   183.83.96.151
183.83.96.152   183.83.96.153 - 183.83.96.154   183.83.96.155
183.83.96.156   183.83.96.157 - 183.83.96.158   183.83.96.159
183.83.96.160   183.83.96.161 - 183.83.96.162   183.83.96.163
183.83.96.164   183.83.96.165 - 183.83.96.166   183.83.96.167
183.83.96.168   183.83.96.169 - 183.83.96.170   183.83.96.171
183.83.96.172   183.83.96.173 - 183.83.96.174   183.83.96.175
183.83.96.176   183.83.96.177 - 183.83.96.178   183.83.96.179
183.83.96.180   183.83.96.181 - 183.83.96.182   183.83.96.183
183.83.96.184   183.83.96.185 - 183.83.96.186   183.83.96.187
183.83.96.188   183.83.96.189 - 183.83.96.190   183.83.96.191
183.83.96.192   183.83.96.193 - 183.83.96.194   183.83.96.195
183.83.96.196   183.83.96.197 - 183.83.96.198   183.83.96.199
183.83.96.200   183.83.96.201 - 183.83.96.202   183.83.96.203
183.83.96.204   183.83.96.205 - 183.83.96.206   183.83.96.207
183.83.96.208   183.83.96.209 - 183.83.96.210   183.83.96.211
183.83.96.212   183.83.96.213 - 183.83.96.214   183.83.96.215
183.83.96.216   183.83.96.217 - 183.83.96.218   183.83.96.219
183.83.96.220   183.83.96.221 - 183.83.96.222   183.83.96.223
183.83.96.224   183.83.96.225 - 183.83.96.226   183.83.96.227
183.83.96.228   183.83.96.229 - 183.83.96.230   183.83.96.231
183.83.96.232   183.83.96.233 - 183.83.96.234   183.83.96.235
183.83.96.236   183.83.96.237 - 183.83.96.238   183.83.96.239
183.83.96.240   183.83.96.241 - 183.83.96.242   183.83.96.243
183.83.96.244   183.83.96.245 - 183.83.96.246   183.83.96.247
183.83.96.248   183.83.96.249 - 183.83.96.250   183.83.96.251
183.83.96.252   183.83.96.253 - 183.83.96.254   183.83.96.255

Python Program Given IPv4 & Subnet Mast Find: a. Class/CIDR b. # of hosts c. IPv4 in HEX d. Broadcast Address e. Network Address f. All host addresses The c
Python Program Given IPv4 & Subnet Mast Find: a. Class/CIDR b. # of hosts c. IPv4 in HEX d. Broadcast Address e. Network Address f. All host addresses The c

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site