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

Subnetting Question

Im not good at subnetting. I have this situation where this particular site will be moving to another place. I have this route going to this central site:

IP route 10.10.0.0 255.255.0.0 10.1.255.2

Out of the above IP's I want to seperate 10.10.96.0. Can someone help me out on this. Im still learning subnetting.

Can I just do it like this: ip route 10.10.96.0 255.255.255.0 10.1.255.6

2 REPLIES

Re: Subnetting Question

You can give both the routes, the router will route packets according to longest match rule.

ip route 10.10.96.0 255.255.255.0 10.1.255.6

IP route 10.10.0.0 255.255.0.0 10.1.255.2

Both routes will be ro uting table. When a packet comes for 10.10.96.0 subnet, router will forward packets, using the most specific matched route (which would be 10.10.96.0/24) and will be forwarded to 10.1.255.6. When a packet comes for another subnet, it would use 10.10.0.0/16 route and will be forwarded to 10.1.255.2.

New Member

Re: Subnetting Question

Thanks..I will try and let you know

100
Views
0
Helpful
2
Replies
CreatePlease to create content