HP 6125G HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 158
MAC-based VLAN configuration commands, display mac-vlan
View all HP 6125G manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 158 highlights
You must use the port trunk permit vlan command to configure the trunk port to allow and forward packets from the PVID. Related commands: port link-type and port trunk permit vlan. Examples # Configure VLAN 100 as the PVID of the trunk port GigabitEthernet 1/0/1. system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] port link-type trunk [Sysname-GigabitEthernet1/0/1] port trunk pvid vlan 100 # Configure VLAN 100 as the PVID of the trunk Layer 2 aggregate interface Bridge-Aggregation 1. system-view [Sysname] interface bridge-aggregation 1 [Sysname-Bridge-Aggregation1] port link-type trunk [Sysname-Bridge-Aggregation1] port trunk pvid vlan 100 MAC-based VLAN configuration commands display mac-vlan Syntax View display mac-vlan { all | dynamic | mac-address mac-address [ mask mac-mask ] | static | vlan vlan-id } [ | { begin | exclude | include } regular-expression ] Any view Default level 1: Monitor level Parameters all: Displays all the MAC address-to-VLAN entries. dynamic: Displays dynamically configured MAC address-to-VLAN entries. mac-address mac-address: Displays the MAC address-to-VLAN entry containing the specified MAC address. mask mac-mask: Displays the MAC address-to-VLAN entries with their MAC addresses in the specified range. static: Displays the statically configured MAC address-to-VLAN entries. vlan vlan-id: Displays the MAC address-to-VLAN entries associated with the specified VLAN. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. 150