N
N
Nik2015-05-25 09:54:58
Cisco
Nik, 2015-05-25 09:54:58

What is the setting for Cisco ip subnet-zero switches?

I apologize for the noob question.
Met in many configs such line
ip subnet-zero
What does it mean?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
throughtheether, 2015-05-25
@Lastok

I will add to what has already been said.
The command makes sense for classful allocation of addresses. In the example given by Valentine , it turns out that the class network and its "zero" subnet have the same number (192.168.1.0). Apparently for this reason RFC950 recommends:
Classful routing works like this:
1) when a packet is received with a destination address, for example, 192.168.1.1, its (classic) network number, 192.168.1.0, is determined.
2) the router checks if there is a network in the routing table
3) the router checks if the subnet (192.168.1.0/27) corresponding to the destination address is in the routing table and forwards the packet according to the next-hop entry.
The command ip subnet-zeroaffects step 3 of this process, if it is activated, the desired subnet will be present in the routing table and the packet will be redirected accordingly. Without this command, the packet will be dropped (if there is a classful network entry but no subnet entry).
In the current conditions, when routing is based on the search for the most exactly matching prefix (longest prefix match), the command is irrelevant, because. the problem it solves does not arise (192.168.1.0/24 and 192.168.1.0/27 are different prefixes, there is no confusion, and accordingly it makes no sense to prohibit the use of "zero subnets").

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question