英文內容
802.1Q
An IEEE standard for providing VLAN identification and quality of service (QoS) levels. Four bytes are added to an Ethernet frame, increasing the maximum frame size from 1518 to 1522 bytes. Three bits are used to allow eight priority levels (QoS) and 12 bits are used to identify up to 4096 VLANs. 802.1q is the IEEE specification for implementation of VLANs (Virtual Local Area Networks) in Layer 2 LAN switches, with emphasis on Ethernet. Similar to 802.1P, prioritization of traffic is accomplished through an additional four bytes of data in the frame header. Most data fields in this addition to the header are specific to VLAN operation. Also included is a field which provides the same 3-bit priority flag specified in 802.1P's priority-mapping scheme. In addition to conventional data traffic, 802.1Q supports voice and video transmission through Ethernet switches. In short, the 802.1Q specification provides a 32-bit header for VLAN frame tagging. Each 802.1Q tag sits in an Ethernet frame between the source address field and the media access control (MAC) client type/length field. An important feature of 802.1Q is the ability to share multiple subnets across a high-speed link. This capability not only reduced the number of lower speed links needed for physical separation, but it also allowed for asymmetrical traffic management so that different speed links could be managed more easily. With IEEE 802.1p and 802.1Q, we saw the introduction of some important concepts that have been carried forward for further QoS (Quality of Service) development. These 802.1 features also can be mapped into higher layer protocols like IP and ATM.
區分 ISL
dot1q就是802.1q,是vlan的一種
封裝方式。dot就是點的意思,就簡寫為dot1q了.
DOT1Q和 ISL的區別:DOT1Q是各類產品的VLAN通用協定模式,Dot1q是一種普遍使用的標準,適用所有
交換機與路由設備。DOT1Q支持4096個vlan,而ISL最多支持1024個vlan。ISL是CISCO設備的專用協定,適用於Cisco設備。 ISL(Interior Switching Link)交換機間協定用於實現CISCO交換機間的VLAN中繼。它是一個信息包標記協定,在支持ISL接口上傳送的幀由一個標準乙太網幀及相關的VLAN信息組成。
R2(config)#interface fastethernet 0/0.1
R2(config-subif)#encapsulation dot1q 100 /封裝802.1q協定,並把該連線埠劃分到vlan 100
R2(config-subif)#ip address 202.114.12.1 255.255.255.192
R2(config-subif)#no shutdown
R2(config-subif)#exit
R2(config)#interface fastethernet 0/0.2
R2(config-subif)#encapsulation dot1q 200
R2(config-subif)#ip address 202.114.12.65 255.255.255.192
R2(config-subif)#no shutdown
R2(config-subif)#exit
R2(config)#interface fastethernet 0/0.3
R2(config-subif)#encapsulation dot1q 300
R2(config-subif)#ip address 202.114.12.129 255.255.255.192
R2(config-subif)#no shutdown
R2(config-subif)#exit
R2(config)#interface fastether0/0
R2(config-if)#no shutdown
Switch0(config)#interface f0/24
Switch0(config-if)# switchport mode trunk
Switch0 (config-if)#switchport trunk encapsulation dot1q
Switch0(config-if)# switchport trunk allowed all
Switch0(config-if)#exit