08-01-2016 03:58 PM - edited 03-08-2019 06:50 AM
Machine A (192.168.1.1/24)---- (VLAN 5)---- Port (1/1)---Switch A --VLAN 5 ---Port (1/2)--------- Port (1/1)---- VLAN--10--Switch B-------Port (1/2)----VLAN 10)-------Machine B (192.168.1.2/24)
1) Machine A is connected to Port 1/1 ( VLAN 5) of Switch A.
2) Switch A Port 1/2 is connected to Switch B on Port 1/1.
3) Switch A port 1/2 is in VLAN 5 (Access Port).
4) Switch B port 1/1 is in VLAN 10 (Access Port).
5) Machine B is connected to Port 1/2 (VLAN 10) of Switch B.
6) Machine A is having IP address 192.168.1.1/24 connected to Switch A.
7) Machine B is having IP address 192.168.1.2/24 connected to Switch B.
Question) If i ping 192.168.1.2 Machine from Machine 192.168.1.1, Is i can able to ping or not? If yes or No why?.
Highly appreciate your answers.
08-01-2016 04:33 PM
Communication between 2 hosts will work fine as long as the 2 switches are connected to each other by an access port (as it is in your case). Vlans are locally significant. So one host can be in vlan 5 on one switch and the other host can be in vlan 10 on the other switch and both hosts can be in the same subnet.
HTH
08-01-2016 11:43 PM
Thank you Sharifi for your reply.. Can you please help How switch A will learn the Mac-address of Machine B connected to switch B, As it on VLAN 10?.
08-02-2016 04:23 AM
In your case, the switch A will have in his mac-address-table :
VLAN MAC TYPE PORTS
5 @MachineB dynamic 1/2
As Reza said, vlan are locally significant, that's why you'll see vlan 5 in the binding and not vlan 10 which is on your switch B, significant on your switch B by the way ( vlan 10 )
Yoann
08-02-2016 04:45 AM
Thank you very much..
08-02-2016 05:15 AM
Disclaimer
The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
Liability Disclaimer
In no event shall Author be liable for any damages wha2tsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
Posting
You original question has been answered, but if the switches has CDP active on A's 1/2 and B's 1/1, CDP should log the VLAN mismatch.
If you changed A's 1/2 and B's 1/1 to trunk ports, it wouldn't work unless A's 1/2 had VLAN 5 as the native port and B's 1/1 had VLAN 10 as the native port.
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