the is a quad zero route configured, so if there is a packet with a destination address of 192.168.16.1 then it will be routed using the default of 192.168.0.66, noted as the gateway of last resort as per the output below.
HTH Chuck ""Priscilla Oppenheimer"" wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > At 11:38 PM 5/30/02, shiju joseph wrote: > >Hi, > > > >Got a doubt regarding, how router selects a particular > >route from the routing table. I have a route to 192.168.16.192/26 > >through 192.168.15.130 and 192.168.15.134. If a packet > >comes with the destination address as 192.168.16.1, what will > >happen ??. I think, since I have subnet zero possible, 192.168.16.1 > >will fall into 192.168.16.0/26 > > The final octet for the destination 192.168.16.1 is 00000001. The first two > bits (high-order bits) are part of the prefix if you use /26. > > Your router doesn't know how to get to 192.168.16.0/26. There's no route > where the final octet is 00000000. The ip subnet zero command would allow > you to locally configure an interface into this subnet, but you haven't. e0 > and e1 are in 192.168.16.64 (01000000) and 192.168.16.128 (10000000) > respectively. > > The 192.168.16.192 route has a final octet of 11000000. So that's a > different subnet than the destination also. > > Priscilla > > > >network and will use the > >above mentioned route. But it is using the default route ??? > > > >Any idea ??..or is that I am missing something very basic ?? > > > >logs are attached. > > > > > >Appreciate your comments > >Joseph > > > > > > > >R1#sh ip route > >Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP > > D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area > > N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 > > E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP > > i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter > >area > > * - candidate default, U - per-user static route, o - ODR > > P - periodic downloaded static route > > > >Gateway of last resort is 192.168.0.66 to network 0.0.0.0 > > > > 192.168.15.0/30 is subnetted, 2 subnets > >C 192.168.15.132 is directly connected, Serial3/0 > >C 192.168.15.128 is directly connected, Serial2/0 > >O E2 20.0.0.0/8 [110/30] via 192.168.0.66, 02:35:56, Ethernet1/0 > > 192.168.0.0/26 is subnetted, 2 subnets > >C 192.168.0.64 is directly connected, Ethernet1/0 > >C 192.168.0.128 is directly connected, Ethernet0/0 > > 192.168.16.0/26 is subnetted, 1 subnets > >D 192.168.16.192 [90/2195456] via 192.168.15.130, 00:04:05, Serial2/0 > > [90/2195456] via 192.168.15.134, 00:04:05, Serial3/0 > >O 192.168.1.0/24 [110/20] via 192.168.0.130, 02:35:56, Ethernet0/0 > > [110/20] via 192.168.0.66, 02:35:56, Ethernet1/0 > >S* 0.0.0.0/0 [1/0] via 192.168.0.66 > >R1# > >R1# > >R1# > >R1#deb ip pa > >IP packet debugging is on > >R1# > >R1#ping 192.168.16.1 > > > >Type escape sequence to abort. > >Sending 5, 100-byte ICMP Echos to 192.168.16.1, timeout is 2 seconds: > >U > >*May 30 07:34:15.475: ICMP: dst (192.168.0.65) host unreachable rcv from > >192.168.0.66.U > >*May 30 07:34:17.515: ICMP: dst (192.168.0.65) host unreachable rcv from > >192.168.0.66.U > >Success rate is 0 percent (0/5) > >R1# > >*May 30 07:34:19.555: ICMP: dst (192.168.0.65) host unreachable rcv from > >192.168.0.66 > >R1# > >R1# > >R1# > >R1#sh run | inc sub > >ip subnet-zero > >R1# > >R1# > >R1#sh run | inc cl > >clock timezone IST 5 30 > >ip classless > >R1# > >R1# > > > > > > > > > > > >------------------------------------------------ > >Join Excite! - http://www.excite.com > >The most personalized portal on the Web! > ________________________ > > Priscilla Oppenheimer > http://www.priscilla.com Message Posted at: http://www.groupstudy.com/form/read.php?f=7&i=45496&t=45496 -------------------------------------------------- FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]