cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
337
Views
0
Helpful
3
Replies

summary addresses and static routing

paul_xedos
Level 1
Level 1

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 3

Kevin Dorrell
Level 10
Level 10

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

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

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco