Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

routing and summarising

Hi all, I have just been reading up about ospf, what I want to know is, If a have a router that is summarised to advertise the 192.168.0.0 network, and the router at the other end sees this, If I then put another router at another site and advertise the 192.168.1.0 network, will it be routed correctly, as routers should use the longest match criteria ?

9 REPLIES
New Member

Re: routing and summarising

that will not work, because those two networks overlap. One router is advertising 192.168.0.0 and the other is advertising 192.168.1.0. The first router already has 192.168.1.0 included in its summarized address space.

New Member

Re: routing and summarising

but we could achieve this using static routes, why would it not work in this way?

New Member

Re: routing and summarising

you might be able to get it to work with static routes but you are talking about using dynamic routing protocol in your first post. Your first router is saying, everything belonging to 192.168.0.0 255.255.0.0 is behind me, and then if you add a router saying 192.168.1.0 255.255.255.0 is behind me.....that won't work. they overlap.

explain your topology, maybe i am missing something.

New Member

Re: routing and summarising

By default, summary LSAs are not summarized so you would need to provide the mask information to get a proper answer.

If you're asking about classful addressing then those two networks do not overlap. One router is advertising 192.168.0.0. This is a class C network so the summary is 192.168.0.0/24. The other router is advertising 192.168.1.0. The the summary for this network is 192.168.1.0/24. These are two completely different networks and that would work.

New Member

Re: routing and summarising

ah...192.168.0.0 /24. I was thinking of it summarized as 192.168.0.0 /16.

Hall of Fame Super Silver

Re: routing and summarising

Hello Carl,

ospf supports classless routing variable length subnet mask because it carries the prefix with the mask.

So in all cases routing will be correct:

for example:

192.168.0.0/23

192.168.1.0/24 the second is more specific and will be used for a destination 192.168.1.x

your understanding of longest prefix match first is correct.

as explained in other thread

net 192.168.0.0 usually means 192.168.0.0/24 the example I reported above is possible at the area boundary on the ABR router.

Hope to help

Giuseppe

New Member

Re: routing and summarising

Hi there, so would it work then? if I had 1 router advertising the 192.168.0.0/16 network and the other advertising the 192.168.1.0/24 network?

New Member

Re: routing and summarising

It will only work if you advertise 192.168.0.0 /24, not /16.

New Member

Re: routing and summarising

so what would happen on the router in between these 2 networks? how would the routing table look, and would it not install the /24 route if there was already a /16 present?

235
Views
0
Helpful
9
Replies
CreatePlease login to create content