- Mon Sep 12, 2016 12:06 am
#54927
I guess for now if i want it available it will be create a setting variable for it. Tbh, that it's never come up before probably shows that the default 255 approach works fine for home setups. The esp must iuse the default gateway info from dhcp even though espbasic ( and the sdk?) don't have a way to display it.
Forlotto - i kmow what you mean about sometimes being led astray by an understanding based on experience. I've designed or approved a few addressing schemes over the years but tbh for small private networks using a home router to connect a single site to the outside world .......
You're right, all a subnet mask really does is allow you to override the default split in an ip address between the network portion and the device portion. That's only really useful when you have a limited address range or a lot of networks. With ip4, the chances of getting a 'real' ip4 address allocation big enough to cover every device in a large network were close to zeo 20 years ago, a lot less now, and nobody wants that many points of of entry to police. So you choose your own internal addresses, and most people would pick one that was easily human readable, that is using byte boundaries....its just easier. So as long as you pick an address range that is in the right class, the default mask is fine. Easier still, most home routers don't allow global broadcssts outside the private/local side of the network (commercial routers may allow some specific purpose broadcasts out, usually with contrained delivery to help avoid broadcast storms - eg a bootp 'helper' - hence you could use 255.255.255.255 inside a local network. But specifically targeted is much more elegant...