background image

 

Configuring VLANs 

About VLANs 

The Virtual Local Area Network (VLAN) technology divides a physical LAN into multiple logical LANs. 
It has the following benefits: 

 

Security

—Hosts in the same VLAN can communicate with one another at Layer 2, but they are 

isolated from hosts in other VLANs at Layer 2. 

 

Broadcast traffic isolation

—Each VLAN is a broadcast domain that limits the transmission of 

broadcast packets. 

 

Flexibility

—A VLAN can be logically divided on a workgroup basis. Hosts in the same 

workgroup can be assigned to the same VLAN, regardless of their physical locations. 

VLAN frame encapsulation 

To  identify  Ethernet  frames  from  different  VLANs,  IEEE 802.1Q inserts a  four-byte  VLAN tag 
between the destination and source MAC address (DA&SA) field and the Type field. 

Figure 1 VLAN tag placement and format 

 

 

As shown i

Figure 1

, a VLAN tag includes the following fields: 

 

TPID

—16-bit tag protocol identifier that indicates whether a frame is VLAN-tagged. By default, 

the hexadecimal TPID value 8100 identifies a VLAN-tagged frame. A device vendor can set the 
TPID to a different value. For compatibility with a neighbor device, set the TPID value on the 
device to be the same as the neighbor device. For more information about setting the TPID 
value, see "Configuring QinQ." 

 

Priority

—3-bit long, identifies the 802.1p priority of the frame.  

 

CFI

—1-bit long canonical format indicator that indicates whether the MAC addresses are 

encapsulated in the standard format when packets are transmitted across different media. 
Available values include: 

 

0 (default)

—The MAC addresses are encapsulated in the standard format. 

 

1

—The MAC addresses are encapsulated in a non-standard format. 

This field is always set to 0 for Ethernet. 

 

VLAN ID

—12-bit long, identifies the VLAN to which the frame belongs. The VLAN ID range is 0 

to 4095. VLAN IDs 0 and 4095 are reserved, and VLAN IDs 1 to 4094 are user configurable. 

The way a network device handles an incoming frame depends on whether the frame has a VLAN 
tag and the value of the VLAN tag (if any). 

Ethernet supports encapsulation formats  Ethernet II,  802.3/802.2 LLC, 802.3/802.2 SNAP, and 
802.3 raw. The Ethernet II encapsulation format is used here. For information about the VLAN tag 
fields in other frame encapsulation formats, see related protocols and standards. 

For a frame that has multiple VLAN tags, the device handles it according to its outermost VLAN tag 
and transmits its inner VLAN tags as the payload. 

 

TPID

DA&SA

Type

Priority

CFI

VLAN Tag

FCS

Data

VLAN ID

Содержание UniServer BX608FE

Страница 1: ...BX608FE Switch Module Layer 2 LAN Switching Configuration Guide New H3C Technologies Co Ltd http www h3c com Software version Release UN_BLADE SWITCH_SYS 1 03 09 and later versions Document version 6...

Страница 2: ...H3C Technologies Co Ltd any trademarks that may be mentioned in this document are the property of their respective owners Notice The information in this document is subject to change without notice A...

Страница 3: ...arguments that are optional x y Braces enclose a set of required syntax choices separated by vertical bars from which you select one x y Square brackets enclose a set of optional syntax choices separa...

Страница 4: ...s a Layer 2 or Layer 3 switch or a router that supports Layer 2 forwarding and other Layer 2 features Represents an access controller a unified wired WLAN module or the access controller engine on a u...

Страница 5: ...Documentation feedback You can e mail your comments about product documentation to info h3c com We appreciate your comments...

Страница 6: ...i Contents Configuring the MAC address table 1 About the MAC address table 1 Display and maintenance commands for MAC address table 1...

Страница 7: ...of the frame if no match is found Display and maintenance commands for MAC address table Execute display commands in any view Task Command Display MAC address table information display mac address ma...

Страница 8: ...tents Configuring VLANs 1 About VLANs 1 VLAN frame encapsulation 1 Protocols and standards 2 Configuring a VLAN 2 Restrictions and guidelines 2 Creating VLANs 2 Display and maintenance commands for VL...

Страница 9: ...on the device to be the same as the neighbor device For more information about setting the TPID value see Configuring QinQ Priority 3 bit long identifies the 802 1p priority of the frame CFI 1 bit lon...

Страница 10: ...3 Optional Set a name for the VLAN name text By default the name of a VLAN is VLAN vlan id The vlan id argument specifies the VLAN ID in a four digit format If the VLAN ID has fewer than four digits...

Страница 11: ...3...

Отзывы: