02-20-2020 10:25 AM - edited 02-20-2020 10:27 AM
I am using packet tracer tool to create two simple networks. In topology, I have two routers connected together with network 192.168.3.0. The problem is that when I change the IP addresses of routers to "192.168.3.1/8" and "192.168.3.2/8", everything works. When I change the IP addresses to "192.168.3.1/24" and "192.168.3.2/24", ping doesn't work between hosts from network 1 to network 2.
I attached the topology file below.
02-20-2020 10:55 AM - edited 02-20-2020 11:00 AM
Hello,
you have no routing protocol or static routing configured on your routers. When you use 192.168.3.1/8 and 192.168.3.2/8, the interfaces effectvely are in the same subnet as the other router interfaces.
I have added router rip v2 to your routers and advertised the subnets...see the revised attached file ( you need version 7.3.0)...
If you don't have version 7.3.0, here are the relevant router configs:
Router0
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
!
interface Serial2/0
ip address 192.168.3.1 255.255.255.0
clock rate 1200
!
router rip
version 2
network 192.168.1.0
network 192.168.3.0
Router 1
interface FastEthernet0/0
ip address 192.168.2.1 255.255.255.0
duplex auto
speed auto
!
interface Serial2/0
ip address 192.168.3.2 255.255.255.0
!
router rip
version 2
network 192.168.2.0
network 192.168.3.0
02-20-2020 12:39 PM
02-20-2020 01:35 PM
Hello,
192.x.x.x/8 means everything with 192 in the first octet will be able to talk to anything with 192 in the first octet. So if you give the interfaces an IP address with an /8 mask, from the perspective of that interface, everything else is in the same subnet.
If you draw this out, it looks like below. If you give your router interface IP address 192.168.3.1 or 2, with an /8 mask, these IP addresses belong to the same address space as 192.168.1.0/24 and 192.168.2.0/24
192.0.0.0/8
Host range: 192.0.0.1 - 192.255.255.254
Does that make sense ?
02-20-2020 08:22 PM
Yes, that makes sense now. It seems I need to do some practice with subnets to understand the concept. Thank you.
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