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

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.

主站蜘蛛池模板: 万山特区| 富裕县| 禄丰县| 阿拉善左旗| 福泉市| 兴仁县| 蓬安县| 独山县| 杭锦后旗| 柳林县| 讷河市| 宝鸡市| 汤阴县| 宝应县| 克拉玛依市| 龙泉市| 南和县| 天水市| 万源市| 丹寨县| 鹿邑县| 阿拉善盟| 泸州市| 鄂尔多斯市| 阜新市| 集贤县| 同心县| 琼结县| 洛隆县| 沅陵县| 西乌珠穆沁旗| 孝义市| 津南区| 若羌县| 寿光市| 武城县| 邹城市| 泌阳县| 湖北省| 安阳县| 佛坪县|