02-06-2010 02:12 PM - edited 03-06-2019 09:36 AM
hello
i would like to ask if i can use the 10.2.0.0/16 and the 10.2.130.0/24 subnets in the same router using only static routes. Im not so sure because the second network seems to be subnet from the first network which is subnet from the 10.0.0.0 network .
thanks
Solved! Go to Solution.
02-06-2010 02:40 PM
Hello Cooman,
if we speak of static routes, this is possible.
Example:
ip route 10.2.130.0 255.255.255.0 ser0/0
ip route 10.2.0.0 255.255.0.0 ser0/1
a packet with IP destination = 10.2.130.25 will be sent out ser0/0
a packet with IP destination = 10.2..131.25 will be sent out ser0/1
Most specific route is used first this is a general rule valid also for routes learned by routing protocols.
It is not possible to assign overlapping IP addresses to different interfaces.
Hope to help
Giuseppe
02-06-2010 02:40 PM
Hello Cooman,
if we speak of static routes, this is possible.
Example:
ip route 10.2.130.0 255.255.255.0 ser0/0
ip route 10.2.0.0 255.255.0.0 ser0/1
a packet with IP destination = 10.2.130.25 will be sent out ser0/0
a packet with IP destination = 10.2..131.25 will be sent out ser0/1
Most specific route is used first this is a general rule valid also for routes learned by routing protocols.
It is not possible to assign overlapping IP addresses to different interfaces.
Hope to help
Giuseppe
02-06-2010 03:00 PM
thanks for the reply but how i can be sure if a network is overlapping another?
02-06-2010 04:48 PM
Learn subnetting and masking . If you are working on networks you will need to know this otherwise download a subnet calculator and use that to figure it out .
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide