Joined: 30 Jul 2006 Posts: 4 Location: United States
Post subject: 2 hops to ping myself? Posted: Thu Jan 04, 2007 8:53 pm
Help others: Review your books and training products here
I have connected two routers. The router that I use to issue the ping has an IP address of 68.43.52.100 and a default gateway of 68.43.52.1 (next-hop router). When I send an ICMP echo request packet to 68.43.52.100 (local router), it forwards it to the default gateway of 68.43.52.1! Then the default gateway sends back to me an ICMP bogus redirect message that says to forward my echo requests to 68.43.52.100, which is my local router. I was wondering why the router would be so silly to use the default gateway when the destination IP address is local.
Quote:
#show ip route
Gateway of last resort is 68.43.52.1 to network 0.0.0.0
68.0.0.0/24 is subnetted, 1 subnets
C 68.43.52.0 is directly connected, Serial0
C 192.168.1.0/24 is directly connected, Ethernet0
S* 0.0.0.0/0 [1/0] via 68.43.52.1
Joined: 26 Feb 2003 Posts: 5546 Location: New Zealand
Post subject: Posted: Fri Jan 05, 2007 1:44 am
Help others: Review your books and training products here
how are you connected to the router
what does debug ip packet say _________________ Koen
CCSI #30501 CCNP CCIP CCVP CCSP CCDP Cisco Advanced Wireless LAN Field Specialist Cisco Unity Design Specialist Cisco IP Telephony Design Specialist JNCIS-ES JNCIA-ER JNCIA-EX MCSE MCSA:Messaging
Joined: 30 Jul 2006 Posts: 4 Location: United States
Post subject: Posted: Fri Jan 05, 2007 11:01 am
Help others: Review your books and training products here
The two routers are connected by a point-to-point DTE/DCE serial cable. The serial cable connects R1's S0 interface (68.43.52.100) to R2's S0 interface (68.43.52.1). I am issuing the IOS "ping" command while being consoled into R1.
Quote:
Gateway of last resort is 68.43.52.1 to network 0.0.0.0
68.0.0.0/24 is subnetted, 1 subnets
C 68.43.52.0 is directly connected, Serial0
C 192.168.1.0/24 is directly connected, Ethernet0
S* 0.0.0.0/0 [1/0] via 68.43.52.1
Quote:
R1#show run interface serial 0
Building configuration...
Current configuration : 80 bytes
!
interface Serial0
ip address 68.43.52.100 255.255.255.0
end
Removing the default static route from my IP routing table did not have an effect.
Quote:
R1#traceroute 68.43.52.100
Type escape sequence to abort.
Tracing the route to 68.43.52.100
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 68.43.52.100, timeout is 2
!!!
*Mar 1 00:04:55.283: IP: tableid=0, s=68.43.52.100 (local), d=68.43.52.100 (Ser
ial0), routed via RIB
*Mar 1 00:04:55.287: IP: s=68.43.52.100 (local), d=68.43.52.100 (Serial0), len
100, sending
*Mar 1 00:04:55.319: IP: tableid=0, s=68.43.52.1 (Serial0), d=68.43.52.100 (Ser
ial0), routed via RIB
*Mar 1 00:04:55.323: IP: s=68.43.52.1 (Serial0), d=68.43.52.100 (Serial0), len
56, rcvd 3
*Mar 1 00:04:55.331: IP: tableid=0, s=68.43.52.100 (Serial0), d=68.43.52.100 (S
erial0), routed via RIB
*Mar 1 00:04:55.335: IP: s=68.43.52.100 (Serial0), d=68.43.52.100 (Serial0), le
n 100, rcvd 3
*Mar 1 00:04:55.343: IP: tableid=0, s=68.43.52.100 (local), d=68.43.52.100 (Ser
ial0), routed via RIB
*Mar 1 00:04:55.347: IP: s=68.43.52.100 (local), d=68.43.52.100 (Serial0), len
100, sending
*Mar 1 00:04:55.379: IP: tableid=0, s=68.43.52.100 (Serial0), d=68.43.52.100 (S
erial0), routed via RIB
*Mar 1 00:04:55.383: IP: s=68.43.52.100 (Serial0), d=68.43.52.100 (Serial0), le
n 100, rcvd 3
*Mar 1 !!
Success rate is 100 percent (5/5), round-trip min/avg/max = 96/109/144 ms
R1#00:04:55.391: IP: tableid=0, s=68.43.52.100 (local), d=68.43.52.100 (Serial0)
, routed via RIB
*Mar 1 00:04:55.395: IP: s=68.43.52.100 (local), d=68.43.52.100 (Serial0), len
100, sending
*Mar 1 00:04:55.431: IP: tableid=0, s=68.43.52.100 (Serial0), d=68.43.52.100 (S
erial0), routed via RIB
*Mar 1 00:04:55.435: IP: s=68.43.52.100 (Serial0), d=68.43.52.100 (Serial0), le
n 100, rcvd 3
*Mar 1 00:04:55.439: IP: tableid=0, s=68.43.52.100
ial0), routed via RIB
*Mar 1 00:04:55.443: IP: s=68.43.52.100 (local), d=68.43.52.100 (Serial0), len
100, sending
*Mar 1 00:04:55.479: IP: tableid=0, s=68.43.52.100 (Serial0), d=68.43.52.100 (S
erial0), routed via RIB
*Mar 1 00:04:55.483: IP: s=68.43.52.100 (Serial0), d=68.43.52.100 (Serial0), le
n 100, rcvd 3
*Mar 1 00:04:55.491: IP: tableid=0, s=68.43.52.100 (local), d=68.43.52.100 (Ser
ial0), routed via RIB
*Mar 1 00:04:55.495: IP: s=68.43.52.100 (local), d=68.43.52.100 (Serial0), len
100, sending
*Mar 1 00:04:55.531: IP: tableid=0, s=68.43.52.100 (Serial0), d=68.43.52.100 (S
Restricted Rights Legend
U
erial0), routed via RIBlosure by the Governmen
*Mar 1 00:04:55.535: IP: s=68.43.52.100 (Serial0), d=68.43.52.100 (Serial0), leas set forth in subparagraph
n 100, rcvd 3mmercial Comp
*Mar 1 00:04:55.539: IP: tableid=0, s=68.43.52.100 (local), d=68.43.52.100 (Serghts clause at FAR sec. 52.227-19 and subparagraph
ial0), routed via RIB
(c) (1) (ii) of the
*Mar 1 00:04:55.543: IP: s=68.43.52.100 (local), d=68.43.52.100 (Serial0), len
Software clause at DFARS sec. 252.227-7013.
100, sending
*Mar 1 00:04:55.579: IP: tableid=0, s=68.43.52.100 (Serial0), d=68.43.52.100 (Sasman Drive
San Jose, California 9513
erial0), routed via RIB
100, sending00
*Mar 1 00:04:55.675: IP: tableid=0, s=68.43.52.100 (Serial0), d=68.43.52.100 (S
*Mar 1 00:04:55.683: IP: tableid=0, s=68.43.52.100 (local), d=68.43.52.100 (Ser
ial0), routed via RIB
*Mar 1 00:04:55.687: IP: s=68.43.52.100 (local), d=68.43.52.100 (Serial0), len
100, sending
*Mar 1 00:04:55.723: IP: tableid=0, s=68.43.52.100 (Serial0), d=68.43.52.100 (S
erial0), routed via RIB
*Mar 1 00:04:55.727: IP: s=68.43.52.100 (Serial0), d=68.43.52.100 (Serial0), le
n 100, rcvd 3
*Mar 1 00:04:55.735: IP: tableid=0, s=68.43.52.100 (local), d=68.43.52.100 (Ser
ial0), routed via RIB
*Mar 1 00:04:55.739: IP: s=68.43.52.100 (local), d=68.43.52.100 (Serial0), len
100, sending
*Mar 1 00:04:55.775: IP: tableid=0, s=68.43.52.100 (Serial0), d=68.43.52.100 (S
erial0), routed via RIB
*Mar 1 00:04:55.779: IP: s=68.43.52.100 (Serial0), d=68.43.52.100 (Serial0), le
n 100, rcvd 3
*Mar 1 00:04:55.783: IP: tableid=0, s=68.43.52.100 (local), d=68.43.52.100 (Ser
ial0), routed via RIB
*Mar 1 00:04:55.787: IP: s=68.43.52.100 (local), d=68.43.52.100 (Serial0), len
100, sending
*Mar 1 00:04:55.823: IP: tableid=0, s=68.43.52.100 (Serial0), d=68.43.52.100 (S
erial0), routed via RIB
*Mar 1 00:04:55.827: IP: s=68.43.52.100 (Serial0), d=68.43.52.100 (Serial0), le
n 100, rcvd 3
Note If the IP version of the ping command is used on a directly connected interface, the packet is sent out the interface and should be forwarded back to the router from the far end. The time travelled reflects this round trip route. This feature can be useful for diagnosing serial line problems. By placing the local or remote CSU/DSU into loopback mode and "pinging" your own interface, you can isolate the problem to the router or leased line.
Basically the packet is sent out the interface to perform the ping test. You will not notice it on a broadcast medium like Ethernet, as there is no intermediary hop, but on a point-to-point or NBMA medium you will need to have the far end route the packet back to you. _________________ --
BSci (Comp Sci, Pure Mathematics)
MCSE NT4.0, MCSE Messaging 2003
CCNA, CCDA, CCNP, CCDP, CCIP, CCVP
CQS IP Tel, Unity,
CCIE R+S written, pursuing lab.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
Sponsor
Sponsor
Training Picks
CareerAcademy Expert-led On-Demand Certification training courses with 7x24 LIVE Mentoring. Topics cover MCSE 2008 Training, A+ Certification, IT Security CEH Training, Cisco Training and many more.Training Videos We offer streaming or CD certification training videos for Microsoft, CompTIA, Cisco, Citrix, Oracle, CISSP, CET, CWNA, LPI, SCJP, CIW, MOS, PMP and other certifications. View our free videos!EDULEARN Certification Training on CD-ROMs & Videos: Microsoft MCSE Training, A+ Certification, Windows 2003, & Free demos. MCSE certification training includes videos and labs.Online Computer Trainingby K Alliance. Certification training videos for MCTS, MCITP, Oracle OCA/OCP, A+, CCNA, RHCE and more. Our e-learning courses come with 24/7 online mentoring.More Training