官术网_书友最值得收藏!

Virtual LANs

An Ethernet switch has multiple ports, and not all of them might be required for a LAN segment. As an example, consider that we have a 24-port switch model and we need to create two different LAN segments with 10 hosts in one segment and 12 in the other. Virtual LAN technology allows a switch to be partitioned into multiple virtual switches or Ethernet segments. The MAC table in a switch that allows VLANs has additional information in addition to the one seen earlier. Each VLAN is denoted by a number, and there can be 4094 theoretical VLANs using 12 bits. There are some reserved VLAN numbers for FDDI and token ring, and not all switches will support 4094 VLANs.

The following figure shows a physical switch with 24 ports numbered 1 through 24. The switch can be partitioned into two logical virtual switching domains defined by VLAN 10 and VLAN 20. Note that although we have shown 12 ports in each VLAN, this is purely a logical configuration, and any port can be assigned to any VLAN:

Figure 3: Creating VLANs

When VLANs are created on the switch, all ports in one VLAN are treated as one broadcast domain independent of the other ports on the switch. This helps to limit the number of broadcasts on the switch. The MAC table of the switch gets modified to include additional information, as shown in the table in the following figure:

Figure 4: MAC table with VLANs

Note in the preceding figure that the ports are preconfigured with the VLAN numbers, even though the MAC addresses are not known in advance. Also note that there are certain ports that have more than one VLAN associated with it and are called trunk ports as described next.

主站蜘蛛池模板: 边坝县| 松潘县| 万源市| 永吉县| 永丰县| 寿宁县| 常德市| 平江县| 金寨县| 平顺县| 都江堰市| 乐至县| 杭州市| 沙坪坝区| 云安县| 奎屯市| 木兰县| 安塞县| 舞阳县| 和硕县| 正镶白旗| 通化市| 宽城| 东乡| 兰坪| 探索| 土默特右旗| 本溪市| 崇义县| 晴隆县| 南岸区| 林甸县| 宁城县| 故城县| 图木舒克市| 中西区| 江口县| 内黄县| 马关县| 黄浦区| 新竹县|