Using network 0.0.0.0 with RIP

According to Cisco IOS documentation, the network RIP router configuration command accepts a major network number (without subnets) as its parameter. The common wisdom says that you have to list all major networks attached to your router if you want to run RIP on all interfaces. You could get the same results by using network 0.0.0.0 router configuration command.

3 comments:

  1. That surprises me. I would have thought that it would have advertised on any interface whose network was 0.0.0.0-0.255.255.255. I typed the command on my router and it did advertise on all interfaces.

    ReplyDelete
  2. Yes, that works, I tried it with IOS 12.3 and 12.3T.
    BUT: As far as I can remember it worked only if the command was entered while the router was running but not after a reload. After a reload, the command was still in the startup- and running-config but the routing didn't work.
    You had to re-enter the command to get it running...

    But who cares about RIP "Rest In Peace" Routing... ;-)

    ReplyDelete
  3. And if there exists a default route in the routing table, the statement "network 0.0.0.0" would inject a default route into the RIP domain apart from advertising all interfaces.

    sharath

    ReplyDelete

You don't have to log in to post a comment, but please do provide your real name/URL. Anonymous comments might get deleted.

Ivan Pepelnjak, CCIE#1354, is the chief technology advisor for NIL Data Communications. He has been designing and implementing large-scale data communications networks as well as teaching and writing books about advanced technologies since 1990. See his full profile, contact him or follow @ioshints on Twitter.