cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1221
Views
0
Helpful
10
Replies

Static routing doesnt work as expected

pepazetek
Level 1
Level 1

Hello,

I have tried to configure an example of networks I got assigned by my teacher and cannot find any mistake I may have done. I have spent a lot of time trying to find it, but at this point this just seems like a bug in the program. Could you, please tell me, where is the mistake? In the pictures attached, there is a diagram of how have I assigned different ip addresses to the computers (numbers in brackets are 4th octet numbers of ip, for instance 0-63 means 192.168.0.0 - 192.168.0.63) and the second picture shows whats wrong. I tried to ping from right bottom pc to the ones at the top. It works, but I thought it would go through the specified ip 10.0.0.10. It does so only when i get the reposponse from the ping (the blue line). I have even tested it on different versions of packet tracer (version 8 and 7), but it doesnt work anyway.

Any advice is highly appreciated

1 Accepted Solution

Accepted Solutions

pepazetek
Level 1
Level 1

I have fixed the problem. Don't know the exact reason, but I copied the running config, replaced the routers with new ones, pasted the configuration and it works as intended. Thank you for your help

View solution in original post

10 Replies 10

please share the config of Router 0 here I could not open ZIP file.

Hi

 There´s some inconsistency on the mask and networks.

You PCs have mask /27, /28 and /29 which would be:

255.255.255.224

255.255.255.240

255.255.255.248

 

But, you static route is :

R2

ip route 192.168.0.0         255.255.255.192       10.0.0.1
ip route 192.168.0.128     255.255.255.128   10.0.0.9
!
 R3
ip route 192.168.0.64    255.255.255.192   10.0.0.10
ip route 192.168.0.0     255.255.255.192    10.0.0.5


However, as you are using static route with no Administrative distance,  and all network is 192.168.0.X,the router should use the pach with more specific mask.

 

I think he use per-destioantion load sharing 
that why all traffic take one path even if there are two identical path.
change the load sharing to be per-packet OR make your unwanted static route with higher AD this make router always select one path and keep other in case of failed first one.

 

https://www.connecteddots.online/resources/cisco-reference/cisco-router-per-packet-load-balancing

 

Hi, thank you for your answer. I will look at it, but I haven’t specified it to use load balancing. What’s strange is that the path going over R1 is meant for computers that have got ip addresses of different network.

I am afraid that if I used higher AD, It would lead to the same problem with different routers (redirecting everything from R3 to R2). 

Hi, I have even tried to make higher administrative distance of the unwanted path but it seems to have no effect. Even removing the entry ip route with the unwanted path hasn't helped.

Seems like there's some default settings or default path.

Hi Flavio, thank you for your answer. I have specified the masks in a way that all of the networks directly connected to each router can be combined to a bigger network. That’s why there’s the inconsistency with the masks. So if you look at the configuration of router 3, any computer directly connected to the top router should be only part of the network that’s specified to go through 10.0.0.10 (interface on top router).

What’s confusing for me is that it seems to be ignoring the static rules I have specified. 

It seems complicate considering static routes and the fact that this is a simulator and not always router behave just like the real router.

If could use dynamic routing instead or use different networks instead only 192.168.0.x. 

 

Share config here, all routers 

Thank you so much for helping me. There is the information displayed with

command show running-config.

I also attach screenshot of the ping schematics with connection between routers and network schematics.

Router1

Current configuration : 1784 bytes

!

version 12.2

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname Router

!

!

!

!

ip dhcp excluded-address 192.168.0.1

ip dhcp excluded-address 192.168.0.9

ip dhcp excluded-address 192.168.0.33

ip dhcp excluded-address 192.168.0.49

!

ip dhcp pool LAN1

network 192.168.0.0 255.255.255.248

default-router 192.168.0.1

ip dhcp pool LAN2

network 192.168.0.8 255.255.255.248

default-router 192.168.0.9

ip dhcp pool LAN3

network 192.168.0.32 255.255.255.240

default-router 192.168.0.33

ip dhcp pool LAN4

network 192.168.0.48 255.255.255.240

default-router 192.168.0.49

!

!

!

no ip cef

no ipv6 cef

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interface GigabitEthernet0/0

ip address 192.168.0.1 255.255.255.248

duplex auto

speed auto

!

interface GigabitEthernet1/0

ip address 192.168.0.9 255.255.255.248

duplex auto

speed auto

!

interface GigabitEthernet2/0

ip address 192.168.0.33 255.255.255.240

duplex auto

speed auto

!

interface GigabitEthernet3/0

ip address 192.168.0.49 255.255.255.240

duplex auto

speed auto

!

interface GigabitEthernet4/0

no ip address

duplex auto

speed auto

shutdown

!

interface GigabitEthernet5/0

no ip address

duplex auto

speed auto

shutdown

!

