cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
18432
Views
12
Helpful
35
Replies

Static route done..can't ping other PC?

abdul201188
Level 1
Level 1

I've made a static route between a  Cisco Router 1760 and a Cisco Router 2651xm using crossover cable to  connect to their Fast-Ethernet ports

so this is the configuration:

2651xm(config)#ip route 192.168.10.0 255.255.255.128 192.168.1.0.

and the other router's configuration:

2651xm(config)#ip route 192.168.10.0 255.255.255.128 192.168.1.0

Same thing.

The IP of the 2651xm is 192.168.10.2
The IP of the 1760 is 192.168.10.1.3

I'm I doing it wrong? is the destination wrong? I can't seem to ping any  other IP. I've got another laptop. I've put a static IP of  192.168.10.5, the primary Laptop is using has an IP of 192.168.1.138.  I'm trying to PING the 192.168.10.5 laptop. But this doesn't work.

Please help.

Sorry to mention, the 2561xm has another interface connected to a Cisco 2950 switch..with an IP of 192.168.1.3

35 Replies 35

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello Abdulrahman,

you need a common IP subnet on the direct link between the two routers that can be 192.168.22.0 in order to perform routing. It is not possible to hop from an IP subnet to another.

you assign IP address 192.168.22.1 to C2651xm and 192.168.22.2 on C1760

at this point you can configure static routes on c2651xm for IP subnet that is behind the C1760

example:

C2651XM

ip route 192.168.10.0 255.255.255.128 192.168.22.2

let's suppose that 192.168.1.0/24 is on the C2651XM

C1760:

ip route 192.168.1.0 255.255.255.0 192.168.22.1

the static routes use as next-hops the IP addresses in the shared in common IP subnet

Hope to help

Giuseppe

Hi there,

I did what you told me but it still doesnt work. I've allowed "Allowed incoming echo requests" for the ICMP but it still doesn't work aswell..

Hi,

post the configs from both routers here.

Regards.

Alain.

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

Hi there,

Config for the 2651xm

Building configuration...

Current configuration : 1539 bytes

!

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname 2651xm

!

boot-start-marker

boot-end-marker

!

enable secret 5 $1$RGkX$JSGK9R3cUhpCcowFqA4xp.

enable password Aldabbagh1992

!

no aaa new-model

no network-clock-participate slot 1

no network-clock-participate wic 0

ip cef

!

!

!

!

ip auth-proxy max-nodata-conns 3

ip admission max-nodata-conns 3

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

username admin privilege 15 secret 5 $1$ia72$n7i3yF9VU4Ji9lEPrkeY//

!

!

!

!

!

!

!

interface ATM0/0

no ip address

shutdown

atm restart timer 300

no atm ilmi-keepalive

dsl operating-mode auto

!

interface FastEthernet0/0

ip address 192.168.22.1 255.255.255.128

speed auto

full-duplex

no mop enabled

!

interface FastEthernet0/1

ip address 192.168.1.3 255.255.255.0

duplex auto

speed auto

!

interface Serial0/1

no ip address

shutdown

!

interface BRI1/0

no ip address

encapsulation hdlc

shutdown

!

interface BRI1/1

no ip address

encapsulation hdlc

shutdown

!

interface BRI1/2

no ip address

encapsulation hdlc

shutdown

!

interface BRI1/3

no ip address

encapsulation hdlc

shutdown

!

ip forward-protocol nd

ip route 192.168.22.0 255.255.255.128 192.168.1.0

!

!

ip http server

ip http authentication local

no ip http secure-server

ip http timeout-policy idle 600 life 86400 requests 10000

!

!

!

!

control-plane

!

!

!

!

!

!

!

!

!

!

line con 0

line aux 0

line vty 0 4

privilege level 15

password (not showing)

login local

transport input telnet ssh

Config for 1760:

CROUTER1760#sh run

Building configuration...

Current configuration : 837 bytes

!

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname CROUTER1760

!

boot-start-marker

boot-end-marker

!

enable secret 5 $1$rTlq$oc5otiWPTW3WQZeW/MCX6/

enable password Aldabbagh1993

!

no aaa new-model

ip cef

!

!

!

!

ip auth-proxy max-nodata-conns 3

ip admission max-nodata-conns 3

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interface FastEthernet0/0

ip address 192.168.22.2 255.255.255.128

speed auto

full-duplex

!

interface Serial0/0

no ip address

shutdown

!

interface BRI1/0

no ip address

encapsulation hdlc

shutdown

!

ip forward-protocol nd

ip route 192.168.1.0 255.255.255.0 192.168.22.0

!

!

ip http server

no ip http secure-server

!

!

!

!

control-plane

!

!

!

!

!

!

!

!

!

line con 0

