cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6773
Views
0
Helpful
38
Replies

Issue with routing?!? I know I'm missing something.

osatronix
Level 1
Level 1

Hi everyone.

I've set up home lab. I have two routers 1721, 1 switch 2950, PC and 2 laptops.

=================================================================================================

My two routers are connected via serial interface. R2 is directly connected to the PC on FastE 0 192.168.1.2.   PC addres 192.168.1.1

Serial int addres 192.168.1.65.

R1 [serial int 192.168.1.66 connected to R2] with FastE 192.168.1.129 is connected to the switch [vlan int 192.168.1.130].

Two laptops are connected to the switch on ports 1 and 2. [192.168.1.131  -  192.168.1.133]

=================================================================================================

The problem I'm having is that I can't ping devices on the other subnets. I have static routing set up on both routers:

R1-

Gateway of last resort is not set

     192.168.1.0/24 is variably subnetted, 4 subnets, 2 masks

C       192.168.1.65/32 is directly connected, Serial0

C       192.168.1.64/26 is directly connected, Serial0

S       192.168.1.0/26 [1/0] via 192.168.1.65

C       192.168.1.128/26 is directly connected, FastEthernet0

R2-

Gateway of last resort is not set

     192.168.1.0/24 is variably subnetted, 4 subnets, 2 masks

C       192.168.1.64/26 is directly connected, Serial0

C       192.168.1.66/32 is directly connected, Serial0

C       192.168.1.0/26 is directly connected, FastEthernet0

S       192.168.1.128/26 [1/0] via 192.168.1.66

The thing when I'm on R2 I'm able to ping R1, switch and laptops - also my PC.

When I'm on R1 it is the same.

BUT. Whan I'm trying to ping something behind the router while on PC or laptops I'm getting this message:

----Reply from x.x.x.x: Destination host unreachable.  -  Packets sent=4 , received 4, lost 0---

Also replying address is different from the one I'm pinging.

I have no idea what is going on.

While setting it I was using Packet Tracer as a guide and created exact clone of this network - and a PT net works fine.

I did  disable firewalls.

I'm attaching PT file.

Please help !!!

----------------------------------------------------------------------------------

R1 config file:

Current configuration : 890 bytes

!

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

service password-encryption

!

hostname Router-1

!

boot-start-marker

boot-end-marker

!

enable secret 5 $1$q0Qj$8hrfpMXpSj4Xr96xFAhyM0

!

no aaa new-model

ip cef

!

!

!

!

!

multilink bundle-name authenticated

!

!

!

!

!

archive

log config

  hidekeys

!

!

!

!

!

!

!

interface FastEthernet0

ip address 192.168.1.129 255.255.255.192

speed auto

!

interface Serial0

ip address 192.168.1.66 255.255.255.192

encapsulation ppp

no fair-queue

!

ip forward-protocol nd

ip route 192.168.1.0 255.255.255.192 192.168.1.65

!

!

no ip http server

no ip http secure-server

!

!

!

!

control-plane

!

banner motd ^C

==================

Router-1!!!!!!!!!!

==================

^C

!

line con 0

password 7 0202114B0A

logging synchronous

login

line aux 0

line vty 0 4

password 7 1413071B0D

logging synchronous

login

!

end

++++++++++++++++++++++++++++++++++++++++++++++++++++++++

R2 config file.

Current configuration : 968 bytes

!

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

service password-encryption

!

hostname Router-2

!

boot-start-marker

boot-end-marker

!

enable secret 5 $1$H2IG$EsBXfuVE3BbB96tJWpoBF1

!

no aaa new-model

ip cef

!

!

!

!

!

multilink bundle-name authenticated

!

!

!

!

!

archive

log config

  hidekeys

!

!

!

!

!

!

!

interface ATM0

no ip address

shutdown

no atm ilmi-keepalive

dsl operating-mode auto

!

interface FastEthernet0

ip address 192.168.1.2 255.255.255.192

speed auto

!

interface Serial0

ip address 192.168.1.65 255.255.255.192

encapsulation ppp

no fair-queue

clock rate 2000000

!

ip forward-protocol nd

ip route 192.168.1.128 255.255.255.192 192.168.1.66

!

!

no ip http server

no ip http secure-server

