Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

summary addresses and static routing

Hi,I'm not sure if it possible to use summary addresses and static routing but here's the problem:-

We have a class b network 10.31.x.x and a gateway of 10.31.0.1 and within that we want to have the class c's 10.31.1.x, 10.31.2.x each with their own g/way. I know that you can summarize with dynamic routing so that external routers only need to point to one 10.31.0.1 to get to hosts on 10.31.1.x but was not sure if you could do this with static routes?

Thanks

Paul

3 REPLIES

Re: summary addresses and static routing

I'm not sure if this is your question, but ... yes you can have static routes that are subsets of each other. The more specific route wins.

For example, in your routing table you could have:

ip route 10.30.0.0 255.255.0.0 Serial1/0

ip route 10.30.1.0 255.255.255.0 Serial1/1

ip route 10.30.2.0 255.255.255.0 Serial1/2

So, anything destined for any part of the class B would be send to Serial1/0 except destinations that fall into 10.30.1.0/24 or 10.30.2.0/24, which would be routed to Serial1/1 or Serial 1/2 respectively.

I am using interface destinations for illustration - they could just as well be IP next-hop addresses.

You can even have the Class C routes from a dynamic routing protocol and the class B as a static if you want.

Does that answer your question?

Kevin Dorrell

Luxembourg

New Member

Re: summary addresses and static routing

Hi Kevin,

Thanks for the help but I was rather hoping to avoid adding specific route commands by using something similar to route summarisation found in dynamic routing protocols

Cheers

Paul

Re: summary addresses and static routing

In that case, I don't think there is anything. But since the scope of a static route is only local, what advantage would there be to configuring it as a (hypothetical) summary on an interface rather than as a static route? I don't think I fully understand what you are trying to achieve.

Kevin Dorrell

Luxembourg

112
Views
0
Helpful
3
Replies
CreatePlease to create content