On my router I'm having a following static routing configuration:
ID | Destination | Subnet | Gateway | Interface |
---|---|---|---|---|
1 | 0.0.0.0 | 0.0.0.0 | <3-octet base>.1 | wan |
2 | <3-octet-base>.0 | 255.255.255.0 | 0.0.0.0 | wan |
3 | 192.168.1.0 | 255.255.255.0 | 0.0.0.0 | lan |
I'd love to understand justification of each of those entries, considering:
- my router IP is set to
192.168.1.1
- my ISP provider Gateway is set to
<3-octet-base>.1
- my dynamic IP is assigned to one of
<3-octet-base>.0/24
pole
Please correct my understanding, but do I get this correctly:
ID 1 is example of "catch-all", so if any IP from any range is send, pass it to <3-octet base>.1
, what would be my ISP next hop gateway
ID 2 is to pass all inner-ISP sub-network <3-octet base>.0/24
to direct IP address, omitting gateway (thus gateway address is zeroed)
ID 3 is to pass all my inner-home network adresses to directly communicate with each other without usage of my network gateway (router in this case) (thus gateway address is zeroed)
And next question is, does all those entries are mandatory? Will the routing with/without them will be more/less efficient?
And extra question to entry no. 3, isn't that the case, that if all devices are using correct subnet mask, then this entry is completely useless, as inner-network communication always happens without gateway?
Many thanks in advance for your advanced knowledge!