!

!

!

!

control-plane

!

banner motd ^C

==============

Router-2!!!!!!

==============

^C

!

line con 0

password 7 045F1E160E

logging synchronous

login

line aux 0

line vty 0 4

password 7 130102020A

login

!

end

38 Replies 38

osatronix
Level 1
Level 1

Hi guys

So i decided I will rebuild the whole thing from the begining.

All the addresses and the layout is the same.

I was trying to narrow possible causes - so let me start from here.

-----------------------------------------------------------------------------------------------------------

When on the Router 2 I can ping Routers 1 both interfaces [ .66 and .129]

but

when on Router 1 I can only ping serial interface of Router2 [.65]

I'm attaching debug below. I need to sort that out!!! Please help me.

Thanks.

----------------------------------------------------------------------------------------------------------------

Success rate is 100 percent (5/5), round-trip min/avg/max = 36/37/40 ms

Router---1#

*Mar 1 06:30:54.511: IP: tableid=0, s=192.168.1.66 (local), d=192.168.1.65 (Serial0), routed via FIB

*Mar 1 06:30:54.511: IP: s=192.168.1.66 (local), d=192.168.1.65 (Serial0), len 100, sending

*Mar 1 06:30:54.547: IP: tableid=0, s=192.168.1.65 (Serial0), d=192.168.1.66 (Serial0), routed via RIB

*Mar 1 06:30:54.547: IP: s=192.168.1.65 (Serial0), d=192.168.1.66 (Serial0), len 100, rcvd 3

*Mar 1 06:30:54.547: IP: tableid=0, s=192.168.1.66 (local), d=192.168.1.65 (Serial0), routed via FIB

*Mar 1 06:30:54.551: IP: s=192.168.1.66 (local), d=192.168.1.65 (Serial0), len 100, sending

*Mar 1 06:30:54.583: IP: tableid=0, s=192.168.1.65 (Serial0), d=192.168.1.66 (Serial0), routed via RIB

*Mar 1 06:30:54.583: IP: s=192.168.1.65 (Serial0), d=192.168.1.66 (Serial0), len 100, rcvd 3

*Mar 1 06:30:54.587: IP: tableid=0, s=192.168.1.66 (local), d=192.168.1.65 (Serial0), routed via FIB

*Mar 1 06:30:54.587: IP: s=192.168.1.66 (local), d=192.168.1.65 (Serial0), len 100, sending

*Mar

Router---1#1 06:30:54.623: IP: tableid=0, s=192.168.1.65 (Serial0), d=192.168.1.66 (Serial0), routed via RIB

*Mar 1 06:30:54.623: IP: s=192.168.1.65 (Serial0), d=192.168.1.66 (Serial0), len 100, rcvd 3

*Mar 1 06:30:54.623: IP: tableid=0, s=192.168.1.66 (local), d=192.168.1.65 (Serial0), routed via FIB

*Mar 1 06:30:54.623: IP: s=192.168.1.66 (local), d=192.168.1.65 (Serial0), len 100, sending

*Mar 1 06:30:54.659: IP: tableid=0, s=192.168.1.65 (Serial0), d=192.168.1.66 (Serial0), routed via RIB

*Mar 1 06:30:54.659: IP: s=192.168.1.65 (Serial0), d=192.168.1.66 (Serial0), len 100, rcvd 3

*Mar 1 06:30:54.663: IP: tableid=0, s=192.168.1.66 (local), d=192.168.1.65 (Serial0), routed via FIB

*Mar 1 06:30:54.663: IP: s=192.168.1.66 (local), d=192.168.1.65 (Serial0), len 100, sending

*Mar 1 06:30:54.695: IP: tableid=0, s=192.168.1.65 (Serial0), d=192.168.1.66 (Serial0), routed via RIB

*Mar 1 06:30:54.695: IP: s=192.168.1.65 (Serial0), d=192.168.1.66 (Serial0), len 100, rcvd 3

Router---1#

Router---1#ping 192.168.1.2

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:

*Mar 1 06:31:19.271: IP: s=192.168.1.66 (local), d=192.168.1.2, len 100, unroutable.

*Mar 1 06:31:21.271: IP: s=192.168.1.66 (local), d=192.168.1.2, len 100, unroutable.

