Since the router already knows its LAN IP address and subnet mask, so would it be nice of you don't have to redefine it everywhere else?
Some of the LAN addresses I can think of:
Static DHCP requires full 32-bit values for the fixed IP address for your devices.
DHCP server requires full 32-bit values for dynamic address ranges.
QoS rules that use LAN addresses
- If you ever need to reconfigure your subnet (e.g. from 192.168.1.x to 192.168.3.x) , there is only one spot to change.
- Might also save a few bytes of NVRAM.
So instead of the full 32-bit address, only specify the LSB that is mattered to you.
e.g. 192.168.0.123 could become .123 or .0.123 depending on your size of your netmask.
If the LAN address starts with a number, fall back to to treating it as full 32-bit.
If the LAN address starts with a '.', treats it as the short form.
full address = ( LAN IP address & subnet mask ) | ( short form address &~subnet mask)
Could also leaving out "&~subnet mask" if the user really know what he wants.