Why does my IP keep overlapping?

lxrsdlxrsd Member Posts: 7 ■□□□□□□□□□
I'm trying to do a lab in PT. and get the following error:

FIRST
Router(config)#int G0/0
Router(config-if)#ip add 192.168.0.1/30
Router(config-if)#exit
SECOND Router(config)#int G0/0
Router(config-if)#ip add 192.168.0.2/30

NOW, ON THE SECOND ROUTER I TRIED CONNECTING A SWITCH connected with 5 PCs

SECOND
Router(config)#int G0/1
Router(config-if)#ip add 192.168.0.5/29
% 192.168.1.0 overlaps with GigabitEthernet0/0


The last Valid IP Address for 192.168.1.0 is 192.168.3. The next subnet is 192.168.0.4.
Why is overlapping when I'm using /29 with Valid host from 192.168.1.5 to 192.168.1.13 which doesn't fall in the range of /30 192.168.1.1 to 192.168.1.3?

Comments

  • lxrsdlxrsd Member Posts: 7 ■□□□□□□□□□
    lxrsd wrote: »
    I'm trying to do a lab in PT. and get the following error:

    FIRST
    Router(config)#int G0/0
    Router(config-if)#ip add 192.168.0.1/30
    Router(config-if)#exit
    SECOND Router(config)#int G0/0
    Router(config-if)#ip add 192.168.0.2/30

    NOW, ON THE SECOND ROUTER I TRIED CONNECTING A SWITCH connected with 5 PCs

    SECOND
    Router(config)#int G0/1
    Router(config-if)#ip add 192.168.0.5/29
    % 192.168.1.0 overlaps with GigabitEthernet0/0


    The last Valid IP Address for 192.168.1.0 is 192.168.3. The next subnet is 192.168.0.4.
    Why is overlapping when I'm using /29 with Valid host from 192.168.1.5 to 192.168.1.11 which doesn't fall in the range of /30 192.168.1.1 to 192.168.1.3?

    Correction
  • jebrown21jebrown21 Member Posts: 20 ■□□□□□□□□□
    Can't test it at the moment but I would assume its because 192.168.0.5/29 is in the 192.168.0.0 subnet with a range of 192.168.0.1 - 192.168.0.6 as valid hosts, thus it does overlap.
  • lxrsdlxrsd Member Posts: 7 ■□□□□□□□□□
    Thank you so much. I'm new to the whole subnetting. Trying to understand as much as possible before trying to use any Calculators. I see my confusing.
    I thought because R1 ended at 192.168.1.3 and next Subnet was 192.168.1.4, I could use 192.168.1.5. Not realizing that /29 Still covered from 1-7. I fixed the problem by making My G0/1 Ip Address 192.168.1.9 connected to the which with is connected to the 5 hosts.
    Host 1 = 192.168.1.10
    Host 2 = 192.168.1.11
    Host 3 = 192.168.1.12
    Host 4 = 192.168.1.13
    host 5 = 192.168.1.14
  • pinkiaiiipinkiaiii Member Posts: 216
    its regular mistake when doing in from head as i like to do sometimes,best practice is just to open notepad and write down subnets and ip from largest to smallest,guess you know that by now also its good idea to keep extra subnet open for expansion

    192.168.1.0/29
    192.168.1.8
    192.168.1.16
    192.168.1.16/30
    192.168.1.20
    192.168.1.24
Sign In or Register to comment.