*Mar 1 06:31:23.271: IP: s=192.168.1.66 (local), d=192.168.1.2, len 100, unroutable.

*Mar 1 06:31:25.271: IP: s=192.168.1.66 (local), d=192.168.1.2, len 100, unroutable.

*Mar 1 06:31:27.271: IP: s=192.168.1.66 (local), d=192.168.1.2, len 100, unroutable.

Success rate is 0 percent (0/5)

Hi,

can you change PPP encapsulation to hdlc with no encap ppp command and do it again.

also if it's not working can you do ping 192.168.1.2 source f0/0 and post the output of the debug.

Regards.

Alain

Don't forget to rate helpful posts.

Hi

I know I'm being pain in the a.s but because of that i can't sleep. I was going to take CCENT exam soon but now I'm realy in doubt.

I did what you suggested and I've chaned encapsulation to HDLC and I was able to ping interface on the other side - BUT only when I was on the router.

When I was trying to ping it from my laptops I couldn't. So I understand that they are routing but not all the traffic???

I'm going mad here.

I removed all the static routing and if you guys could guide me through it - I'm probably doing some stupid mistake when setting this up.

So there is no routing entries and the routing tables are looking like that:

------------

Router1

Gateway of last resort is not set

     192.168.1.0/24 is variably subnetted, 3 subnets, 2 masks

C       192.168.1.65/32 is directly connected, Serial0

C       192.168.1.64/26 is directly connected, Serial0

C       192.168.1.128/26 is directly connected, FastEthernet0

----------

Router 2

Gateway of last resort is not set

     192.168.1.0/24 is variably subnetted, 3 subnets, 2 masks

C       192.168.1.64/26 is directly connected, Serial0

C       192.168.1.66/32 is directly connected, Serial0

C       192.168.1.0/26 is directly connected, FastEthernet0

Routers are able to reach theirs serial interfaces.

PC on the 192.168.1.0 network can ping .2 interface but I can't ping .65 interface - it says : Dest Host unreachable. BUT I'm able to get .66 interface of Router1.

From the laptops on the 192.168.128 network I can ping .129 interface of Router1 AND its serial interface .66 BUT not .65

What kind of black magic is this????

I'm starting to think that there is something wrong with my hardware.

Ok, you are driving me a little mad too.  Let's go with the shotgun approach since precise routing doesn't seem to be working.

On R1:

config t

ip route 0.0.0.0 0.0.0.0 192.168.1.66

On R2:

config t:

ip route 0.0.0.0 0.0.0.0 192.168.1.65

That configures each router to be the other router for its default gateway which will enable full routing between all connected interfaces in this topology.  If after those routes go in you still can't ping anything connected from any source interface on either router, then it has to be hardware or something stranger going on and you need to call in a consultant to show you.

Thats what I'm getting

R1

