❔ Wanna impress my programing teacher
Hi just curious how to ping a subnet. My programing teacher did not wanna tell us how to do it so I wanna do it on my own. On git hub there are many solutions so should i try them all or?
17 Replies
what do you expect "pinging a subnet" to do
you don't ping subnets, you ping devices
ah
a subnet isn't a thing that can respond to a message
it's a layer of organization of a network
I dont exactly know we were mentioning pinging devices and he told us we can ping every device that is on a "subnet". Maybe i did not undersand him corectly but he did not tell us how to do it so just curious if I can figure it out.
i mean you can do that, but not in one go
maybe that's what he wants you to figure out
is not pinging devices just getting a response from every device on a network?
Maybe he tried to tell you about a Ping to the broadcast default address.
But that should be hard to do nowadays.
it's getting a response from one device
Every router/switch seize that kind of "pings"
so if you want to ping all the devices on a subnet, i would expect the solution would involve figuring out all the IP addresses within that subnet and pinging them one by one
yea i think he said something along those lines
let me see if i can see how to do that
would this work to ping all devices on my subnet ping 255.255.255.255?
that would ping a lot of stuff and it would take probably a whole day or two -- i tried (and require admin privileges (and maybe cause bad things with the isp))
you should at least have a subnet mask
what is a subnet mask
like what problems with my isp?
the "address" of the network, just google it
shooting packets at every address imaginable could be a suspicious behavior
that's not quite what it is
the subnet mask basically tells you which bits of the address are "inside" the subnet
that's why it's called a mask
i know, but i said google that because at the moment i couldn't find the words
like i would have said usually the higher 16 or 24 bits of the ip are for the network
but i don't know his level of knowledge, finding simple enough concepts to explain
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.