I have a very stupid question,
Let's say i have 2 routers. Router # A and Router # B. On Router # B I have a subnet defined on Fast Ethernet 0/0 ( 10.10.10.1/24) and there are some workstations sitting behind Fas0/0 ( 10.10.10.0/24). But now on the Fas0/1 i have defined ( 10.10.10.64/26).
Now on Router # A wants to communicate with Router # B subnets, so i have a static route saying " ip route 10.10.10.0 255.255.255.0 next hop will be Router # B connection right...So for /24 Router # A will go to # B to access workstations sitting on fas0/0 ( 10.10.10.0/24)
But at the same time for network 10.10.10.64/26 sitting behind fas0/1 can i also have a static route on Router # A "ip route 10.10.10.64/26 to access with the next hop on Router # B"
My problem is with static routes one with 10.10.10.0/24 this covers the range which is defined on Fas0/1 on Router # B. Will this static route work even though /24 covers the range of /26. Wouldn't router be confused with 2 static route one specific and the other one with /24...I hope i am clear where my confusion is...
Hassan ... let's get one thing sorted out ... there is no such thing as a stupid question. Occasionally there are stupid answers tho' ;-)
About 10.10.10.0/24 and 10.10.10.64/26, one single router will not allow you to do that. It will not accept overlapping ranges on the interfaces. However, what it will allow you is 10.10.10.0/24 on F0/0 and a static route to F0/1 for 10.10.10.64/26, provided F0/1 already has another IP address on it to enable IP.
I'm not sure I understand your addresing scheme and topology well, but I think I can answer your question. A more specific route will always have priority over a less specific one. So if you have 10.10.10.0/24 going to destination X, and 10.10.10.64/26 going to destination Y, then anything in 10.10.10.64/26 will go to destination Y, and anything in the rest of 10.10.10.0/24 will go to destination X.
Is that OK?