Router---1(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.66

%Invalid next hop address (it's this router)

R2

Router---2(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.65

%Invalid next hop address (it's this router)

I think you meant R1 .65  and  R2 .66 - i did that.

Routing tables:

R1

Gateway of last resort is 192.168.1.65 to network 0.0.0.0

     192.168.1.0/24 is variably subnetted, 3 subnets, 2 masks

C       192.168.1.65/32 is directly connected, Serial0

C       192.168.1.64/26 is directly connected, Serial0

C       192.168.1.128/26 is directly connected, FastEthernet0

S*   0.0.0.0/0 [1/0] via 192.168.1.65

R2

Gateway of last resort is 192.168.1.66 to network 0.0.0.0

     192.168.1.0/24 is variably subnetted, 3 subnets, 2 masks

C       192.168.1.64/26 is directly connected, Serial0

C       192.168.1.66/32 is directly connected, Serial0

C       192.168.1.0/26 is directly connected, FastEthernet0

S*   0.0.0.0/0 [1/0] via 192.168.1.66

When I'm on routers i can ping every single address on any network:

Router1

--------------------------------------------------------------------------------------------------

Router---1#ping 192.168.1.131

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.131, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms

Router---1#ping 192.168.1.133

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.133, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms

Router---1#ping 192.168.1.130

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.130, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms

Router---1#ping 192.168.1.129

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.129, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms

Router---1#ping 192.168.1.66

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.66, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 64/65/68 ms

Router---1#ping 192.168.1.65

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.65, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 32/33/36 ms

Router---1#ping 192.168.1.2

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 32/32/36 ms

Router---1#ping 192.168.1.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 32/33/36 ms

Router2

-------------------------------------------------------------------------------------

Router---2#ping 192.168.1.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 1/3/4 ms

Router---2#ping 192.168.1.2

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 1/3/4 ms

Router---2#ping 192.168.1.65

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.65, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 72/80/108 ms

Router---2#ping 192.168.1.66

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.66, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 40/45/68 ms

Router---2#ping 192.168.1.129

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.129, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 40/44/64 ms

Router---2#ping 192.168.1.130

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.130, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 40/45/68 ms

Router---2#ping 192.168.1.131

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.131, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 40/45/68 ms

Router---2#ping 192.168.1.133

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.133, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 40/44/64 ms

--------------------------------------------------------------------------------------------

So that works!

But when pinging from the PC or a laptop:

Replay from 192.168.1.64: Destination Host unreachable

Replay from 192.168.1.64: Destination Host unreachable

Replay from 192.168.1.64: Destination Host unreachable

Replay from 192.168.1.64: Destination Host unreachable

I thought this was a crossover T1 with both routers in the same room - those ping times are pretty high if that is the case.

Do the same tests, but source the ping from the Ethernet interface on the router, i.e.:

ping 192.168.1.129 source 192.168.1.1

OK

Router 1

--------------------------------------------------------------------

Router---1#ping 192.168.1.1 source 192.168.1.129

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:

Packet sent with a source address of 192.168.1.129

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 32/33/36 ms

Router---1#ping 192.168.1.2 source 192.168.1.129

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:

Packet sent with a source address of 192.168.1.129

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 32/33/36 ms

Router 2

-------------------------------------------------------------------------

Router---2#ping 192.168.1.129 source 192.168.1.2

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.129, timeout is 2 seconds:

Packet sent with a source address of 192.168.1.2

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 40/45/68 ms

Router---2#ping 192.168.1.133 source 192.168.1.2

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.133, timeout is 2 seconds:

Packet sent with a source address of 192.168.1.2

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 40/45/68 ms

Routing is good, you have a PC issue or some crazy filtering going on that I am not seeing.

Hello

1. Test "ping" from hosts behind the routers.

2. Post the output of "debug ip routing" and "debug ip packet detail" on the routers

Toshi

Sent from Cisco Technical Support iPhone App

OK

I've run that on the Router 2:

Router---2#debug ip packet detail

IP packet debugging is on (detailed)

Now I'm generating traffic (pinging laptop .133 on the other side) but i can't see any outcome on the router.

How do I do that?

Thanks.

Hello

Just run it on R1. Traffic gernerated on hosts behind R1.

Toshi

Sent from Cisco Technical Support iPhone App

Hi

WOW.

I took an hour brake. Came back and typed the command

Router---1#debug ip routing

IP routing debugging is on

Router---2#debug ip routing

IP routing debugging is on

Now when I'm pinging from the .133 laptop i can reach .1 PC !!!

The output I'm getting from the Router 1:

Router---1#debug ip routing

IP routing debugging is on

Router---1#

*Mar  1 10:34:21.279: RT: NET-RED 0.0.0.0/0

These messages are showing every 1 minute.

*Mar  1 10:36:21.279: RT: NET-RED 0.0.0.0/0

Router---1#

*Mar  1 10:37:21.279: RT: NET-RED 0.0.0.0/0

Router---1#

*Mar  1 10:38:21.279: RT: NET-RED 0.0.0.0/0

There is nothing showing on Router 2 and still cant ping .133 host from .1

What have i done that now i'm able to ping from .133 - typing debug command was all i did???

Thanks a lot.

Have you got any idea what may causing this?

I have all firewalls disabled.

Maybe it's the switch that is doing something odd - i'm just guessing here.

Do you have both routers and all end devices plugged into one switch?

If yes, I would connect PC directly to one router with a cross-over cable and test again

Eugen

Hi

Thats is exactly how i got this set up.

There is a PPT file attached to my post #1 on the top of this page - so you can see it clearly.

Thanks

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card