host A compares its IP @ with the one of host B. if they belong to the same subnet, host A broadcasts an ARP request to know the mac @ of host B. host B responds with ARP reply. now host A can send the frame and the switch switches it according to its switching table.
2.Host A -switch(L2)-switch(L2) - Host B
same thing but in this case sw1 will send the frame to sw2. this later sends the frame to B.
3.Host A-switch(L3)-switch(L3)-Host B.
in this case host A and B are in different subnets. sw1 is the gateway of A and sw2 is the gateway of B. when A detects it is in a different subnet, it will send the frame to sw1 (mac destination = sw1 mac ; IP dest= B). so sw1 IP must be configured as gateway for A.
sw1 routes the paquet to sw2. sw2 broadcasts ARP request to search for B mac....
Lot depends if the host B and Host A are on same vlan/subnet or different? Also it really does not matter if you use L2 switches between host A & B or L3 switch between them if you have layer 2 link between the switches let it be l3 switch or l2 switch behavior remains same.
So please confirm if your hosts are in same vlan or different. If they are in different scenario 1 and 2 will not work and scenario 3 will work if you have configured routing (inter vlan routing).
Also assuming they are on same vlan , host A and B source mac addresses will be listed in switch mac address table so when host A want to communicate to host B , it will try to learn host B mac address sending an ARP request and once host B response to host A arp request , host A will send the frame out with host B mac address as destination mac address and once that frame reaches the switch it will check the mac address table and find out that mac address is listed in mac address table for host B and then will also come to know the interface number where host B is connected and frame will be sent to that interface only.
It will work the same way when host A and host B are on 2 different switches but now the mac address of host B will be learned on switch A uplink port so any frame when hits switch A it will fidn out that mac address in destination feild in frame is learned on uplink port and this frame will leave switch A and hit switch B and then switch B will be having host B mac address already listed on port to which it is connected and will receive the frame from on that interface.
Good design is to have inter vlan routing on one switch and configure that switch with all vlans as in your case vlan 15, vlan 2, vlan 3 and vlan 6 layer 3 interfaces should exist on same vlan for inter vlan routing to work.
Or else you can play with routing protocols configured on both the switches and they will advertise vlan 2 and vlan 5 information across the switches.
Or else you can configure static routes also on sw 2 and sw 1 to reach respective interface.
How would I restrict and route multiple voice VLANs to Data VLANs?
Im using do1q encapsulation for voice switch (3560) and data switch(2950). Both these switches are connected to L3 Core Switch (3750). Lastly L3 switch is connected to 2851 which will be used to route VLANs to Head Office.
How would I configure 2851 router to route different VLAN if hosts (IP Phone and PC) to the head office?
Also, does Native VLAN carries traffic of different VLANS?
We are pleased to announce availability of Beta software for 16.6.3.
16.6.3 will be the second rebuild on the 16.6 release train targeted
towards Catalyst 9500/9400/9300/3850/3650 switching platforms. We are
looking for early feedback from customers befor...
Introduction Featured Speakers Luis Espejel is the Telecommunications
Manager of IENova, an Oil & Gas company. Currently he works with Cisco
IOS® and Cisco IOS XE platforms, and NX to some extent. He has also
worked as a Senior Engineer with the Routing P...
In this session you can learn more about Layer 3 multicast and the best
practices to identify possible threats and take security measures. It
provides an overview of basic multicast, the best security practices for
use of this technology, and recommendati...