interface GigabitEthernet6/0

no ip address

duplex auto

speed auto

shutdown

!

interface GigabitEthernet7/0

no ip address

duplex auto

speed auto

shutdown

!

interface Serial8/0

ip address 10.0.0.1 255.255.255.252

clock rate 2000000

!

interface Serial9/0

ip address 10.0.0.5 255.255.255.252

clock rate 2000000

!

ip classless

ip route 192.168.0.64 255.255.255.192 10.0.0.2

ip route 192.168.0.128 255.255.255.128 10.0.0.6

!

ip flow-export version 9

!

!

!

!

!

!

!

!

line con 0

!

line aux 0

!

line vty 0 4

login

!

!

!

end




Router2

Current configuration : 1487 bytes

!

version 12.2

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname Router

!

!

!

!

ip dhcp excluded-address 192.168.0.65

ip dhcp excluded-address 192.168.0.97

!

ip dhcp pool LAN1

network 192.168.0.64 255.255.255.224

default-router 192.168.0.65

ip dhcp pool LAN2

network 192.168.0.96 255.255.255.248

default-router 192.168.0.97

!

!

!

no ip cef

no ipv6 cef

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interface GigabitEthernet0/0

ip address 192.168.0.65 255.255.255.224

duplex auto

speed auto

!

interface GigabitEthernet1/0

ip address 192.168.0.97 255.255.255.248

duplex auto

speed auto

!

interface GigabitEthernet2/0

no ip address

duplex auto

speed auto

shutdown

!

interface GigabitEthernet3/0

no ip address

duplex auto

speed auto

shutdown

!

interface GigabitEthernet4/0

no ip address

duplex auto

speed auto

shutdown

!

interface GigabitEthernet5/0

no ip address

duplex auto

speed auto

shutdown

!

interface GigabitEthernet6/0

no ip address

duplex auto

speed auto

shutdown

!

interface GigabitEthernet7/0

no ip address

duplex auto

speed auto

shutdown

!

interface Serial8/0

ip address 10.0.0.2 255.255.255.252

!

interface Serial9/0

ip address 10.0.0.10 255.255.255.252

!

ip classless

ip route 192.168.0.0 255.255.255.192 10.0.0.1

ip route 192.168.0.128 255.255.255.128 10.0.0.9

!

ip flow-export version 9

!

!

!

no cdp run

!

!

!

!

!

!

line con 0

!

line aux 0

!

line vty 0 4

login

!

!

!

end

Router3

Current configuration : 1800 bytes

!

version 12.2

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname Router

!

!

!

!

ip dhcp excluded-address 192.168.0.193

ip dhcp excluded-address 192.168.0.161

ip dhcp excluded-address 192.168.0.145

ip dhcp excluded-address 192.168.0.129

!

ip dhcp pool LAN1

network 192.168.0.192 255.255.255.224

default-router 192.168.0.193

ip dhcp pool LAN2

network 192.168.0.160 255.255.255.248

default-router 192.168.0.161

ip dhcp pool LAN3

network 192.168.0.144 255.255.255.240

default-router 192.168.0.145

ip dhcp pool LAN4

network 192.168.0.128 255.255.255.240

default-router 192.168.0.129

!

!

!

no ip cef

no ipv6 cef

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interface GigabitEthernet0/0

ip address 192.168.0.193 255.255.255.224

duplex auto

speed auto

!

interface GigabitEthernet1/0

ip address 192.168.0.161 255.255.255.248

duplex auto

speed auto

!

interface GigabitEthernet2/0

ip address 192.168.0.145 255.255.255.240

duplex auto

speed auto

!

interface GigabitEthernet3/0

ip address 192.168.0.129 255.255.255.240

duplex auto

speed auto

!

interface GigabitEthernet4/0

no ip address

duplex auto

speed auto

shutdown

!

interface GigabitEthernet5/0

no ip address

duplex auto

speed auto

shutdown

!

interface GigabitEthernet6/0

no ip address

duplex auto

speed auto

shutdown

!

interface GigabitEthernet7/0

no ip address

duplex auto

speed auto

shutdown

!

interface Serial8/0

ip address 10.0.0.9 255.255.255.252

!

interface Serial9/0

ip address 10.0.0.6 255.255.255.252

clock rate 2000000

!

ip classless

ip route 192.168.0.64 255.255.255.192 10.0.0.10

ip route 192.168.0.0 255.255.255.192 10.0.0.5

!

ip flow-export version 9

!

!

!

no cdp run

!

!

!

!

!

!

line con 0

!

line aux 0

!

line vty 0 4

login

!

!

!

end

 

pepazetek
Level 1
Level 1

I have fixed the problem. Don't know the exact reason, but I copied the running config, replaced the routers with new ones, pasted the configuration and it works as intended. Thank you for your help