Configure the VLAN tag on a ByteBlower Port. More...
Methods | |
Description.Get | |
Returns a textual description of the object. | |
DropEligible.Get | |
Returns the status of the Drop Eligible Indicator. More... | |
DropEligible.Set bool | |
Enable/Disable the Drop Eligible Indicator. More... | |
ID.Get | |
Get the VLANID. More... | |
ID.Set id | |
Configure the VLAN ID. More... | |
Parent.Get | |
Returns the parent object. | |
Priority.Get | |
Get the VLAN Priority. More... | |
Priority.Set priority | |
Set the VLAN Priority. More... | |
Protocol.ID.Get | |
Get the VLAN Protocol ID (TPID) More... | |
Protocol.ID.Set | |
Set the VLAN Protocol ID (TPID / EtherType) More... | |
Configure the VLAN tag on a ByteBlower Port.
IEEE 802.1Q is the networking standard that supports Virtual LANs (VLANs) on an Ethernet network. The standard defines a system of VLAN tagging for Ethernet frames and the accompanying procedures to be used by bridges and switches in handling such frames
802.1Q does not actually encapsulate the original frame. Instead, for Ethernet frames, it adds a 32-bit field between the source MAC address and the EtherType/Length fields of the original frame
Layer2_5.Vlan::DropEligible.Get |
Returns the status of the Drop Eligible Indicator.
A 1-bit field. (formerly CFI) May be used separately or in conjunction with PCP to indicate frames eligible to be dropped in the presence of congestion.
Layer2_5.Vlan::DropEligible.Set | bool | ||
Enable/Disable the Drop Eligible Indicator.
A 1-bit field. (formerly CFI) May be used separately or in conjunction with PCP to indicate frames eligible to be dropped in the presence of congestion.
bool |
|
Returns:
<Layer2_5.Vlan object>
Enable the Drop Eligible Indicator
Disbale the Drop Eligible Indicator
Layer2_5.Vlan::ID.Get |
Get the VLANID.
A 12-bit field specifying the VLAN to which the frame belongs. The hexadecimal values of 0x000 and 0xFFF are reserved. All other values may be used as VLAN identifiers, allowing up to 4,094 VLANs.
Getting the vlanID of a ByteBlower port tagged with VLAN Id 107
Returns:
107
Layer2_5.Vlan::ID.Set | id | ||
Configure the VLAN ID.
A 12-bit field specifying the VLAN to which the frame belongs. The hexadecimal values of 0x000 and 0xFFF are reserved. All other values may be used as VLAN identifiers, allowing up to 4,094 VLANs
id | Your VLAN ID |
Creating a VLAN tag on the your ByteBlower port
Returns:
<Layer2_5.Vlan object>
Settings vlanID to 107
Layer2_5.Vlan::Priority.Get |
Get the VLAN Priority.
A 3-bit field which refers to the IEEE 802.1p priority. It indicates the frame priority level. Values are from 0 (best effort) to 7 (highest); 1 represents the lowest priority. These values can be used to prioritize different classes of traffic (voice, video, data, etc.).
Layer2_5.Vlan::Priority.Set | priority | ||
Set the VLAN Priority.
A 3-bit field which refers to the IEEE 802.1p priority. It indicates the frame priority level. Values are from 0 (best effort) to 7 (highest); 1 represents the lowest priority. These values can be used to prioritize different classes of traffic (voice, video, data, etc.).
priority | The priority you want to configure: a number between 0 and 7. |
Returns:
<Layer2_5.Vlan object>
Setting the vlan priority to 7 - highest priority
Layer2_5.Vlan::Protocol.ID.Get |
Get the VLAN Protocol ID (TPID)
A 16-bit field specifying the VLAN Protocol ID used in the frames.
IEEE 802.1AD specifies the VLAN C-TAG (customer tag) and S-TAG (service-provider tag). The C-TAG (0x8100) is used on the innermost VLAN tag, while the S-TAG (0x88a8) is used on all other VLAN tags.
I.e. When a single VLAN is used on the ByteBlowerPort, the TPID will be 0x8100. When VLAN stacking is used, the innermost VLAN tag (closest to the Ethernet payload) will use the C-TAG (0x8100) while all other VLAN tags use the S-TAG (0x88a8).
TPID
) for this VLAN tag.Getting the vlan TPID of a ByteBlower port tagged with a single VLAN (0x8100 == 33024)
Returns:
33024
Getting the vlan TPID of a ByteBlower port tagged with a multiple VLANs (0x88a8 == 34984). Printing VLAN Protocol IDs from outermost to innermost VLAN tag:
Returns:
34984 34984 ... 34984 33024
Layer2_5.Vlan::Protocol.ID.Set |
Set the VLAN Protocol ID (TPID / EtherType)
This sets the EtherType of the VLAN tag.
When creating a VLAN tag the EtherType will be 0x8100 (normal VLAN) for the innermost VLAN tag and 0x88a8 (IEEE 802.1AD / QinQ) for the additional (outer) tags. This method allows you to override the default value.
Creating a VLAN tag on the your ByteBlower port
Returns:
<Layer2_5.Vlan object>
Set the ether type to 0x8100 (normal VLAN)
Set the ether type to 0x88a8 (QinQ outer VLAN)