02-20-2018 08:22 PM - edited 03-05-2019 09:57 AM
I am new to CISCO. I setup a small testing network in packet tracer but I am unable to ping passed the routers across subnets.
I have configured only the hostname and interfaces- I was told that it should ping. I am not able to ping passed any routers - should be some basic issues. Please advice. Thanks in Advance.
Req : 1. ping from PCR2 to R1 2.ping from R2 to R3
R1 Config
Building configuration...
Current configuration : 506 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R1
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
!
!
interface FastEthernet0/0
ip address 192.168.1.2 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.2.1 255.255.255.0
duplex auto
speed auto
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end
R2 Config
Current configuration : 506 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R2
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
!
!
!
interface FastEthernet0/0
ip address 192.168.2.2 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.3.1 255.255.255.0
duplex auto
speed auto
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end
Solved! Go to Solution.
02-20-2018 09:39 PM - edited 02-20-2018 09:41 PM
Hi,
If you are not running a routing protocol on each router, you need to configure static routes to tell each router how to get to specific network
(1)On PCR2, you need to specify default gateway of 192.168.3.1 and on R2 you need a static route " ip route 192.168.3.0 255.255.255.0 192.168.2.2"
(2)For R2 to ping R3, R2 need to know how to get to network 192.168.1.0/24 and R3 needs to know how to get to network 192.168.2.0/24. On R2 you need static route "ip route 192.168.1.0 255.255.255.0 192.168.2.1" and on R3 you need static route "ip route 192.168.2.0 255.255.255.0 192.168.1.2"
thanks John
02-20-2018 11:39 PM - edited 02-20-2018 11:43 PM
Hi,
yes, you are correct. For (1) the route should be configured on R1:
"ip route 192.168.3.0 255.255.255.0 192.168.2.2"
02-20-2018 09:39 PM - edited 02-20-2018 09:41 PM
Hi,
If you are not running a routing protocol on each router, you need to configure static routes to tell each router how to get to specific network
(1)On PCR2, you need to specify default gateway of 192.168.3.1 and on R2 you need a static route " ip route 192.168.3.0 255.255.255.0 192.168.2.2"
(2)For R2 to ping R3, R2 need to know how to get to network 192.168.1.0/24 and R3 needs to know how to get to network 192.168.2.0/24. On R2 you need static route "ip route 192.168.1.0 255.255.255.0 192.168.2.1" and on R3 you need static route "ip route 192.168.2.0 255.255.255.0 192.168.1.2"
thanks John
02-20-2018 11:17 PM - edited 02-20-2018 11:22 PM
Thanks for the time - I appreciate it and I have a doubt too : On the solution 1 that you gave - should the configuration be done on R2 as you have mentioned or on R1?
02-20-2018 11:39 PM - edited 02-20-2018 11:43 PM
Hi,
yes, you are correct. For (1) the route should be configured on R1:
"ip route 192.168.3.0 255.255.255.0 192.168.2.2"
02-20-2018 11:56 PM
Hello,
on a side note, you can also just configure the below on all your routers:
router rip
version 2
network 0.0.0.0
or
router eigrp 1
network 0.0.0.0
no auto-summary
This is the very basic way of setting up a dynamic routing protocol and advertise all of your networks...
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide