I am having many doubts on how to configure netmasks between two home Router cisco deforms who gains access to a subnet that is connected to the tip of the other home Router. What protocols netmasks should I use to allow this connection? The home Router are already connected via serial as can be seen in the topology sent. I can ping the Gateway 1 Gateway 2.
Tiago Eduardo Zacarias
In the eigrp 100 config you are announcing the 220.127.116.11 network on both sides.
From the client side you do not have 18.104.22.168, you are using 10.0.0.0 so you will need to announce the 10 network from the client.
So the EIGRP needs to be reversed.
unless you are using RIPv1 or IGRP that are classful routing protocols (that means they don't carry the subnet mask in routing updates) you are free to use different subnet masks in the two LAN subnets that can be different also of the subnet mask used on the serial link.
let's use major network 192.168.16.0.
We can divide this with a /26 subnets creating 4 blocks
we can further divide first subnet in two /27 subnets
we can get a /30 from last block
serial link: 192.168.16.248/30
Lan segment 2: 192.168.16.128/26
So we are using three different subnet masks for subnets of the same major network Class C 192.168.16.0.
This is called variable length subnet mask.
A dynamic routing protocol can support a scenario like this if in its routing updates it carries the subnet mask of each IP subnet.
let's consider RIPv2
desc lan segment 1
ip address 192.168.16.33 255.255.255.224
ip address 192.168.16.249 255.255.255.252
desc lan segment 2
ip address 192.168.16.129 255.255.255.192
ip address 192.168.16.250 255.255.255.252
Hope to help