ā08-27-2020 04:41 AM
I had taken two PC and one Router
PC 1 IP - 192.168.40.2
GATE 1 - 192.168.40.1
PC 2 IP - 192.168.40.130
GATE - 192.168.40.129
When I am trying to link these using IOS interface ..I can able to link PC 1 with the Router but when I try to link the PC 2 with it...it shows error writing " 192.168.40.0 overlaps with FastEthernet0/0 .Can please anyone solve this issue .I will be grateful.
ā09-06-2020 01:13 PM - edited ā09-06-2020 01:15 PM
Hello
You need to make sure the networks dont overlapp, in your case looking at the addressing a possible solution would be.
RTR
interface 1
192.168.40.1 255.255.255.128
PC1
IP 192.160.40.2
SM 255.255.255.128
GW 192.168.40.1
RTR
interface 2
192.168.40.129 255.255.255.128
PC2
IP 192.160.40.130
SM 255.255.255.128
GW 192.168.40.129
ā09-06-2020 11:45 PM - edited ā09-06-2020 11:46 PM
Hello @subhamstripathy20707 ,
a router can have only one interface connected to an IP subnet, because its job is to perform routing also called interworking between different IP subnets.
As already suggested you need to use on you fastethernet interfaces subnet masks that do not cause the overlapping error.
int fas0/0
ip address 192.168.40.1 255.255.255.128
int fas0/1
ip address 192.168.40.129 255.255.255.128
in this way network 192.168.40.0/24 has been subnetted in 192.168.40.0/25 and 192.168.40.128/25.
to be noted even more specific subnet masks would work from /25 to /30 and all of them avoid the overlapping error.
Hope to help
Giuseppe
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