6-21
View
System view
Default Level
2: System level
Parameters
mac-address mac-address
: Specifies a MAC address.
vlan vlan-id
: Specifies a VLAN ID, in the range of 1 to 4094.
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.
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
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.
Note that this command only applies to VLANs based on a single MAC address and IP subnet-based
VLANs. If both the MAC address-based VLAN function and the IP subnet-based VLAN function are
Содержание E4510-48G
Страница 109: ...2 18 Sysname interface bridge aggregation 1 Sysname Bridge Aggregation1 shutdown ...
Страница 309: ...6 4 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address dhcp alloc ...
Страница 324: ...8 3 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address bootp alloc ...
Страница 530: ...2 5 Sysname mvlan 100 subvlan 10 to 15 ...
Страница 739: ...8 15 Sysname system view Sysname port security trap addresslearned ...
Страница 819: ...13 11 Sysname system view Sysname public key peer key2 import sshkey key pub ...
Страница 857: ...iii 7 Track Configuration Commands 7 1 Track Configuration Commands 7 1 display track 7 1 track nqa 7 2 ...
Страница 914: ...5 17 Sysname reset oam ...
Страница 1064: ...5 30 Slot 2 Set next configuration file successfully ...
Страница 1325: ...21 13 Examples Redirect to member 2 Sysname irf switch to 2 Sysname Slave 2 ...