In OSPF and EIGRP we can advertise specific networks only using wildcard masks.

For example, if a router has networks and, we can choose to advertise only by typing network This way other routers will learn but not

But in RIPv2 we do not use wildcard mask. If you type network other routers will learn also and all other networks within

So is it even possible to advertise classless networks in RIPv2? If not then how did RIPv2 become classless?

  • Did any answer help you? If so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you can provide and accept your own answer.
    – Ron Maupin
    Commented Dec 15, 2019 at 19:06

2 Answers 2


For example, if a router has networks and, we can choose to advertise only by typing network This way other routers will learn but not

No, you are confused about the network statement. In OSPF, RIPv2, and EIGRP, the network statement tells the routing process which interfaces it should include in the routing process, not what networks to advertise. The routing process will get the actual networks to advertise from the interfaces included in the routing process.

For example, if there is an interface with the address of, and you have an OSPF network statement of network, OSPF will only advertise, not

RIPv2 can advertise non-classful networks if you use the no auto-summary command under the RIP configuration. If there are other interfaces that are included in the classful range, you can filter those in other ways, such as a distribute list, and you can make those interfaces passive with the passive-interface command. Given the same scenario as explained above with OSPF, using RIPv2 with no auto-summary and network, RIPv2 will also advertise the network.

For example, if is on an interface, and you have other interfaces with networks in the classful network, you could use a distribute list to only permit the network. Something like:

access-list 1 permit ! remember the implicit deny all at the end of an access list
router rip
 version 2
 no auto-summary
 distribute-list 1 out <outbound advertising interface>

BGP, on the other hand, does use the network statement to advertise the network, but only if that exact network already exists in the routing table. For example, if is in the routing table, for BGP, network mask will advertise the network, but network mask will not advertise a network.

In general, the IGP network statements tell the IGP which interfaces to include in the routing process, but BGP uses the network statement to determine which networks that exist in the routing table to advertise.

  • passive-interface only prevents a network from sending hellos in RIP. It's still advertised and will learn routes.
    – cpt_fink
    Commented Oct 1, 2019 at 6:29
  • I understand that, which is why I explained that you stop advertising it with the distribute list. I was also very clear that the network statement causes RIP to have the interface participate in RIP.
    – Ron Maupin
    Commented Oct 1, 2019 at 12:15
  • Sorry, that wasn't super clear. It was supposed to clarify that in RIP if you use passive-interface that interface is still participating and will learn prefixes from other RIP routers on that interface, it just won't send hellos, so it's a weird one way filter compared to in EIGRP/OSPF.
    – cpt_fink
    Commented Oct 2, 2019 at 15:39

in order to advertise classless in RIPv2, you should use no auto-summary command under router rip process.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.