ā01-20-2017 08:53 AM - edited ā03-08-2019 08:59 AM
Hi,
I have a problem in attached scenario(vlanscenario.zip)
In this scenario Vlan1 is management(native) vlan on all switches.
There is 2 defined vlan: vlan2 and vlan3 on all switches
Inter switches links are trunk
There is 2 unexpected problem in this scenario
1.the laptop connected to the hub can receive ping requests from vlan 2 in all floor(it should drop it because the packet is tagged using .1q)
2.pings from vlan1 in all 3 floors are received successfully by vlan2 in second floor .
I use packet tracer-7.
Thanks in advance.
Solved! Go to Solution.
ā01-22-2017 10:41 AM
Hello,
my point was that mng21 has IP address 192.168.1.10, it is assigned to Vlan 2. But Laptop11 has the same IP address and is directly connected to the hub, in Vlan 1. So when you ping 192.168.1.10, you are not pinging the device in Vlan 2, but Laptop11 in Vlan 1. This is not a bug, but an error in your addressing. The solution is to remove the hub and configure the link between both switches directly as a trunk link.
ā01-22-2017 11:48 PM
Hello,
the only problem is that you get a response from 192.168.1.10 which you think is in Vlan 2, but which in reality is in Vlan 1. So all the time you were pinging 192.168.1.10, your response always came from Laptop11, and never from mng21.
Which means your design worked fine from the beginning, except for the small addressing problem !
ā01-20-2017 02:59 PM
Hello,
all your PCs have IP addresses from the 192.168.1.0/24 range, meaning they all can ping each other. You do not have any Layer 3 interfaces for your Vlans configured (with different IP address ranges). So basically you have created a flat network. Dot1q or any other tagging has no bearing here on layer 3 (ping) connectivity.
Does that makes sense to you ?
ā01-21-2017 03:49 AM
Thank you gpauwen,
In this network
Laptops from vlan3 cannot ping other laptops in vlans 1 and2(It is working correctly). so what happens here?
Just in second floor, vlan 1 can ping vlan 2 but in that floor vlan 2 cannot ping vlan1(why?),it is confusing
there may be a problem with vlan 2 or it is just a packet tracer bug?
ā01-21-2017 11:58 AM
Hello,
if you have different Vlans, you need layer 3 interfaces to route between them. As stated, your IP addressing allows for only one Vlan. So in order for the devices in Vlan 3 to be able to communicate with devices in Vlan 1, you need:
interface Vlan1
ip address 192.168.1.1 255.255.255.0
interface Vlan3
ip address 192.168.3.1 255.255.255.0
Your laptops then need addresses from the respective Vlans.
ā01-21-2017 11:51 PM
dear gpauwen,
I think you didn't get my mean.
i don't want vlans with different Ids to be able to communicate with each other:
I want this
vlan 1 should just ping vlan 1 in different floors(it shouldnot ping vlan 2 or vlan 3 in any floors).
vlan 2 should just ping vlan 2 in different floors (it shouldnot ping vlan 1 or vlan 3 in any floors))
vlan 3 should just ping vlan 3 in different floors.(it shouldnot ping vlan 1 or vlan 3 in any floors))
vlan3 works correctly (pings from vlan 3 received successfully in vlan 3 in other floors and vlans 1 and 2 cannot receive them although they have the same subnet masks and network address)
But vlan 1(from floor 1 2 3) can ping vlan 2( just in floor 2) while I don't want this to happen and its logically wrong.
to check it please do these tests:
ā01-22-2017 05:56 AM
Hello,
I tried to ping Laptop-PT mng21 (Vlan 2) from Laptop-PT acc1 (Vlan 1), and the ping succeeds, but I am not sure if what I am pinging is actually the Laptop in Vlan 2, since Laptop-PT Laptop11 has the same IP address (both have 192.168.1.10).
mng21
C:\>ipconfig
FastEthernet0 Connection:(default port)
Link-local IPv6 Address.........: FE80::: 20A:41FF:FE08:5972
IP Address......................192.168.1.10
Subnet Mask.....................: 255.255.255.0
Default Gateway.................: 0.0.0.0
Laptop11
C:\>ipconfig
FastEthernet0 Connection:(default port)
Link-local IPv6 Address.........: FE80::260:2FFF:FE83:84B8
IP Address......................: 192.168.1.10
Subnet Mask.....................: 255.255.255.0
Default Gateway.................: 0.0.0.0
ā01-22-2017 10:05 AM
it doesn't matter that all laptops are in the same subnetmask. The problem is that I have defined vlans in all switches and these vlans should not ping vlans with different numbers, but as you see they do. vlan settings are true, I have checked it again and again. To check the ports in each vlan just keep courser on each switch and you will see which port is in which vlan or just use"show vlan brief" command in switches privilege mode. check it and you will find that every setting is done correctly but what causes successful pings to second floor's vlan2 from vlan 1? this is the main question I believe that this is a packet tracer bug. where should I report it?
ā01-22-2017 10:41 AM
Hello,
my point was that mng21 has IP address 192.168.1.10, it is assigned to Vlan 2. But Laptop11 has the same IP address and is directly connected to the hub, in Vlan 1. So when you ping 192.168.1.10, you are not pinging the device in Vlan 2, but Laptop11 in Vlan 1. This is not a bug, but an error in your addressing. The solution is to remove the hub and configure the link between both switches directly as a trunk link.
ā01-22-2017 10:45 AM
To prove my point, remove the link from the hub to Laptop11, and then try to ping 192.168.1.10 from acc1 in Vlan 1. It won't work, and it is not supposed to.
ā01-22-2017 10:23 PM
Thanks for your consideration gpauwen
You are right. when I change the ip of laptop11, everything works fine but what causes that problem when they both have the same ip?may you explain it a little more,please?
ā01-22-2017 11:48 PM
Hello,
the only problem is that you get a response from 192.168.1.10 which you think is in Vlan 2, but which in reality is in Vlan 1. So all the time you were pinging 192.168.1.10, your response always came from Laptop11, and never from mng21.
Which means your design worked fine from the beginning, except for the small addressing problem !
ā01-23-2017 02:52 AM
Yes, that's right.
The only question that remains is this: packets passing through trunks are tagged with vlan Ids(we know that vlan 1 packets are not tagged because it is the management vlan and it is natural that laptop11 gets this vlan's packets successfully) but what happens about vlan2 packets aren't they tagged using .1q or isl? (as you see vlan 3 pings to laptop11 fails.)
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