3com S7906E Guide De Référence

Page de 2327
 
1-21 
priority  pri: Specifies the 802.1p priority value corresponding to the specified MAC address. This 
argument is in the range of 0 to 7.  
all: Removes all the static MAC address-to-VLAN entries.  
Description 
Use the mac-vlan mac-address command to associate the specified VLAN and priority value with the 
specified MAC addresses.  
Use the undo mac-vlan command to remove the association.  
Two MAC address-to-VLAN entry tables exist in a device. One table contains the MAC 
address-to-VLAN entries configured with the mask keyword specified. A MAC address-to-VLAN entry 
of this type describes the relationship between a group of MAC addresses and a VLAN, and a priority 
value. Another table contains the MAC address-to-VLAN entries configured without the mask keyword 
specified. A MAC address-to-VLAN entry of this type describes the relationship between a single MAC 
address and a VLAN, and a priority value. The system adds/removes MAC address-to-VLAN entries 
to/from the two tables according to your configuration.  
Examples 
# Associate a single MAC address 0-1-1 with VLAN 100 and 802.1p priority 7.  
<Sysname> system-view 
[Sysname] mac-vlan mac-address 0-1-1 vlan 100 priority 7 
# Associate the MAC addresses with the high-order six hexadecimal digits being 111122 with VLAN 100 
and 802.1p priority 4.  
<Sysname> system-view 
[Sysname] mac-vlan mac-address 1111-2222-3333 mask ffff-ff00-0000 vlan 100 priority 4 
vlan precedence 
Syntax 
vlan precedence { mac-vlan | ip-subnet-vlan } 
undo vlan precedence 
View 
Ethernet port view 
Default Level 
2: System level 
Parameters 
mac-vlan: Specifies to match VLANs based on MAC addresses preferentially.  
ip-subnet-vlan: Specifies to match VLANs based on IP subnet settings preferentially.  
Description 
Use the vlan precedence command to set the order of VLAN matching.  
Use the undo vlan precedence command to restore the default.  
By default, VLANs are matched based on MAC addresses preferentially.