All of these hosts on the network will be able to communicate with each other through the router. The router would have to have three vlans setup and route between the vlans. Hosts on each vlan (subnet) would send packets to their default gateway (the router), in order for the packets to traverse the vlans.
You only need one router in the diagram if the router is capable of defining multiple segments. IF it isnt, yes, multiple routers would be added to the design.
JorgeM
Industrious Poster
4,018 posts since Dec 2011
Reputation Points: 297
Solved Threads: 548
Skill Endorsements: 115
Ok, so a router is actually a pretty basic device. All TCP/IP devices have what is called a routing table. This routing table has information about how to move packets out of the system. A router is no different. A router will populate information into this table about the interfaces it has, and other route information it has shared with other routers on the network.
Going back to your example, this router has three subnets defined. Therefore the router has three interfaces (they can be three logical interfaces on one NIC, or three seperate NICs). In any case, the router has been configured with three IPs on three interfaces, each on its own subnet. Each of these IPs now becomes the "default gateway" for hosts on each subnet.
When a computer on subnet2 needs to send a print job to the printer on subnet1, the computer on subnet2 needs to figure out what subnet the printer is located on. It compares the destination IP with its own IP in a process called ANDing. It determines that the destion host (the printer) is located on a remote subnet, therefore it sends the packets to its gateway. The gateway receives that packets and looks at its routing table and performs the same ANDing process to determine where the destination host is located. This process continues until the packets reach the destination host.
I have a summary written up in more detail about this process. Feel free to read over it. http://www.itgeared.com/articles/1054-how-ip-packets-are-routed-on-local-area/
JorgeM
Industrious Poster
4,018 posts since Dec 2011
Reputation Points: 297
Solved Threads: 548
Skill Endorsements: 115