02-01-2025 08:25 AM
I'm working on my very first Cisco Packet Tracer projector for an assignment.
I'm in the part where I have to create sub-interfaces for the VLANs I created. I am getting the error "% 192.168.20.0 overlaps with GigabitEthernet0/0.10" when i try to assign the IPs for the 2nd Sub Interface. I tried it with the 3rd VLAN and got the same error as well.
- for Vlan 10
Router(config)#int gig0/0.10
Router(config-subif)#ip address 192.168.20.1 255.255.255.248Routing, Routing Protocols, Other Community Feedback
- for Vlan 12
Router(config-subif)#int gig0/0.12
Router(config-subif)#ip address 192.168.20.9 255.255.255.240
I changed the IP range to 192.168.30.9 255.255.255.240 - and it got assigned with no errors.
Below is my subnetting table
Any help or advice would be appreciated. Thanks again
Solved! Go to Solution.
02-01-2025 12:45 PM
Hello @Kaveesh
Your VLAN 12 subnet /28 ncorrectly starts at 192.168.20.9, even though a /28 network must start at a multiple of 16.
Since 192.168.20.9/28 is part of 192.168.20.0/28, it conflicts with VLAN 10...
You resolved the problem by assigning VLAN 12 to a different network, which is the right approach. If you want to stay within the same range, you should adjust your subnets so each VLAN has a properly aligned and separate block.
02-02-2025 04:20 AM
BTW, all your networks must start on their correct address space boundaries, they cannot just be allocated back-to-back, sequentially, unless you allocate them in descending block sizes. I.e. /26, /28, /28, /28, /29 . . .
02-01-2025 10:08 AM
The problem is, networks need to align on specific binary multiples. For example your 192.168.20.9/28 is actually 192.168.20.0..15.
02-01-2025 12:45 PM
Hello @Kaveesh
Your VLAN 12 subnet /28 ncorrectly starts at 192.168.20.9, even though a /28 network must start at a multiple of 16.
Since 192.168.20.9/28 is part of 192.168.20.0/28, it conflicts with VLAN 10...
You resolved the problem by assigning VLAN 12 to a different network, which is the right approach. If you want to stay within the same range, you should adjust your subnets so each VLAN has a properly aligned and separate block.
02-01-2025 05:47 PM
M02@rt37 Thanks so much for replying!
I will need to stay within the IP Range as that's a condition in this assignment.
Could you please give me an example? for VLAN 12?
Like on how to adjust the subnet to make sure this does not happen. and what ip should the VLAN 12 start with?
Sorry for the dumb question
02-01-2025 07:07 PM
@Kaveesh wrote:
M02@rt37 Thanks so much for replying!
I will need to stay within the IP Range as that's a condition in this assignment.
Could you please give me an example? for VLAN 12?
Like on how to adjust the subnet to make sure this does not happen. and what ip should the VLAN 12 start with?
M02@rt37 already provided that.
I.e.:
"Your VLAN 12 subnet /28 ncorrectly starts at 192.168.20.9, even though a /28 network must start at a multiple of 16."
Also, in my reply, I too identified network boundaries are important: "The problem is, networks need to align on specific binary multiples." and further described the address block for "your 192.168.20.9/28 is actually 192.168.20.0..15." I.e. for your 192.168.20.9/28 address, would start with .0, not .8. After .0, the next /28 would be 192.168.20.16/28, and the first usable address 192.168.20.17/28.
Oh, if you're wondering, can 192.168.20.8..15 be used? It can, but not as a /28.
02-02-2025 12:38 AM
Hello @Kaveesh
Vlan 12 with 12 users, regarding your table... So /28 needed !
For vlan id 12 =>192.168.20.16/28
02-02-2025 04:20 AM
BTW, all your networks must start on their correct address space boundaries, they cannot just be allocated back-to-back, sequentially, unless you allocate them in descending block sizes. I.e. /26, /28, /28, /28, /29 . . .
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