cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
936
Views
0
Helpful
5
Replies

Two Machine in different VLAN but on Same subnet address, Will communicate or not and why?

Dinesh Singh
Level 1
Level 1

 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.

5 Replies 5

Reza Sharifi
Hall of Fame
Hall of Fame

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

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?.

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

Thank you very much..

Joseph W. Doherty
Hall of Fame
Hall of Fame

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.

Review Cisco Networking for a $25 gift card