cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
13731
Views
0
Helpful
5
Replies

host pings gateways but can't ping each other on VLSM

ruleworld
Level 1
Level 1

Hi,

I am using packet tracer 5.3 to build a network. I have two router connected via serial link and each router has one host connected via switch.

The hosts can ping the default gateway.

The routers can ping each other.

But the hosts are not pinging the other host/router. The details are below and I also attached the Packet Tracer file. Any help would be appreciated. Thanks.

Host 1
IP Address......................: 192.168.42.126
Subnet Mask.....................: 255.255.255.192
Default Gateway.................: 192.168.42.65

Router 1

Internet Protocol routing is enabled
FastEthernet0/0 is up, line protocol is up
Internet address is 192.168.42.65/26
Serial2/0 is up, line protocol is up
Internet address is 192.168.42.6/30

Host 2

IP Address......................: 192.168.42.62
Subnet Mask.....................: 255.255.255.224
Default Gateway.................: 192.168.42.33

Router 2

Internet Protocol routing is enabled
FastEthernet0/0 is up, line protocol is up
Internet address is 192.168.42.33/27
Serial2/0 is up, line protocol is up
Internet address is 192.168.42.5/30

1 Accepted Solution

Accepted Solutions

Hi,

I've just tried extended pings on both routers and it works so you have end-to-end connectivity.

Rimmer is using EIGRP and Lister is using the default static route.

You should get rid of RIP as it is useless here: on both router ---> no router rip

Then get rid of your 2 static routes on each router.

Finally put the correct network statement under router eigrp on Rimmer: network 192.168.42.32 0.0.0.31

You'll have a route to each remote LAN via EIGRP¨and full connectivity end-to-end

Regards.

Alain.

Don't forget to rate helpful posts.

View solution in original post

5 Replies 5

manish arora
Level 6
Level 6

The routers need either default route or route to each other's subnets.

so on router1 add :-

either :- 1> ip route 0.0.0.0 0.0.0.0 192.168.42.5

or     :- 2 > ip route 192.168.42.64 255.255.255.192 192.168.42.5

on router 2 add :-

either :- 1> ip route 0.0.0.0 0.0.0.0 192.168.42.6

or     :- 2 > ip route 192.168.42.32 255.255.255.224 192.168.42.6

Manish

Somehow it is working, Thanks. but i don't know for what.

I am suppose to use EIGRP for that.
I have tried both you said and also the following EIGRP command on both Router

router eigrp 2
network 192.168.0.4 0.0.0.3

I will try again from scratch.

There is a weird problem.
I added two hosts to Router 1.

1st host ip: 192.168.42.126
2nd host ip: 192.168.42.125

The host of Router 2 ( 192.168.42.62 ) can ping the 2nd host or Router 1 but is not pinging the 1st host of Router 1.

But the 2nd host of Router 1 can ping the 1st host and vice versa.

Here is the output of "show ip route".


Router 1 (192.168.42.6)

Gateway of last resort is 192.168.42.5 to network 0.0.0.0

     192.168.42.0/24 is variably subnetted, 2 subnets, 2 masks
C       192.168.42.4/30 is directly connected, Serial2/0
C       192.168.42.64/26 is directly connected, FastEthernet0/0
S*   0.0.0.0/0 [1/0] via 192.168.42.5


Router 2 (192.168.42.5)

Gateway of last resort is 192.168.42.6 to network 0.0.0.0

     192.168.42.0/24 is variably subnetted, 3 subnets, 3 masks
C       192.168.42.4/30 is directly connected, Serial2/0
C       192.168.42.32/27 is directly connected, FastEthernet0/0
D       192.168.42.64/26 [90/20514560] via 192.168.42.6, 01:39:29, Serial2/0
S*   0.0.0.0/0 [1/0] via 192.168.42.6

Hi,

I've just tried extended pings on both routers and it works so you have end-to-end connectivity.

Rimmer is using EIGRP and Lister is using the default static route.

You should get rid of RIP as it is useless here: on both router ---> no router rip

Then get rid of your 2 static routes on each router.

Finally put the correct network statement under router eigrp on Rimmer: network 192.168.42.32 0.0.0.31

You'll have a route to each remote LAN via EIGRP¨and full connectivity end-to-end

Regards.

Alain.

Don't forget to rate helpful posts.

Hi, Thanks a lot.

everything seems to be working now. I removed static ip like you said. but I think when I put the command network 192.168.42.5 0.0.0.3 on Lister then it worked, not sure.

Lister(router 1)

     192.168.42.0/24 is variably subnetted, 3 subnets, 3 masks
C       192.168.42.4/30 is directly connected, Serial2/0
D       192.168.42.32/27 [90/20514560] via 192.168.42.5, 00:08:21, Serial2/0
C       192.168.42.64/26 is directly connected, FastEthernet0/0

Rimmer(router 2)

     192.168.42.0/24 is variably subnetted, 3 subnets, 3 masks
C       192.168.42.4/30 is directly connected, Serial2/0
C       192.168.42.32/27 is directly connected, FastEthernet0/0
D       192.168.42.64/26 [90/20514560] via 192.168.42.6, 00:18:17, Serial2/0

Thanks

Hi,

a few remarks about your configs:

Rimmer:

ip route 192.168.42.32 255.255.255.224 192.168.42.6

is not installed in the routing table because 192.168.42.32 is directly connected which is a good thing as this static route statement is wrong.


Lister :
under router eigrp 2
network 192.168.42.32 0.0.0.31 is wrong :this network is not on Lister

network 192.168.42.0 0.0.0.63  ----> you can get rid of because you have
  no interfaces in 192.168.42.0/26

You can also disable auto-summary as it is a best practice

ip route 192.168.42.64 255.255.255.192 192.168.42.5
same as for Rimmer

Regards.

Alain.

Don't forget to rate helpful posts.