background image
Virtual LANs 173
Figure 4-22
Example with Three Broadcast Domains, Three VLANs
The switch in Figure 4-22 forwards frames to the router interfaces only if the frame is a
broadcast or is destined for one of the MAC addresses of the router. For example, Fred sends
frames to the router's E0 MAC address when trying to communicate with Barney; this is
because Fred's default router should be the router's E0 interface's IP address. However, when
Fred sends frames to Dino, the destination MAC address of the frame is Dino's MAC address,
and there is no need for the switch to get the router involved. Broadcasts sent by Fred do not go
to the other VLANs because each VLAN is a separate broadcast domain.
VLANs allow easy moves, additions, and changes. For example, if Barney moved to a different
office, which was cabled to a different port on the switch, he can still be configured to be in
VLAN 3. No Layer 3 address changes are necessary, which means that no changes need be
made on Barney.
To implement VLANs in one switch, a separate address (bridging) table is used for each VLAN.
If a frame is received on a port in VLAN 2, the VLAN 2 address table will be searched. When
a frame is received, the source address is checked against the address table so that it can be
added if the address is currently unknown. Also, the destination address is checked so that a
forwarding decision can be made. For both learning and forwarding, the search is made against
the address table for that VLAN only.
Dino
E0
E1
E2
IP Subnet
10.1.1.0/24
IPX network 1
IP Subnet
10.1.2.0/24
IPX network 2
IP Subnet
10.1.3.0/24
IPX network 3
Fred
Barney
0.0
0.2
0.4
0.6
0.8
1.0
Wilma
ch04.fm Page 173 Monday, March 20, 2000 5:02 PM