As I understand Cisco IOS takes subnet mask from interface to which is network connected and put it in RIPv2 updates.

Could you advice please if it possible to somehow manualy set subnet mask of RIPv2 updates (in Cisco IOS)?

For instance assuming that I have following topology:


How should be configured R1 in way to advertise only network A.B.C.D/28 but not entire network A.B.C.D/24?

It's strange that configuring of subnet mask for RIPv2 is not supported by wide range of vendors (actually I don't know the one who supports it:))

Do you know if there are any RIPv2 standart limitation for it?

Thank you.

1 Answer 1


RIPv2 with the no auto-summary option will advertise the specific routes, not the aggregated prefix, unless you you use the ip summary-address rip interface command.

The network statements in RIP are not specifically telling RIP what prefix(es) to advertise, they tell RIP which interfaces should participate in RIP, and RIP will get the specific prefix(es) from the interface(s) which fall into the network statement. This is true for most routing protocols on Cisco routers, and it is a source of confusion for many people. For instance:

interface FastEthernet0/0
 ip address

interface FastEthernet0/1
 ip address

interface FastEthernet1/0
 ip address

router rip
 version 2
 no auto-summary

The above configuration will run RIP on F0/0 and F0/1, but not F1/0. RIP will advertise two routes: and

There are Cisco documents, such as Configuring Routing Information Protocol which explain RIP route summarization:

Restrictions to RIP Route Summarization

Supernet advertisement (advertising any network prefix less than its classful major network) is not allowed in RIP route summarization, other than advertising a supernet learned in the routing tables. Supernets learned on any interface that is subject to configuration are still learned. For example, the following summarization is invalid:

interface E1
ip summary-address rip (invalid supernet summarization)

Each route summarization on an interface must have a unique major net, even if the subnet mask is unique. For example, the following is not permitted:

interface Ethernet1
ip summary-address rip
ip summary-address rip (or different mask)
  • Thank you for answer. For example having; interface E1 ip address There is no way to advertise only insted of configured on interface /24? Dec 13, 2015 at 7:42
  • If the subnet on the interface is a /28, then you can advertise the /28 subnet using the no auto-summary command, but you can't advertise anything with a larger mask than you have. In other words, you can't change the masks of what you advertise, except in summaries. Why, if your subnet is /24, would you want to advertise /28? That sort of thing only leads to hosts which can't be reached. Off the top of my head, I don't recall any routing protocol which allows that.
    – Ron Maupin
    Dec 13, 2015 at 8:08
  • Thanks for clarification. As far as I know OSPF is allowing it. We can specify wilcard mask of the network: router ospf 1 network area 0 Dec 13, 2015 at 9:26
  • The network statement only specifies the interfaces which will participate in OSPF. It does not tell OSPF what prefix length to advertise. That is a real point of confusion, especially among newbies.
    – Ron Maupin
    Dec 13, 2015 at 9:29
  • @DmitriiGangan, let me put it this way: Having two interfaces, and, and the OSPF network statement of (your wildcard mask is wrong) will only tell OSPF to run on the first interface, and it will advertise the prefix, not the which the network statement translates to (wildcard The other interface will not participate in OSPF unless there is a network statement encompassing it.
    – Ron Maupin
    Dec 13, 2015 at 9:39

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.