Example: 1 Network address = 172.16.0.0, CIDR = 17 17 bits are ON, so subnet mask =255.255.128.0, No. of subnets= 2*1= 2, No. of hosts per subnet= 215-2(How this is possible? I didn't get it ) please explain or correct if it is wrong.?

author
  • Total 1 Answer
  • 418
Can You answer this question?
author

Hello,

Number of host per subnet wrong

we know for ipv4 address total 24 octad 

where network bit 8+8+1 =9

host bit  = 15

number of host per subnet  2*15-2 = 32768-2

                                    = 32766

Whoops, looks like something went wrong.

1/1 ErrorException in Filesystem.php line 111: file_put_contents(/var/www/html/storage/framework/sessions/cQgDnfE5qTGKp3n9gtNwLKDwyJIshobBemQbG3bk): failed to open stream: No space left on device

  1. in Filesystem.php line 111
  2. at HandleExceptions->handleError(2, 'file_put_contents(/var/www/html/storage/framework/sessions/cQgDnfE5qTGKp3n9gtNwLKDwyJIshobBemQbG3bk): failed to open stream: No space left on device', '/var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php', 111, array('path' => '/var/www/html/storage/framework/sessions/cQgDnfE5qTGKp3n9gtNwLKDwyJIshobBemQbG3bk', 'contents' => 'a:4:{s:6:"_token";s:40:"6YXHD4qiQpxCHTskMwm9q5ROW68gYFwYqh4Icrk2";s:11:"viewed_urls";a:1:{i:0;s:206:"example-1-network-address-1721600-cidr-17-17-bits-are-on-so-subnet-mask-2552551280-no-of-subnets-21-2-no-of-hosts-per-subnet-215-2how-this-is-possible-i-didnt-get-it-please-explain-or-correct-if-it-is-wrong";}s:9:"_previous";a:1:{s:3:"url";s:234:"http://www.networkbulls.com/example-1-network-address-1721600-cidr-17-17-bits-are-on-so-subnet-mask-2552551280-no-of-subnets-21-2-no-of-hosts-per-subnet-215-2how-this-is-possible-i-didnt-get-it-please-explain-or-correct-if-it-is-wrong";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}', 'lock' => true))
  3. at file_put_contents('/var/www/html/storage/framework/sessions/cQgDnfE5qTGKp3n9gtNwLKDwyJIshobBemQbG3bk', 'a:4:{s:6:"_token";s:40:"6YXHD4qiQpxCHTskMwm9q5ROW68gYFwYqh4Icrk2";s:11:"viewed_urls";a:1:{i:0;s:206:"example-1-network-address-1721600-cidr-17-17-bits-are-on-so-subnet-mask-2552551280-no-of-subnets-21-2-no-of-hosts-per-subnet-215-2how-this-is-possible-i-didnt-get-it-please-explain-or-correct-if-it-is-wrong";}s:9:"_previous";a:1:{s:3:"url";s:234:"http://www.networkbulls.com/example-1-network-address-1721600-cidr-17-17-bits-are-on-so-subnet-mask-2552551280-no-of-subnets-21-2-no-of-hosts-per-subnet-215-2how-this-is-possible-i-didnt-get-it-please-explain-or-correct-if-it-is-wrong";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}', 2) in Filesystem.php line 111
  4. at Filesystem->put('/var/www/html/storage/framework/sessions/cQgDnfE5qTGKp3n9gtNwLKDwyJIshobBemQbG3bk', 'a:4:{s:6:"_token";s:40:"6YXHD4qiQpxCHTskMwm9q5ROW68gYFwYqh4Icrk2";s:11:"viewed_urls";a:1:{i:0;s:206:"example-1-network-address-1721600-cidr-17-17-bits-are-on-so-subnet-mask-2552551280-no-of-subnets-21-2-no-of-hosts-per-subnet-215-2how-this-is-possible-i-didnt-get-it-please-explain-or-correct-if-it-is-wrong";}s:9:"_previous";a:1:{s:3:"url";s:234:"http://www.networkbulls.com/example-1-network-address-1721600-cidr-17-17-bits-are-on-so-subnet-mask-2552551280-no-of-subnets-21-2-no-of-hosts-per-subnet-215-2how-this-is-possible-i-didnt-get-it-please-explain-or-correct-if-it-is-wrong";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}', true) in FileSessionHandler.php line 83
  5. at FileSessionHandler->write('cQgDnfE5qTGKp3n9gtNwLKDwyJIshobBemQbG3bk', 'a:4:{s:6:"_token";s:40:"6YXHD4qiQpxCHTskMwm9q5ROW68gYFwYqh4Icrk2";s:11:"viewed_urls";a:1:{i:0;s:206:"example-1-network-address-1721600-cidr-17-17-bits-are-on-so-subnet-mask-2552551280-no-of-subnets-21-2-no-of-hosts-per-subnet-215-2how-this-is-possible-i-didnt-get-it-please-explain-or-correct-if-it-is-wrong";}s:9:"_previous";a:1:{s:3:"url";s:234:"http://www.networkbulls.com/example-1-network-address-1721600-cidr-17-17-bits-are-on-so-subnet-mask-2552551280-no-of-subnets-21-2-no-of-hosts-per-subnet-215-2how-this-is-possible-i-didnt-get-it-please-explain-or-correct-if-it-is-wrong";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}') in Store.php line 128
  6. at Store->save() in StartSession.php line 88
  7. at StartSession->terminate(object(Request), object(Response)) in Kernel.php line 216
  8. at Kernel->terminateMiddleware(object(Request), object(Response)) in Kernel.php line 187
  9. at Kernel->terminate(object(Request), object(Response)) in index.php line 59
  10. at require_once('/var/www/html/public/index.php') in index.php line 20