06-24-2010 06:53 AM
Hi peeps, I have a question regarding the next-hop address as shown from the extracts below :
user@host> show route protocol static
inet.0: 12 destinations, 12 routes (12 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both
192.168.2.128/27 *[Static/5] 00:03:13
> to 172.20.106.10 via fe-0/0/5.106
192.168.2.192/26 *[Static/5] 00:03:13
> to 10.210.14.131 via ge-0/0/0.0
192.168.2.192/27 *[Static/5] 00:03:13
> to 172.18.1.1 via ge-0/0/1.0
192.168.2.224/28 *[Static/5] 00:01:06
> to 10.210.14.130 via ge-0/0/0.0
What will be the next-hop IP address used for the destination IP address of 192.168.2.239? (Assume the only routes to this destination are static routes.) Also, kindly explain to me if the interface logical unit plays any role on it.
Thanks in advance!
06-24-2010 08:20 AM
It looks like 10.210.14.130 will be chosen. I'm not quite sure what you mean when you ask whether the interface logical unit plays any role in it...it shouldn't play any role in the actual route selection, but it should play some role in how the router actually reaches the next hop.
06-24-2010 05:05 PM
Yes it is very weird given the fact that I went through some dumps and the answer would be to 172.18.1.1 via ge-0/0/1.0.
I know it sounds crazy and all because even the subnet mask doesn't fit correctly into it! But what's crazier was, 3 out of 3 dumps i've got my hands on, all gave the same answer.
Thus, i was wondering if the interface ge-0/0/0.0 has some special roles on it and is not usable as a next-hop.
06-25-2010 03:37 AM
192.168.2.192/27 *[Static/5] 00:03:13 > to 172.18.1.1 via ge-0/0/1.0
-- cannot possibly match dst.IP == 192.168.2.239 because 192.168.2.192/27 only covers destinations from 192.168.2.192 to 192.168.2.223.
So the dumps You used were incorrect.