line aux 0

line vty 0 4

password (no showing)

login

!

end

CROUTER1760#

Hi,

1) on the 2651xm, you can get rid of this static route as it has no effect anyway as 192.168.22.0/25 is directly connected

2) on the 1760, the static route is not correct, just get rid of it and enter this one:

ip route 192.168.1.0 255.255.255.0 192.168.22.1

3) Now I only see a LAN on one side but where is the LAN on the 1760 ?

Regards.

Alain.

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

abdul201188
Level 1
Level 1

Hi.

What LAN? There's only 1 FastEthernet on the 1760.

Hi,

ok I thought you were trying to ping from LAN to LAN.

Regards.

Alain.

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

Yes, I've got one network which is on 192.168.1.x and the Routers are 192.168.22.x

But the problem I can't ping from 192.168.1.x to the 192.168.22.x

Hi,

just make sure the default gateway for 192.168.1.0/24 network hosts is 192.168.1.3 which is the 2651xm ip address in this subnet.

Regards.

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

Hi,

This is the ping results from the laptop:

E:\Documents and Settings\Admin>ping 192.168.1.3

Pinging 192.168.1.3 with 32 bytes of data:

Request timed out.

Request timed out.

Request timed out.

Request timed out.

Ping statistics for 192.168.1.3:

    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

E:\Documents and Settings\Admin>ping 192.168.22.16

Pinging 192.168.22.16 with 32 bytes of data:

Reply from 192.168.22.16: bytes=32 time=1ms TTL=128

Reply from 192.168.22.16: bytes=32 time<1ms TTL=128

Reply from 192.168.22.16: bytes=32 time<1ms TTL=128

Reply from 192.168.22.16: bytes=32 time<1ms TTL=128

Ping statistics for 192.168.22.16:

    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

    Minimum = 0ms, Maximum = 1ms, Average = 0ms

E:\Documents and Settings\Admin>ping 192.168.22.11

Pinging 192.168.22.11 with 32 bytes of data:

Request timed out.

Request timed out.

Request timed out.

Request timed out.

Ping statistics for 192.168.22.11:

    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

E:\Documents and Settings\Admin>ping 192.168.22.19

Pinging 192.168.22.19 with 32 bytes of data:

Control-C

^C

E:\Documents and Settings\Admin>ping 192.168.22.10

Pinging 192.168.22.10 with 32 bytes of data:

Request timed out.

Request timed out.

Request timed out.

Request timed out.

Ping statistics for 192.168.22.10:

    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

I can ping the other laptop, but i still can't ping the 192.168.1.x network or even the routers on the 192.16.22.x network.

The 192.168.22.16 is the other laptop. 192.168.22.10 is the 2651xm router.

Hi,

can you post a diagram of your topology because I had understood in the initial posts that the 192.168.22.x network was the one between the 2 routers and now you say you have a laptop in this subnet ??

Regards.

Alain.

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

Basically I've been trying to create static route between 2 networks. 192.168.1.x and 192.168.22.x, trying to ping the 192.168.22.x, but without any luck.

The primary Lapotp is has an IP of 192.168.1.x

The secondary Laptop is has an IP od 192.168.22.x (I'm using the 192.168.1.4 as the default gateway)

This is the topology.

Hi,

 

With regards to the config that you posted earlier, you have the networks 198.168.22.1 and 192.168.22.2 connected to the 2651XM and 1760 respectively. So first of all you should be able to ping these ip addresses from these routers. Next, for your scenario, depending on where the target subnet is located, you need to add a static route pointing to it in the routing table of the remote router.

 

- Example: if the target network is behind the 2651XM, then you have to add the static route on the 1760:

ip route 192.168.1.0 255.255.255.0 192.168.22.1

 

You should point the first router (from user's perspectives) to its Neighbouring router that is directly connected to the target subnet and also set the users 'Default Gateway' setting to their LOCAL router interface address which is directly facing their local subnet.

 

Hope it Helps,

Soroush.

Hope it Helps!

Soroush.

Hi,

repost the configs from both routers because the addressing is not clear and also the ip config from PCs.

Is 2651xm like this:  f0/0 192.168.1.4/24 and f0/1 192.168.22.10/24 ?

if it is the case then on the right switch the host must be in 192.168.22.0/24 network and have 192.168.22.10 as default gateway and if you've  got a host on the 1760 then you must have default route on 1760 pointing to 2651xm 192.168.1.4

and this host must be in another subnet than those already used and have its default gateway as the 1760 IP address in the same subnet.

Note that the  default gateway of a host must be in the same subnet so this can't work:

The secondary Laptop is has an IP od 192.168.22.x (I'm using the 192.168.1.4 as the default gateway)

Regards.

Alain.

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.
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: