HP 6125G HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co
HP 6125G Manual
View all HP 6125G manuals
Add to My Manuals
Save this manual to your list of manuals |
HP 6125G manual content summary:
- HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 1
HP 6125 Blade Switch Series Layer 2 - LAN Switching Configuration Guide Part number:5998-3155 Software version: Release 2103 Document version: 6W100-20120907 - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 2
, or use of this material. The only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein should be construed as constituting an additional warranty. HP shall not be liable for technical or editorial errors or - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 3
on an Ethernet interface 5 Configuring link-down event suppression 6 Configuring link-up event suppression 6 Configuring loopback testing on an Ethernet interface 6 Configuration restrictions and guidelines 7 Configuration procedure 7 Configuring jumbo frame support 7 Configuring storm - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 4
ports for an aggregation group 39 Shutting down an aggregate interface 39 Restoring the default settings for an aggregate interface 40 Configuring load sharing for link aggregation groups 40 Configuring load-sharing criteria for link aggregation groups 40 Enabling local-first load sharing for - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 5
device to use when it calculates the default path cost 73 Configuring path costs of ports 74 Configuration example 75 Configuring the port priority 75 Configuring the port link type 76 Configuration restrictions and guidelines 76 Configuration procedure 76 Configuring the mode a port uses to - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 6
Enabling BPDU guard 84 Enabling root guard 85 Enabling loop guard 86 Enabling TC-BPDU guard 86 Displaying and maintaining the spanning tree 87 MSTP configuration example 87 Configuring BPDU tunneling 92 Overview 92 Background 92 BPDU tunneling implementation 93 Enabling BPDU tunneling 94 - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 7
procedure 137 Displaying and maintaining voice VLAN 137 Voice VLAN configuration examples 138 Automatic voice VLAN mode configuration example 138 Manual voice VLAN assignment mode configuration example 140 Configuring GVRP 142 Overview 142 GARP 142 GVRP 145 Protocols and standards - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 8
LLDP 194 Overview 194 Background 194 Basic concepts 194 How LLDP works 198 Protocols and standards 199 LLDP configuration task list 199 Performing basic LLDP configuration 199 Enabling LLDP 199 Setting the LLDP operating mode 200 Setting the LLDP re-initialization delay 200 Enabling - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 9
maintaining service loopback groups 214 Service loopback group configuration example 214 Network requirements 214 Configuration procedure 214 Configuring Layer 2 forwarding 216 Configuring cut-through forwarding 216 Support and other resources 217 Contacting HP 217 Subscription service 217 - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 10
exist on the switch. When you configure the switch, use the Ethernet interfaces of the switch. For more information about internal Ethernet interfaces, external Ethernet interfaces, and SFP+ ports, see HP 6125 Blade Switch Series Installation Guide. Configuring the management Ethernet interface The - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 11
Step 6. Set the MTU for the interface. Command mtu size Remarks Optional. By default, the MTU of an Ethernet interface is 1500 bytes. Configuring basic settings of an Ethernet interface You can set an Ethernet interface to operate in one of the following duplex modes: • Full-duplex mode (full)- - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 12
-Mbps transceiver module into a fiber port, configure the port speed with the speed 1000 or speed auto command. Shutting down an Ethernet interface CAUTION: Use this command with caution. After you manually shut down an Ethernet interface, the Ethernet interface cannot forward packets even if it - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 13
GE1/0/3 As shown in Figure 1, all ports on Switch A are operating in speed auto negotiation mode, with . NOTE: The speed and speed auto commands supersede each other, and whichever is configured last takes effect. Configuring flow control on an Ethernet interface To avoid packet drops on a - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 14
congestion occurs on Port C, Switch B buffers frames. When the amount of buffered frames exceeds a certain value, Switch B sends a common Pause frame command. By default, Rx flow control is disabled on an Ethernet interface. Configuring link change suppression on an Ethernet interface An Ethernet - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 15
up Link-up event suppression is disabled by default. NOTE: The link-delay mode up command and the link-delay command supersedes each other, and whichever is configured last takes effect. Configuring loopback testing on an Ethernet interface If an Ethernet interface does not work normally, you can - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 16
in interface view: Step 1. Enter system view. 2. Enter Ethernet interface view. Command system-view interface interface-type interface-number 3. Configure jumbo frame support. jumboframe enable [ value ] Remarks N/A N/A By default, the switch allows jumbo frames within 9216 bytes to pass - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 17
information about the storm control function, see "Configuring storm control on an Ethernet interface." To set storm suppression thresholds on one or multiple Ethernet interfaces: Step 1. Enter system view. 2. Enter Ethernet interface. Command system-view interface interface-type interface-number - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 18
type of an Ethernet interface by using the port link-type command, the switch removes the protective action configured on the interface. For more information about the port link-type command, see Layer 2-LAN Switching Command Reference. Configuration procedure To configure loopback detection: Step - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 19
down. When a looped port recovers, you must use the undo shutdown command to restore its forwarding capability. Setting the MDI mode of an Ethernet interface IMPORTANT: Fiber ports and internal Ethernet interfaces do not support the MDI mode setting. You can use both crossover and straight-through - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 20
bridging on the Ethernet interface. Command system-view interface interface-type interface-number port bridge enable Remarks N/A N/A Disabled by default. Testing the cable connection of an Ethernet interface IMPORTANT: • Fiber ports and internal Ethernet interfaces do not support this feature - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 21
interface view. 3. Test the cable connected to the Ethernet interface. Command system-view interface interface-type interface-number virtual-cable-test Configuring storm control on an Ethernet interface Storm control compares broadcast, multicast, and unknown unicast traffic regularly with - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 22
log Optional. By default, the interface outputs log messages when monitored traffic exceeds the upper threshold or drops below the lower threshold from the upper threshold. Displaying and maintaining an Ethernet interface Task Command Remarks Display Ethernet interface information. display - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 23
Task Command Remarks Display information about the loopback function. display loopback-detection [ | { begin | . reset counters interface [ interface-type [ interface-number ] ] Available in user view Clear the statistics of discarded packets on the specified interfaces. reset packet- - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 24
BGP packets. Configuration procedure Step 1. Enter system view. 2. Create a loopback interface and enter loopback interface view. Command system-view interface loopback interface-number 3. Set the interface description. description text Remarks N/A N/A Optional By default, - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 25
null interface, Null 0, is supported on your switch. You cannot remove or create a null interface. Configuration procedure Step 1. Enter system view. 2. Enter null interface view. Command system-view interface null 0 3. Set the interface description. 4. Restore the default settings for the null - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 26
on a loopback interface. Clear the statistics on the null interface. Command Remarks display interface [ loopback ] [ brief [ down ] ] Available in any view reset counters interface [ loopback [ interface-number ] ] Available in user view reset counters interface [ null [ 0 ] ] Available in - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 27
an error message and continues with the next member interface. Configuration guidelines When you bulk configure interfaces in interface range view, follow these restrictions and guidelines: • In interface range view, only the commands supported by the first interface are available. • Do not assign - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 28
Guide. The MAC address table can contain only Layer 2 Ethernet ports and Layer 2 aggregate interfaces. The MAC address table configuration tasks are all optional can be performed in any order. Overview To reduce single-destination packet flooding in a switched LAN, an Ethernet device uses - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 29
, you can bind specific user devices to the port by manually adding MAC address entries to the MAC address table of the switch. Types of MAC address Blackhole entries-Blackhole entries are manually configured and never age out. Blackhole entries are configured for filtering out frames with specific - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 30
N/A By default, no MAC address entry is configured. Make sure that you have created the VLAN and assigned the interface to the VLAN. Configuring a static or dynamic MAC address table entry in interface view Step Command 1. Enter system view. system-view 2. Enter Layer 2 Ethernet interface - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 31
VLAN view. 4. Disable MAC address learning on the VLAN. Command system-view undo mac-address mac-learning disable vlan vlan-id Remarks N/A Optional Enabled by default. N/A mac-address mac-learning disable Enabled by default. Configuring the aging timer for dynamic MAC address entries The MAC - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 32
2 Ethernet interface view. Command system-view interface interface-type interface-number 3. Configure the MAC learning limit mac-address max-mac-count count on the interface. Remarks N/A N/A No MAC learning limit is configured by default. Layer 2 aggregate interfaces do not support this command - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 33
Task Command Remarks Display MAC address table information. display mac-address [ mac-address [ vlan vlan-id ] | begin | exclude | include } regular-expression ] Available in any view MAC address table configuration example Network requirements As shown in Figure 3: • The MAC address of Host A - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 34
# Add a blackhole MAC address entry. [Sysname] mac-address blackhole 000f-e235-abcd vlan 1 # Set the aging timer for dynamic MAC address entries to 500 seconds. [Sysname] mac-address timer aging 500 # Display the MAC address entry for port GigabitEthernet 1/0/1. [Sysname] display mac-address - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 35
user Configuring a voice VLAN." Enabling MAC Information globally Step 1. Enter system view. 2. Enable MAC Information globally. Command system-view mac-address information enable Remarks N/A Disabled by default. Enabling MAC Information on an interface To enable MAC Information on an Ethernet - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 36
system view. 2. Enter Layer 2 Ethernet interface view. 3. Enable MAC Information on the interface. Command system-view interface interface-type interface-number mac-address information enable { added | deleted } Remarks N/A N/A Disabled by default. Configuring MAC Information mode Step 1. Enter - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 37
queue length. Command mac-address information queue-length value Remarks Optional 50 by default. MAC Information configuration example Network diagram Configuration procedure 1. Configure Device to send Syslog messages to Host B (see Network Management and Monitoring Configuration Guide). 2. - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 38
switched to other member ports. As shown in Figure 5, Device A and Device B are connected by three physical Ethernet links. These physical Ethernet entity that uses the link aggregation service, a link aggregation group appears to user traffic. • Unselected: An Unselected port cannot forward user - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 39
as the reference port. A Selected port must have the same port attributes and class-two configurations as the reference port. LACP The IEEE 802.3ad Link Aggregation Control Protocol (LACP) enables dynamic aggregation of physical links. It uses link aggregation control protocol data units (LACPDUs - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 40
Switch Series can participate in LACP MAD as either an IRF member switch or an intermediate device. For more information about IRF, member switches, intermediate devices, and the LACP MAD mechanism, see IRF Configuration Guide. 2. LACP priorities LACP system LACP LACP timeout interval The LACP LACP - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 41
send LACPDUs only if it is up and has the same class-two configurations as the aggregate interface. Aggregating links in static mode LACP is disabled on the member ports in a static aggregation group. You must manually maintain the aggregation state of the member ports. The static link aggregation - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 42
restriction? No No Is the port up? Yes No Port attribute/class 2 configurations same as the reference port? Yes Yes More candidate ports than max. number the port in the Unselected state Aggregating links in dynamic mode LACP is automatically enabled on all member ports in a dynamic aggregation - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 43
link aggregation groups In a link aggregation group, traffic can be load-shared across the selected member ports based on a set of criteria, depending on your configuration. 34 - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 44
Ethernet link aggregation configuration task list Task Configuring an aggregation group Configuring an aggregate interface Configuring load sharing for link aggregation groups Configuring a static aggregation group Configuring the default settings for an aggregate interface Optional Configuring - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 45
security in Security Configuration Guide IP source guard in Security Configuration Guide 802.1X in Security Configuration Guide • If a port Ethernet interfaces to the aggregation group. 5. Assign the port an aggregation priority. link-aggregation port-priority port-priority Optional. By default - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 46
aggregation state of each member port. Configuring a Layer 2 dynamic aggregation group Step 1. Enter system view. Command system-view Remarks N/A 2. Set the system LACP priority. lacp system-priority system-priority Optional. By default, the system LACP priority is 32768. Changing the system - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 47
Network Management and Monitoring Configuration Guide. To enable link state traps on an aggregate interface: Step 1. Enter system view. 2. Enable the trap function globally. Command system-view snmp-agent trap enable [ standard [ linkdown | linkup ] * ] Remarks N/A Optional By default, link state - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 48
you understand the following impacts of the port threshold settings: • Configuring the minimum number of Selected ports required to bring up an command. 3. Set the minimum number of Selected link-aggregation selected-port ports for the aggregation group. minimum number Not specified by default - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 49
interface view. interface bridge-aggregation interface-number 3. Restore the default settings for the aggregate interface. default Remarks N/A Use either command. N/A Configuring load sharing for link aggregation groups Configuring load-sharing criteria for link aggregation groups You can - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 50
Configure the global link-aggregation load-sharing criteria. Command link-aggregation load-sharing mode { destination-ip | destination-mac | source-ip | source-mac } * Remarks By default, the system selects the global load sharing criteria according to the packet type. In system view, the switch - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 51
Command system-view 2. Enable local-first load-sharing link-aggregation load-sharing for link aggregation. mode local-first Remarks N/A Optional. Enabled by default. Displaying and maintaining Ethernet } regular-expression ] Available in any view display lacp system-id [ | { begin | exclude | - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 52
Task Command Remarks Display lacp statistics [ interface interface-list ] Available in user view Clear statistics for a specific or all reset counters interface [ bridge-aggregation aggregate interfaces. [ interface-number ] ] Available in user view Ethernet link aggregation configuration - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 53
load-sharing criteria. [DeviceA] link-aggregation load-sharing mode source-mac destination-mac 2. Configure Device B in the same way as you configure Device A. 3. Verify the configurations: # Display summary information about all aggregation groups on Device A. [DeviceA] display link-aggregation - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 54
Network requirements As shown in Figure 10: • Device A and Device B are connected through their respective Layer 2 Ethernet interfaces GigabitEthernet 1/0/1 through GigabitEthernet 1/0/3. • Configure a Layer 2 dynamic aggregation group on both Device A and Device B, enable VLAN 10 at one end of the - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 55
20. [DeviceA] vlan 20 [DeviceA-vlan20] port gigabitethernet 1/0/5 [DeviceA-vlan20] quit # Create Layer 2 aggregate interface Bridge-Aggregation 1, and configure the link aggregation mode as dynamic. [DeviceA] interface bridge-aggregation 1 [DeviceA-Bridge-Aggregation1] link-aggregation mode dynamic - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 56
Interface Mode Ports Ports Type BAGG1 D 0x8000, 000f-e2ff-0002 3 0 Shar The output shows that link aggregation group 1 is a load-shared Layer 2 dynamic aggregation group and it contains three Selected ports. # Display the global link-aggregation load-sharing criteria on Device A. [ - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 57
isolation group if they are in the same VLAN. The switch series supports only one isolation group "isolation group 1." The isolation commands. • In Ethernet interface view, the subsequent configurations apply to the current port. • In Layer 2 aggregate interface view, the subsequent configurations - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 58
Figure 11 Networking diagram Configuration procedure # Add ports GigabitEthernet 1/0/1, GigabitEthernet 1/0/2, and GigabitEthernet 1/0/3 to the display port-isolate group Port-isolate group information: Uplink port support: NO Group ID: 1 Group members: GigabitEthernet 1/0/1 GigabitEthernet - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 59
as backups in case of failures, but loops are a very serious problem. Devices that run STP detect loops in the network by exchanging information configuration BPDU while it propagates in the network. • Max age-Maximum age of the configuration BPDU stored on the switch. • Hello time-Configuration - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 60
The root bridge is not permanent, but can change with changes of the network topology. Upon initialization of a network, each device generates and periodically sends configuration BPDUs with itself as the root bridge. After network convergence, only the root bridge generates and periodically sends - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 61
superior, the device blocks this port without updating its configuration BPDU. The blocked port can receive BPDUs, but cannot send BPDUs or forward data traffic. NOTE: When the network topology is stable, only the root port and designated ports forward user traffic, while other ports are all in the - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 62
have the same ports value, their designated bridge IDs, designated port IDs, and the IDs of the receiving ports are compared in sequence. The configuration BPDU that contains the smallest ID wins. A tree-shape topology forms when the root bridge, root ports, and designated ports are selected. Figure - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 63
BPDU on the port {0, 0, 0, Port A2} {1, 0, 1, Port B1} {1, 0, 1, Port B2} {2, 0, 2, Port C1} {2, 0, 2, Port C2} NOTE: In Table 10, each configuration BPDU contains the following fields: root bridge ID, root path cost, designated bridge ID, and designated port ID. 5. Comparison process and result - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 64
• Port C2: {0, 5, 1, Port B2} • Blocked port (Port C1): {0, 0, 0, Port A2} • Root port (Port C2): {0, 5, 1, Port B2} NOTE: In Table 11, each configuration BPDU contains the following fields: root bridge ID, root path cost, designated bridge ID, and designated port ID. After the comparison processes - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 65
root ports or designated ports require twice the forward delay time before they transit to the forwarding state to make sure that the new configuration BPDU has propagated throughout the network. • Hello time The device sends hello packets at the hello time interval to the neighboring devices to - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 66
a stored configuration BPDU has expired is an edge port (a port that directly connects to a user terminal rather than to another network device or a shared LAN switched network into multiple regions, each of which contains multiple spanning trees that are independent of one another. • MSTP supports - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 67
MSTP basic concepts Figure 15 shows a switched network that comprises four MST regions, each MST region comprising four MSTP devices. Figure 16 shows the networking topology of MST region 3. Figure 15 Basic - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 68
-to-instance mapping configuration • Same MSTP revision level • Physically linked together Multiple MST regions can exist in a switched network. You can It is also called MSTI 0, a special MSTI to which all VLANs are mapped by default. In Figure 15, MSTI 0 is the IST in MST region 3. CIST The common - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 69
blocked port acts as the backup. • Edge port-An edge port does not connect to any network device or network segment, but directly connects to a user host. • Master port-A port on the shortest path from the local MST region to the common root bridge. The master port is not always located - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 70
MAC addresses or forward user traffic. When in different supports. (A check mark [√] indicates that the port supports this state, while a dash [-] indicates that the port does not support this state.) Table 12 Port states that different port roles support process of configuration BPDU comparison. - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 71
are mutually exclusive with any of the following functions on a port: service loopback, RRPP, Smart Link, and BPDU tunneling. • The spanning tree configurations made in system view take effect globally. Configurations made in Layer 2 Ethernet interface view take effect on the current interface only - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 72
bridge or a secondary root bridge Configuring the device priority Configuring the root bridge Configuring the network diameter of a switched network Configuring spanning tree timers Configuring the timeout factor Configuring the maximum port rate Configuring the mode a port uses to recognize - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 73
bridge or a secondary root bridge Optional Configuring the device priority Optional Configuring the network diameter of a switched network Optional Configuring the root bridge Configuring spanning tree timers Configuring the timeout factor Configuring the maximum port rate Optional Optional - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 74
hops of an MST region Configuring the network diameter of a switched network Configuring spanning tree timers Configuring the timeout factor Optional Optional Optional Optional Configuring the maximum port rate Optional Configuring edge ports Optional Configuring the port link type Optional - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 75
send STP BPDUs. Select this mode when the peer device of a port supports only STP. • RSTP mode-All ports of the device send RSTP BPDUs. 2. Set the spanning tree mode. Command system-view stp mode { stp | rstp | mstp } Remarks N/A MSTP mode by default. Configuring an MST region Two or more - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 76
MSTP revision level of the MST region. 6. Display the MST region configurations that are not activated yet. 7. Activate MST region configuration manually. 8. Display the activated configuration information of the MST region. Command • instance instance-id vlan vlan-list • vlan-mapping modulo modulo - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 77
STP/RSTP mode: stp root primary • In MSTP mode: stp [ instance instance-id ] root primary Remarks N/A Use one of the commands. By default, a device does not function as the root bridge. Configuring the current device as a secondary root bridge of a specific spanning tree Step 1. Enter system view - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 78
the maximum hops of the MST region. Command system-view stp max-hops hops Remarks N/A 20 by default. Configuring the network diameter of a switched network Any two terminal devices in a switched network are connected through a specific path composed of a series of devices. The network diameter is - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 79
{ Max age ≥ 2 × (hello time + 1 second) HP does not recommend you to manually set the spanning tree timers. Instead, you can specify the network send the same configuration BPDUs, which adds the device burden and wastes network resources. HP recommends you to use the default setting. • If - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 80
configure the timeout factor: Step 1. Enter system view. 2. Configure the timeout factor of the device. Command system-view stp timer-factor factor Remarks N/A 3 by default. Configuring becomes unstable. HP recommends you to use the default setting. To configure the maximum rate of a port: 71 - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 81
1. Enter system view. Command system-view Remarks N/A 2. Enter Layer 2 Ethernet interface view or Layer 2 aggregate interface view . interface interface-type interface-number N/A 3. Configure the maximum rate of the ports. stp transmit-limit limit 10 by default. Configuring edge ports If - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 82
have the device automatically calculate the default path cost, or you can configure the path cost for ports. default path costs, you restore the path costs to the default. You can specify a standard for the device to use in automatic calculation for the default path cost. The device supports - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 83
, the forwarding path selected might not be optimal. To solve this problem, use dot1t as the standard for default path cost calculation, or manually set the path cost for a port (Configuring path costs of ports). Configuration procedure To specify a standard for the device to use when it calculates - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 84
-view Remarks N/A 2. Enter Layer 2 Ethernet interface view or Layer 2 aggregate interface interface interface-type interface-number view. N/A 3. Configure the port priority. • In STP/RSTP mode: stp port priority priority Use one of the commands. • In MSTP mode: The default setting is stp - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 85
interface or a port that operates in full duplex mode. HP recommends you to use the default setting and let the device to automatically detect the port link type. • The stp point-to-point force-false or stp point-to-point force-true command configured on a port in MSTP mode is effective for all - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 86
information about the detection interval, see Fundamentals Configuration Guide. To configure the MSTP packet format to be supported on a port: Step 1. Enter system view. Command system-view Remarks N/A 2. Enter Layer 2 Ethernet interface view or Layer 2 aggregate interface interface interface - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 87
Command system-view 2. Enable the spanning tree feature globally. stp enable 3. Enter Layer 2 Ethernet interface view or Layer 2 aggregate interface interface-type interface-number interface view. 4. Enable the spanning tree feature for the port. stp enable Remarks N/A By default configuring - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 88
is already working well. Configuration procedure You can enable Digest Snooping only on the HP device that is connected to a third-party device that uses its private key to calculate the configuration digest. To configure Digest Snooping: Step 1. Enter system view. Command system-view Remarks - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 89
Step Command 2. Enter Layer 2 Ethernet interface view or Layer 2 aggregate interface view. interface config-digest-snooping quit stp config-digest-snooping Disabled by default. N/A Disabled by default. Digest Snooping configuration example Network requirements As shown in Figure 18: • Device - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 90
-view [DeviceB] interface gigabitethernet 1/0/1 [DeviceB-GigabitEthernet1/0/1] stp config-digest-snooping [DeviceB-GigabitEthernet1/0/1] quit [DeviceB] stp config-digest-snooping Configuring No Agreement Check In RSTP and MSTP, the following types of messages are used for rapid state transition on - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 91
its state rapidly. Configuration prerequisites Before you configure the No Agreement device that supports spanning tree protocols via a point-to-point link. • Configure the same configure No Agreement Check: Step 1. Enter system view. Command system-view Remarks N/A 2. Enter Layer 2 Ethernet - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 92
Device A is the downstream device. Figure 21 Network diagram Configuration procedure # Enable No Agreement Check on GigabitEthernet 1/0/1 of The IRF fabric connects to two user networks, in which all devices are enabled with the spanning tree feature. The user networks are dual-uplinked to the - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 93
tree feature. 3. Enable TC snooping. Command system-view undo stp enable stp tc-snooping Description N/A By default, the spanning tree feature is disabled globally. Disabled by default. Configuring protection functions A spanning tree device supports the following protection functions: • BPDU - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 94
BPDU guard function for the device. Command system-view stp bpdu-protection Remarks N/A Disabled by default. NOTE: BPDU guard does not take effect on loopback-testing-enabled ports. For more information about loopback testing, see "Configuring Ethernet interfaces." Enabling root guard The root - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 95
in the discarding state to prevent temporary loops. Configure loop guard on the root port and alternate ports of a device. To enable loop guard: Step 1. Enter system view. Command system-view Remarks N/A 2. Enter Layer 2 Ethernet interface view or Layer 2 aggregate interface view. interface - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 96
HP does not recommend you disable this feature. Remarks Optional. Enabled by default. Optional. 6 by default. Displaying and maintaining the spanning tree Task Command [ interface interface-list ] Available in user view MSTP configuration example Network requirements As shown in Figure 23: 87 - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 97
: VLANs 10 and 20 Permit: VLANs 20 and 30 Permit: VLANs 20 and 30 GE1/0/2 GE1/0/3 Permit: VLANs 20 and 40 Device C Device D Configuration procedure 1. Configure VLANs and VLAN member ports: (Details not shown.) { Create VLAN 10, VLAN 20, and VLAN 30 on Device A and Device B. { Create VLAN 10 - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 98
the root bridge of MSTI 1. [DeviceA] stp instance 1 root primary # Enable the spanning tree feature globally. [DeviceA] stp enable 3. Configure Device B: # Enter MST region view, configure the MST region name as example, map VLAN 10, VLAN 30, and VLAN 40 to MSTI 1, MSTI 3, and MSTI 4, respectively - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 99
feature globally. [DeviceD] stp enable 6. Verify the configurations: In this example, suppose that Device B has the lowest root bridge ID. As a result, Device B is elected as the root bridge in MSTI 0. You can use the display stp brief command to display brief spanning tree information on each - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 100
0 GigabitEthernet1/0/1 ROOT FORWARDING NONE 0 GigabitEthernet1/0/2 ALTE DISCARDING NONE 0 GigabitEthernet1/0/3 ALTE DISCARDING NONE 3 GigabitEthernet1/0/1 ROOT FORWARDING NONE 3 GigabitEthernet1/0/2 ALTE DISCARDING NONE 4 GigabitEthernet1/0/3 ROOT FORWARDING NONE Based on the - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 101
) is forwarded to PE 2 at the other end of the service provider network, which de-encapsulates the packet, restores the original destination MAC address of the packet, and then sends the packet to CE 2. HP devices support BPDU tunneling for the following protocols: • Cisco Discovery Protocol (CDP - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 102
Ethernet Operation, Administration and Maintenance (EOAM) • GARP VLAN Registration Protocol (GVRP) • HW Group Management Protocol (HGMP) • Link Aggregation Control Protocol (LACP see "Configuring spanning service provider network, can receive and process these BPDUs. In this case, neither the service - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 103
default multicast MAC address), for example. In the service provider network, the modified BPDU is forwarded as a data packet in the VLAN assigned to User A. 2. At the egress of the service VLAN. • Configure ports that connect network devices in the service provider network as trunk ports that allow - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 104
, EOAM, LACP, LLDP, PAGP, or UDLD on the member port of a Layer 2 aggregation group. Configuration procedure You can enable BPDU tunneling for different protocols in different views. Enabling BPDU tunneling for a protocol in Layer 2 Ethernet interface view Step 1. Enter system view. Command system - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 105
for BPDUs. Command system-view bpdu-tunnel tunnel-dmac mac-address Remarks N/A Optional. 0x010F-E200-0003 by default. NOTE: For BPDUs to be recognized, the destination multicast MAC addresses configured for BPDU tunneling must be the same on the edge devices on the service provider network - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 106
packets of any VLAN to pass through. • PVST is enabled for VLANs 1 through 4094 on User A's network. After the configuration, CE 1 and CE 2 must implement consistent PVST calculation across the service provider network, and the destination multicast MAC address carried in BPDUs must be 0x0100-0CCD - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 107
on it. [PE1-GigabitEthernet1/0/1] undo stp enable [PE1-GigabitEthernet1/0/1] bpdu-tunnel dot1q stp [PE1-GigabitEthernet1/0/1] bpdu-tunnel dot1q pvst 2. Configure PE 2: # Configure the destination multicast MAC address for BPDUs as 0x0100-0CCD-CDD0. system-view [PE2] bpdu-tunnel tunnel-dmac - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 108
Configuring VLANs Overview Ethernet is a network technology based on the CSMA/CD mechanism. Because the medium is shared, collisions and excessive broadcasts are common on Ethernet routers or Layer 3 switches are required. 3. Creating flexible virtual workgroups. Because users from the same workgroup - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 109
Ethernet II encapsulation format, Ethernet also supports configured value or 0x8100, the frame is considered as a VLAN-tagged frame. For information about commands used to modify TPID values, see Layer 2-LAN Switching Command . The value of this field is 0 by default. • VLAN ID-The 12-bit VLAN ID - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 110
Configuring basic VLAN settings Configuration restrictions and guidelines • As the default VLAN, VLAN 1 cannot be created or removed. • You cannot manually , remove the configuration from the VLAN first, and execute the undo vlan command. Configuration procedure To configure basic VLAN settings - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 111
interface. { mask | mask-length } [ sub ] 4. Configure a description for the VLAN interface. description text 5. Set the MTU for the VLAN interface. mtu size 6. Restore the default settings for the VLAN interface. default 7. Cancel the action of manually shutting down the undo shutdown - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 112
gateway of PC A as 192.168.0.10. 3. Configure the default gateway of PC B as 192.168.1.20. Verifying the configurations 1. The PCs can ping each other. 2. Display brief information about Layer 3 interfaces on Switch A to verify the configuration. display ip interface brief *down - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 113
configure a port connected to a network device or user terminal as a hybrid port. PVID By default, VLAN 1 is the PVID for all ports. You can configure the PVID for a port as required. When you configure the undo vlan command to remove the , see "Configuring a voice VLAN." • HP recommends that you - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 114
the VLAN tag removed or intact depending on your configuration via the port hybrid vlan command. This is true of the PVID. Assigning an access . Command system-view vlan vlan-id port interface-list Remarks N/A If the specified VLAN does not exist, this command creates the VLAN first. By default, - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 115
Remarks Use any command. • The configuration made in Layer 2 Ethernet interface view applies only to the port. • Enter Layer 2 Ethernet interface • The configuration made in Layer 2 view: aggregate interface view applies to the 2. Enter Layer 2 Ethernet interface interface-type aggregate - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 116
any command. • The configuration made in Layer 2 Ethernet interface view applies only to the port. • The configuration made in . Optional. By default, the PVID is VLAN 1. NOTE: After configuring the PVID for a trunk port, you must use the port trunk permit vlan command to configure the trunk port - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 117
hybrid vlan vlan-list { tagged | untagged } port hybrid pvid vlan vlan-id Remarks Use any command. • The configuration made in Ethernet interface view applies only to the port. • The configuration made in Layer 2 aggregate interface view applies to the aggregate interface and its aggregation member - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 118
Create VLAN 200, and assign port GigabitEthernet 1/0/2 to VLAN 200. [DeviceA] vlan 200 [DeviceA-vlan200] port gigabitethernet 1/0/2 [DeviceA-vlan200] quit # Configure port GigabitEthernet 1/0/3 as a trunk port, and assign it to VLANs 100 and 200, to enable GigabitEthernet 1/0/3 to forward traffic of - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 119
based VLAN assignment applies to networks containing a small number of VLAN users. In such a network, you can create a MAC address-to assign the port to MAC-based VLANs. With static MAC-based VLAN assignment configured on a port, the device processes received frames by using the following guidelines - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 120
MAC-to-VLAN map, and processes the frame as follows: • If the source MAC address of the frame exactly matches a MAC address-to-VLAN entry configured on the port, the port checks whether the VLAN ID of the frame is the same as the VLAN in the MAC-to-VLAN entry - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 121
configuring dynamic MAC-based VLAN on the device, you must configure the username-to-VLAN entries on the access authentication server. When a user .1X and MAC authentication, see Security Configuration Guide. Configuration restrictions and guidelines When you configure a MAC-based VLAN, follow these - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 122
default, all ports are access ports. By default, a hybrid port only permits the packets from VLAN 1 to pass through. Disabled by default. 7. Configure . 3. Enter Ethernet interface view. 4. Configure the link type of the port as hybrid. 5. Enable the MAC-based VLAN feature. Command system-view mac - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 123
-VLAN entry. port pvid disable Remarks By default, dynamic MAC-based VLAN assignment is disabled. When you use the mac-vlan trigger enable command to enable dynamic MAC-based VLAN assignment, HP recommends that you configure the vlan precedence mac-vlan command, so that VLANs are assigned based on - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 124
B to VLANs 100 and 200. • Associate the MAC address of Laptop 1 with VLAN 100, and associate the MAC address of Laptop 2 with VLAN 200. Configuration procedure 1. Configure Device A: # Create VLANs 100 and 200. system-view [DeviceA] vlan 100 [DeviceA-vlan100] quit [DeviceA] vlan 200 115 - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 125
vlan mac-address 000d-88f8-4e71 vlan 100 [DeviceA] mac-vlan mac-address 0014-222c-aa69 vlan 200 # Configure Laptop 1 and Laptop 2 to access the network through GigabitEthernet 1/0/1. Configure GigabitEthernet 1/0/1 as a hybrid port that sends packets of VLANs 100 and 200 untagged, and enable the MAC - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 126
include IP, IPX, and AppleTalk (AT), and the encapsulation formats include Ethernet II, 802.3 raw, 802.2 LLC, and 802.2 SNAP. A it forwards the packet. • If not, the port drops the packet. Configuration restrictions and guidelines A protocol-based VLAN processes only untagged inbound packets, - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 127
by default. 4. Exit VLAN view. quit N/A 5. Enter interface view. • Enter Layer 2 Ethernet interface view: interface interface-type interface-number • Enter Layer 2 aggregate interface view: interface bridge-aggregation interface-number Use any command. • The configuration made in Ethernet - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 128
100. [Device-vlan200] protocol-vlan 1 ipv6 [Device-vlan200] quit [Device] vlan 100 [Device-vlan100] protocol-vlan 1 ipv4 [Device-vlan100] quit # Configure port GigabitEthernet 1/0/1 as a hybrid port that forwards packets of VLANs 100 and 200 untagged. [Device] interface gigabitethernet 1/0/1 [Device - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 129
[Device-GigabitEthernet1/0/2] port hybrid protocol-vlan vlan 100 1 [Device-GigabitEthernet1/0/2] port hybrid protocol-vlan vlan 200 1 2. Keep the default settings of L2 Switch A and L2 Switch B. 3. Configure IPv4 Host A, IPv4 Host B, and IPv4 Server to be on the same IP subnet (192.168.100.0/24, for - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 130
permit the specified IP subnet-based VLANs to pass through. Use any command. • The configuration made in Ethernet interface view applies only to the port. • Enter Layer 2 Ethernet interface • The configuration made in Layer 2 view: aggregate interface view applies to interface interface-type - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 131
Step 8. Associate the hybrid ports with the specified IP subnet-based VLAN. Command port hybrid ip-subnet-vlan vlan vlan-id Remarks Not configured by default. IP subnet-based VLAN configuration example Network requirements As shown in Figure 37, the hosts in the office belong to different IP - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 132
port hybrid ip-subnet-vlan vlan 100 [DeviceC-GigabitEthernet1/0/1] port hybrid ip-subnet-vlan vlan 200 [DeviceC-GigabitEthernet1/0/1] return Verifying the configurations # Display the IP subnet information for all VLANs. display ip-subnet-vlan vlan all VLAN ID: 100 Subnet Index IP - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 133
Displaying and maintaining VLAN Task Command Remarks Display VLAN information. display vlan [ vlan-id1 [ to vlan-id2 ] | all | dynamic | reserved | static ] expression ] view Clear statistics on a port. reset counters interface vlan-interface [ vlan-interface-id ] Available in user view 124 - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 134
38 An isolate-user-VLAN example To configure an isolate-user-VLAN, complete the following tasks: 1. Configure the isolate-user-VLAN. 2. Configure the secondary VLANs. 3. Associate the isolate-user-VLAN with the specified secondary VLANs. 4. Configure uplink and downlink ports: { Configure the uplink - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 135
automatically. For more information about the promiscuous and host mode commands, see Layer 2-LAN Switching Command Reference. Configuration restrictions and guidelines • After you complete the Configuration procedure, make sure that the isolate-user-VLAN is the PVID of the upstream port and the - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 136
. Command a. Enter Layer 2 Ethernet or aggregate interface view: interface interface-type interface-number Or interface bridge-aggregation interface-number b. Configure the port to operate in promiscuous mode in a specific VLAN: port isolate-user-vlan vlan-id promiscuous Remarks By default, a port - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 137
associate VLAN 5 with secondary VLANs VLAN 2 and VLAN 3. Assign GigabitEthernet 1/0/2 to VLAN 2 and GigabitEthernet 1/0/1 to VLAN 3. • Configure VLAN 6 on Device C as an isolate-user-VLAN, assign the uplink port GigabitEthernet 1/0/5 to VLAN 6, and associate VLAN 6 with secondary VLANs VLAN 3 and - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 138
-vlan enable [DeviceC-vlan6] quit # Create secondary VLANs. [DeviceC] vlan 3 to 4 # Associate the isolate-user-VLAN with the secondary VLANs. [DeviceC] isolate-user-vlan 6 secondary 3 to 4 # Configure the uplink port GigabitEthernet 1/0/5 to operate in promiscuous mode in VLAN 6. [DeviceC] interface - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 139
Tagged Ports: none Untagged Ports: GigabitEthernet1/0/2 GigabitEthernet1/0/5 VLAN ID: 3 VLAN Type: static Isolate-user-VLAN type : secondary Route Interface: not configured Description: VLAN 0003 Name: VLAN 0003 Tagged Ports: none Untagged Ports: GigabitEthernet1/0/1 GigabitEthernet1 - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 140
configures quality of service default OUI address of a device manually and then add new ones manually. You can configure the OUI addresses of a device in advance or use the default OUI addresses. Table 14 lists the default in the voice vlan mac-address command. Voice VLAN assignment modes A port - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 141
40 PCs and IP phones connected in series access the network • Manual mode-You must manually assign an IP phone accessing port to support tagged voice traffic Port link type Access Trunk Voice VLAN Support for tagged assignment mode voice traffic Automatic No Manual Automatic Yes Configuration - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 142
802.1X authentication. • The PVID is VLAN 1 for all ports by default. You can configure the PVID of a port and assign a port to certain VLANs by using commands. For more information, see "Configuring VLANs." • Use the display interface command to display the PVID of a port and the VLANs to which the - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 143
checking. TIP: HP does not recommend manual voice VLAN assignment mode." Configuring QoS priority settings for voice traffic on an interface In voice VLAN applications, you can improve the quality of voice traffic by configuring the appropriate QoS priority settings, including the Class of Service - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 144
your priority trust setting will fail. Configuration procedure To configure QoS priority settings for voice traffic: Step Command 1. Enter system view. system-view 2. Enter Layer 2 Ethernet interface view. interface interface-type interface-number 3. Configure the interface to trust the QoS - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 145
Use one of the commands. Optional. By default, the automatic voice VLAN assignment mode is enabled. The voice VLAN assignment modes on different ports are independent of one another. By default, the voice VLAN feature is disabled. Configuring a port to operate in manual voice VLAN assignment mode - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 146
, the voice VLAN security mode is enabled. Optional. By default, each voice VLAN has default OUI addresses configured. For the default OUI addresses of different vendors, see Table 14. N/A By default, the manual voice VLAN assignment mode is disabled. After you assign an access port to the voice - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 147
at the same time, to ensure the quality of voice packets and effective bandwidth use, configure voice VLANs to operate in security mode. Configure the voice VLANs to transmit only voice packets. By default, voice VLANs operate in security mode. (Optional) [DeviceA] voice vlan security enable 138 - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 148
hybrid port. [DeviceA] interface gigabitethernet 1/0/1 [DeviceA-GigabitEthernet1/0/1] port link-type hybrid # Configure GigabitEthernet 1/0/1 to operate in automatic voice VLAN assignment mode. By default, a port operates in automatic voice VLAN assignment mode. (Optional) [DeviceA-GigabitEthernet1 - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 149
Configure GigabitEthernet 1/0/1 as a hybrid port. • Configure GigabitEthernet 1/0/1 to operate in manual voice VLAN assignment mode. Configure Network diagram Configuration procedure # Configure the voice VLAN to operate in security mode. A voice VLAN operates in security mode by default. (Optional - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 150
VLANs: 1 Voice VLAN security mode: Security Voice VLAN aging time: 1440 minutes Voice VLAN enabled port and its mode: PORT VLAN MODE COS DSCP GigabitEthernet1/0/1 2 MANUAL 6 46 141 - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 151
Configuring GVRP The Generic Attribute Registration Protocol (GARP) provides a generic framework for devices in a switched LAN, such as end stations and switches GARP enables GARP participants to propagate attribute values throughout the switched LAN. As shown in Figure 44, a GARP participant - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 152
attribute value, they must send a Join message. GARP timers HP's implementation of GARP uses the following timers to control GARP timers also restart when the GARP participant receives a LeaveAll message. When you configure GARP timers, follow these guidelines: • The settings of GARP timers apply - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 153
. • Set the LeaveAll timer greater than any Leave timer and not smaller than its default value, 1000 centiseconds. Each time a LeaveAll timer expires, a network-wide re-join in Figure 45, GARP PDUs are encapsulated in IEEE 802.3 Ethernet frames. Table 18 GARP PDU fields Field Protocol ID Message End - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 154
LAN maintain the same VLAN information. The VLAN information propagated by GVRP includes not only manually configured static VLAN information but also dynamic VLAN information from other switches. GVRP registration modes GVRP is available on trunk ports. It provides the following registration modes - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 155
Network Management and Monitoring Configuration Guide. • Enabling GVRP Configure the link type of the ports as trunk. port link-type trunk Remarks N/A Globally disabled by default. N/A Access by default. For more information about the port link-type trunk command, see Layer 2-LAN Switching Command - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 156
information about the port trunk permit vlan all command, see Layer 2-LAN Switching Command Reference. Disabled by default. Optional. normal by default. Configuring the GARP timers Step 1. Enter system view. 2. Configure the GARP LeaveAll timer. Command system-view garp timer leaveall timer-value - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 157
LeaveAll timer smaller than its default value, 1000 centiseconds. Displaying and maintaining GVRP Task Command Remarks Display statistics about interface-list ] Available in user view GVRP configuration examples GVRP normal registration mode configuration example Network requirements As shown - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 158
vlan 3 [DeviceB-vlan3] quit 3. Verify the configuration: Use the display gvrp local-vlan command to display the local VLAN information that GVRP maintains gigabitethernet 1/0/1 Following VLANs exist in GVRP local database: 1(default),2-3 According to the output, information about VLAN 1, static - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 159
gigabitethernet 1/0/1 Following VLANs exist in GVRP local database: 1(default),2-3 According to the output, information about VLAN 1, static VLAN on Device A are all registered through GVRP. GVRP fixed registration mode configuration example Network requirements As shown in Figure 47: • Device A and - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 160
vlan 3 [DeviceB-vlan3] quit 3. Verify the configuration: Use the display gvrp local-vlan command to display the local VLAN information that GVRP maintains interface gigabitethernet 1/0/1 Following VLANs exist in GVRP local database: 1(default), 2 According to the output, information about VLAN 1 and - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 161
3 [DeviceB-vlan3] quit 3. Verify the configuration: Use the display gvrp local-vlan command to display the local VLAN information that GVRP interface gigabitethernet 1/0/1 Following VLANs exist in GVRP local database: 1(default) According to the output, information about VLAN 1 is registered - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 162
According to the output, information about VLAN 1 is registered through GVRP, but static VLAN information of VLAN 3 on the local device and dynamic VLAN information of VLAN 2 on Device A are not. 153 - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 163
that the Ethernet frames travel across the service provider network (public network) with double VLAN tags. QinQ enables a service provider to use a single SVLAN to serve customers who have multiple CVLANs. Background and benefits The IEEE 802.1Q VLAN tag uses 12 bits for VLAN IDs. A device supports - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 164
4. There is no overlap of VLAN IDs among customers, and traffic from different customers can be identified separately. The double-tagged Ethernet frame is then transmitted over the service provider network and arrives at the other PE. The PE removes the SVLAN of the frame before sending it to the - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 165
frame header and double-tagged Ethernet frame header On the other devices in the network, the interfaces may be configured with the MTU of 1500 bytes. The size of an outer VLAN tag is 4 bytes. HP recommends that you increase the MTU of each interface on the service provider network to at least - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 166
area networks: Virtual Bridged Local Area Networks QinQ configuration task list When you configure QinQ, follow these guidelines: • QinQ requires configurations only on the service provider network. • QinQ configurations made in Ethernet interface view take effect on the interface only. Those - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 167
Step 1. Enter system view. 2. Enter Layer 2 Ethernet interface view or Layer 2 aggregate interface view. 3. Enable basic QinQ. Command system-view interface interface-type interface-number qinq enable Remarks N/A N/A Disabled by default. Configuring VLAN transparent transmission When basic QinQ - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 168
Switch Series achieves the selective QinQ feature through QoS policies. For more information about QoS policies, see ACL and QoS Configuration Guide. To enable the switch policy to the port that connects to the user. To configure selective QinQ: Step Command 1. Enter system view. system-view 2. - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 169
view. quit 11. Enter Layer 2 Ethernet interface view. interface interface-type interface-number traffic class. Configuring an inner-outer VLAN 802.1p priority mapping Through QoS policies, the Switch Series achieves the default, the operator of a class is AND. Use either command. N/A N/A 160 - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 170
11. Enter Layer 2 Ethernet interface view. interface interface-type interface-number 12. Enable basic QinQ. qinq enable 13. Apply the QoS policy to the incoming traffic. qos apply policy policy-name inbound Remarks Use either command. N/A N/A N/A N/A N/A N/A N/A Configuring inner VLAN ID - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 171
view. 4. Configure the TPID in the service provider network VLAN tags. Command system-view qinq ethernet-type customer-tag hex-value interface interface-type interface-number qinq ethernet-type service-tag hex-value Remarks N/A Optional. 0x8100 by default. N/A Optional. 0x8100 by default. 162 - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 172
SVLAN 200. Figure 52 Network diagram Configuration procedure IMPORTANT: Make sure that you have configured the switches in the service provider network to allow QinQ packets to pass through. 1. Configure PE 1: { Configure GigabitEthernet 1/0/1: # Configure GigabitEthernet 1/0/1 as a trunk port and - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 173
value in the outer VLAN tag to 0x8200 on the port. [PE1-GigabitEthernet1/0/2] qinq ethernet-type service-tag 8200 [PE1-GigabitEthernet1/0/2] quit { Configure GigabitEthernet 1/0/3: # Configure GigabitEthernet 1/0/3 as a trunk port and assign it to VLAN 200. [PE1] interface gigabitethernet 1/0/3 [PE1 - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 174
50 to be transmitted between the branches of the company via the service provider network with no outer VLAN tags added. Figure 53 Network diagram Configuration procedure IMPORTANT: Make sure that you have configured the switches in the service provider network to allow QinQ packets to pass through - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 175
value in the outer VLAN tag to 0x8200 on the port. [PE1-GigabitEthernet1/0/2] qinq ethernet-type service-tag 8200 [PE1-GigabitEthernet1/0/2] quit 2. Configure PE 2: { Configure GigabitEthernet 1/0/1: # Configure GigabitEthernet 1/0/1 as a trunk port and assign it to VLANs 10 through 50. system - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 176
SVLAN 200. Figure 54 Network diagram Configuration procedure IMPORTANT: Make sure that you have configured the switches in the service provider network to allow QinQ packets to pass through. 1. Configure PE 1: { Configure GigabitEthernet 1/0/1: # Configure GigabitEthernet 1/0/1 as a hybrid port to - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 177
200 # Set the TPID in the outer VLAN tags to 0x8200. [PE1-GigabitEthernet1/0/2] qinq ethernet-type service-tag 8200 [PE1-GigabitEthernet1/0/2] quit 2. Configure PE 2: { Configure GigabitEthernet 1/0/1: # Configure GigabitEthernet 1/0/1 as a hybrid port to permit frames of VLAN 100 and VLAN 200 to - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 178
100 200 # Set the TPID in the outer VLAN tags to 0x8200. [PE2-GigabitEthernet1/0/2] qinq ethernet-type service-tag 8200 [PE2-GigabitEthernet1/0/2] quit 3. On the third-party devices between PE 1 and PE 2, configure the port that connects to PE 1 and that connecting to PE 2 to allow tagged frames of - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 179
configured the switches in the service provider network to allow QinQ packets to pass through. 1. Configure PE 1: { Configure GigabitEthernet 1/0/1: # Configure vlan-id 100 [PE1-behavior-P100] quit # Create class A20 and configure the class to match frames with CVLAN 20. Create traffic behavior P200 - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 180
. [PE1] traffic classifier A100 [PE1-classifier-A100] if-match customer-vlan-id 10 [PE1-classifier-A100] if-match service-vlan-id 100 [PE1-classifier-A100] quit # Configure traffic behavior T100 to mark matching packets with CVLAN 30. [PE1] traffic behavior T100 [PE1-behavior-T100] remark customer - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 181
# Set the TPID value in the outer tag to 0x8200. [PE1-GigabitEthernet1/0/2] qinq ethernet-type service-tag 8200 [PE1-GigabitEthernet1/0/2] quit 2. Configure PE 2: { Configure GigabitEthernet 1/0/1: # Configure GigabitEthernet 1/0/1 as a hybrid port to permit frames of VLAN 100 and VLAN 200 to pass - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 182
outbound # Set the TPID value in the outer tag to 0x8200. [PE2-GigabitEthernet1/0/2] qinq ethernet-type service-tag 8200 [PE2-GigabitEthernet1/0/2] quit 3. On the third-party devices between PE 1 and PE 2, configure the port that connects to PE 1 and that connecting to PE 2 to allow tagged frames - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 183
Configuring VLAN mapping Overview VLAN mapping re-marks VLAN tagged traffic with new VLAN IDs. HP provides the following types tag. One-to-two VLAN mapping expands the VLAN tag space, and enables a service provider and its customers to assign VLANs independently without the risk of VLAN assignment - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 184
one-to-one VLAN mapping To further sub-classify each type of traffic by customer, perform one-to-one VLAN mapping on the wiring-closet switches, and assign a separate VLAN for each type of traffic from each customer. Application scenario of one-to-two and two-to-two VLAN mapping Figure - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 185
VLAN tag and forwards the packet to VLAN 3. You can use QinQ to implement one-to-two VLAN mapping. For more information about QinQ, see "Configuring QinQ." Concepts and terms Figure 58 shows a simplified network to help explain the concepts and terms that you might encounter when you work with VLAN - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 186
traffic across the service provider network. For more information about QoS policies, see ACL and QoS Configuration Guide. VLAN mapping to its corresponding CVLAN ID. When forwarding a packet out of the port, the switch replaces its SVLAN ID with the matching CVLAN ID. Figure 59 One-to-one VLAN - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 187
. VLAN mapping configuration tasks Use the VLAN mapping methods as appropriate to the roles of your switches in the network, as described in this table: Task Configuring one-to-one VLAN mapping Configuring one-to-two VLAN mapping Switch role Wiring-closet switch Edge switch connecting users to SP - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 188
switches (see Figure 56) to isolate traffic by both user and traffic type. Perform these tasks to configure one-to-one VLAN mapping: Task Description Configuring behavior-name 6. Configure an SVLAN marking action. remark service-vlan-id vlan-id Repeat these steps to configure one behavior for - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 189
the port as a trunk port: port link-type trunk • Configure the port as a hybrid port: port link-type hybrid Use one of the commands. The default link type of an Ethernet port is access. • Assign the trunk port to VLANs: Use one of the commands. port trunk permit vlan { vlan-list | all } By - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 190
as a trunk port: port link-type trunk • Configure the port as a hybrid port: port link-type hybrid Remarks N/A N/A Use one of the commands. The default link type of an Ethernet port is access. • Assign the trunk port to VLANs: Use one of the commands. port trunk permit vlan { vlan-list | all - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 191
for other CVLANs. Configuring the customer-side port Step Command Remarks 1. Enter system view. system-view N/A 2. Enter Layer 2 Ethernet interface view. interface interface-type interface-number N/A 3. Configure the port as a hybrid port. port link-type hybrid The default link type of - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 192
vlan vlan-list tagged Remarks N/A Use one of the commands. The default link type of an Ethernet port is access. Use one of the commands. By default: • A trunk port is assigned only to VLAN 1. • A hybrid port is an untagged member of VLAN 1. Configuring two-to-two VLAN mapping Perform two-to-two - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 193
the SVLAN ID of incoming traffic. To configure an uplink policy for the customer-side port: Step Command 1. Enter system view. system-view 2. traffic behavior behavior-name view. 7. Configure an SVLAN marking action to replace the foreign SVLAN ID with remark service-vlan-id vlan-id a local - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 194
foreign SVLAN and CVLAN pairs. To configure a downlink policy for the customer-side port: Step Command 1. Enter system view. system-view vlan-id ID with a foreign CVLAN ID. 8. Configure an SVLAN marking action to replace the local SVLAN remark service-vlan-id vlan-id ID with a foreign SVLAN - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 195
as a trunk port: port link-type trunk • Configure the port as a hybrid port: port link-type hybrid Remarks N/A N/A Use one of the commands. The default link type of an Ethernet port is access. • Assign the trunk port to VLANs: Use one of the commands. port trunk permit vlan { vlan-list | all - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 196
Remarks Use one of the commands. The default link type of an Ethernet port is access. Use one of the commands. By default: • A trunk port is assigned only to VLAN 1. • A hybrid port is an untagged member of VLAN 1. Optional. Skip this step if you have not configure an uplink policy to replace - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 197
diagram Configuration procedure 1. Configure Switch A: # Create the CVLANs and the SVLANs. system-view [SwitchA] vlan 2 to 3 [SwitchA] vlan 101 to 102 [SwitchA] vlan 201 to 202 [SwitchA] vlan 301 to 302 # Configure uplink policies p1 and p2 to enable one SVLAN to transmit one service for - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 198
[SwitchA-policy-p2] classifier c3 behavior b6 [SwitchA-policy-p2] quit # Configure downlink policies p11 and p22 to map the SVLANs back to the CVLANs. [ -c55] if-match service-vlan-id 202 [SwitchA-classifier-c55] traffic classifier c66 [SwitchA-classifier-c66] if-match service-vlan-id 302 [SwitchA - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 199
procedure as on Switch A. One-to-two and two-to-two VLAN mapping configuration example Network requirements As shown in Figure 63, two VPN A branches, Site 1 and Site 2, are in VLAN 10 and VLAN 30, respectively. The two site use different VPN access services of different service providers, SP 1 and - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 200
GE1/0/1 VLAN 10, 100 SP 1 SP 2 GE1/0/2 VLAN 30, 200 VLAN 10 VLAN 30 CE a1 VPN A Site 1 VPN A Site 2 CE a2 Configuration procedure 1. Configure PE 1: # Configure an uplink policy test to add outer VLAN tag 100 to VLAN 10 tagged traffic. system-view [PE1] traffic classifier test [PE1 - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 201
vlan-id 10 [PE3-behavior-down_downlink] remark service-vlan-id 100 [PE3-behavior-down_downlink] quit [PE3] qos policy down_downlink [PE3-qospolicy-down_downlink] classifier down_downlink behavior down_downlink [PE3-qospolicy-down_downlink] quit # Configure an uplink policy up_uplink for network-side - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 202
-type trunk [PE3-GigabitEthernet1/0/2] port trunk permit vlan 200 [PE3-GigabitEthernet1/0/2] qos apply policy up_uplink outbound [PE3-GigabitEthernet1/0/2] quit 4. Configure PE 4: # Configure an uplink policy test to add outer VLAN tag 200 to VLAN 30 tagged traffic. system-view [PE4] traffic - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 203
about MIBs, see Network Management and Monitoring Configuration Guide. LLDP enables a network management system to Ethernet II or Subnetwork Access Protocol (SNAP) frames. 1. Ethernet II-encapsulated LLDPDU format Figure 64 Ethernet II-encapsulated LLDPDU format Table 21 Fields in an Ethernet - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 204
have a MAC address, the MAC address of the sending bridge is used. Ethernet type for the upper layer protocol. It is 0x88CC for LLDP. LLDPDU. Frame 32-bit CRC value used to determine the validity of the received Ethernet frame. LLDPDUs LLDP uses LLDPDUs to exchange information. An LLDPDU comprises - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 205
VLAN ID VLAN Name Description Specifies the port's VLAN identifier (PVID). An LLDPDU carries only one TLV of this type. Indicates whether the device supports protocol VLANs and, if so, what VLAN IDs these protocols will be associated with. An LLDPDU can carry multiple different TLVs of this type - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 206
can carry multiple different TLVs of this type. NOTE: HP devices support only receiving protocol identity TLVs. 3. IEEE 802.3 organizationally specific TLVs Table 25 IEEE 802.3 organizationally specific TLVs Type MAC/PHY Configuration/Status Power Via MDI Link Aggregation Maximum Frame Size Power - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 207
hardware version. Allows a terminal device to advertise its firmware version. Allows a terminal device to advertise its software protocol state machine re-initializes. A re-initialization delay, which is user configurable, prevents LLDP from being initialized too frequently at times of frequent - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 208
Optional Performing basic LLDP configuration Enabling LLDP To make LLDP take effect on specific ports, you must enable LLDP both globally and on these ports. To enable LLDP: Step 1. Enter system view. 2. Enable LLDP globally. 3. Enter Layer 2 Ethernet interface view Command system-view lldp - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 209
the LLDP re-initialization delay. Command system-view lldp timer reinit-delay delay Remarks N/A Optional. 2 seconds by default. Enabling LLDP polling With LLDP polling enabled, a device periodically searches for local configuration changes. On detecting a configuration change, the device sends - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 210
Remarks N/A Disabled by default. Configuring the advertisable TLVs To configure the advertisable LLDPDU TLVs on the specified port or ports: Step 1. Enter system view. 2. Enter Layer 2 Ethernet interface view. 3. Configure the advertisable TLVs. Command system-view Remarks N/A interface - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 211
an IP address, no management address will be advertised. Optional. By default, the management address is encapsulated in the numeric format. Setting other LLDP interval. Configuration procedure To change the TTL multiplier: Step 1. Enter system view. 2. Set the TTL multiplier. Command system-view - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 212
is triggered. Command lldp fast-count count Remarks Optional. 3 by default. Setting an encapsulation format for LLDPDUs LLDPDUs can be encapsulated in the following formats: Ethernet II or SNAP frames. • With Ethernet II encapsulation configured, an LLDP port sends LLDPDUs in Ethernet II frames - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 213
Layer 2 Ethernet interface view. 4. Configure CDP-compatible LLDP to operate in TxRx mode. Command system-view lldp compliance cdp interface interface-type interface-number lldp compliance admin-status cdp txrx Remarks N/A Disabled by default. N/A Disable mode by default. Configuring LLDP to - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 214
system view. 2. Enter Layer 2 Ethernet interface view. Command system-view interface interface-type interface-number 3. Configure LLDP to advertise a specific voice VLAN. lldp voice-vlan vlan-id Remarks N/A N/A By default, LLDP advertises the voice VLAN configured on the port. Dynamically - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 215
, set a trap transmit interval for LLDP. To configure LLDP trapping: Step 1. Enter system view. 2. Enter Layer 2 Ethernet interface view. 3. Enable LLDP trapping. 4. Return to system view. 5. Set the LLDP trap transmit interval. Command system-view Remarks N/A interface interface-type interface - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 216
Basic LLDP configuration example Network requirements As shown in Figure 68, the NMS and Switch A are located in the same Ethernet. An MED device and Switch B are connected to GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 of Switch A. Enable LLDP on the ports of Switch A and Switch B to monitor - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 217
3. Verify the configuration: # Display the global LLDP status and port LLDP status on Switch A. [SwitchA] display lldp status Global status of LLDP: Enable The current number of LLDP neighbors: 2 The current number of CDP neighbors: 0 LLDP neighbor information last - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 218
to a Cisco IP phone. The two IP phones send out tagged voice traffic. Configure voice VLAN 2 on Switch A. Enable CDP compatibility of LLDP on Switch A to allow the Cisco IP phones to automatically configure the voice VLAN, confining their voice traffic within the voice VLAN and isolating the voice - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 219
LLDP on Switch A: # Enable LLDP globally and enable LLDP to be compatible with CDP globally. [SwitchA] lldp enable [SwitchA] lldp compliance cdp # Enable LLDP (you can skip this step because LLDP is enabled on ports by default.), configure LLDP to operate in TxRx mode, and configure CDP-compatible - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 220
Port ID : Port 1 Sofrware version : P0030301MFG2 Platform : Cisco IP Phone 7960 Duplex : Full As the sample output shows, Switch A has discovered the IP phones connected to GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2, and has obtained their LLDP device information. 211 - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 221
the service loopback group is: • Tunnel-Supports unicast tunnel traffic. Requirements on service loopback ports Before you assign a port to a service loopback group, ensure the following: • The port supports the services type or types of the service loopback group. • The port is not configured with - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 222
group that other features reference. Configuration procedure Step 1. Enter system view. 2. Create a service loopback group and specify its service type. Command system-view service-loopback group number type tunnel 3. Enter Layer 2 Ethernet interface interface-type interface view. interface - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 223
Step 4. Assign the Ethernet interface to the specified service loopback group. Command port service-loopback group number Remarks By default, a port does not belong to any service loopback group. You can configure this command on different ports to assign multiple ports to a service loopback group - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 224
/0/3] undo lldp enable [DeviceA-GigabitEthernet1/0/3] undo ndp enable [DeviceA-GigabitEthernet1/0/3] port service-loopback group 1 [DeviceA-GigabitEthernet1/0/3] quit # Create logical interface Tunnel 1 and reference service loopback group 1 on Tunnel 1. [DeviceA] interface tunnel 1 [DeviceA-Tunnel1 - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 225
Layer 2 forwarding Configuring cut-through forwarding A cut-through forwarding-enabled device forwards a CRC) checks, and thus CRC-error frames will not be forwarded. To configure cut-through forwarding: Step Command 1. Enter system view. system-view 2. Enable forwarding. cut-through cut - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 226
HP A-Series Acronyms. Websites • HP.com http://www.hp.com • HP Networking http://www.hp.com/go/networking • HP manuals http://www.hp.com/support/manuals • HP download drivers and software http://www.hp.com/support/downloads • HP software depot http://www.software.hp.com • HP Education http://www.hp - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 227
Command conventions Convention Boldface Italic [ ] { x | y | ... } [ x | y | ... ] { x | y | ... } * [ x | y | ... ] * & # Description Bold text represents commands and menu items are in bold text. For example, the New User window appears; click OK. Multi-level menus are separated by angle - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 228
, or firewall. Represents a routing-capable device, such as a router or Layer 3 switch. Represents a generic switch, such as a Layer 2 or Layer 3 switch, or a router that supports Layer 2 forwarding and other Layer 2 features. Port numbering in examples The port numbers in this document are for - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 229
,95 Configuring Digest Snooping,79 Configuring edge ports,72 Configuring flow control on an Ethernet interface,4 Configuring GVRP functions,146 Configuring IP subnet-based VLANs,121 Configuring jumbo frame support,7 Configuring link change suppression on an Ethernet interface,5 Configuring LLDP - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 230
VLAN),131 Overview(Configuring VLANs),99 Overview(Configuring a service loopback group),212 Overview(Configuring an isolate-user-VLAN),125 Overview(Configuring LLDP),194 Overview(Configuring the MAC address table),19 Overview(Configuring Ethernet link aggregation),29 Overview(Configuring QinQ),154 - HP 6125G | HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 231
statistics polling interval,8 Shutting down an Ethernet interface,3 Spanning tree configuration task list,62 STP,50 T Testing the cable connection of an Ethernet interface,11 V VLAN mapping configuration examples,187 VLAN mapping configuration tasks,178 Voice VLAN configuration examples,138 222
HP 6125 Blade Switch Series
Layer 2 - LAN Switching
Configuration Guide
Part number:5998-3155
Software version: Release 2103
Document version: 6W100-20120907