I have learned that, in routing config, a router must advertise all of its networks.
For example, in this topo:
Router A need to network 192.168.1.1 0.0.0.255
and network 100.1.1.2 0.0.0.255
But why need to network 100.1.1.2 0.0.0.255
?
I mean, if A only advertise 192.168.1.0, then B received it and think: "OH ok, A has that network, so when I need to send anything to 192.168.1.0, I just forward it to A, which is my interface F0/0". Cause they are directly connected, so B must knows A's IP address(next hop),right?
I must be wrong, I just don't know how. Cause I tested my self, it won't work.