HP 5500 Ei 5500 Si Switch Series Configuration Guide
Have a look at the manual HP 5500 Ei 5500 Si Switch Series Configuration Guide online for free. It’s possible to download the document as PDF or print. UserManuals.tech offer 1114 HP manuals and user’s guides for free. Share the user manual or guide on Facebook, Twitter or Google+.
220 [PE3-GigabitEthernet1/0/1] quit # Set network-side port GigabitEthernet 1/0/2 as a trunk port, assign it to VLAN 200, and apply uplink policy up_uplink to the outgoing traffic on the port. [PE3] interface gigabitethernet 1/0/2 [PE3-GigabitEthernet1/0/2] port link-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 QinQ function on GigabitEthernet 1/0/2 to add outer VLAN tag 200 to the traffic tagged with VLAN 30. system-view [DeviceD] interface gigabitethernet 1/0/2 [DeviceD-GigabitEthernet1/0/2] port access vlan 200 [DeviceD-GigabitEthernet1/0/2] qinq enable # Configure GigabitEthernet 1/0/1 to permit frames of VLAN 200 to pass through. [DeviceD] interface gigabitethernet 1/0/1 [DeviceD-GigabitEthernet1/0/1] port link-type trunk [DeviceD-GigabitEthernet1/0/1] port trunk permit vlan 200
221 Configuring LLDP Overview Background In a heterogeneous network, a standard configuration exchange platform ensures that different types of network devices from different vendors can discover one another and exchange configuration for the sake of interoperability and management. The IETF drafted the Link Layer Discovery Protocol (LLDP) in IEEE 802.1AB. The protocol operates on the data link layer to exchange device information between directly connected devices. With LLDP, a device sends local device information (including its major functions, management IP address, device ID, and port ID) as TLV (type, length, and value) triplets in LLDP Data Units (LLDPDUs) to the directly connected devices. At the same time, the device stores the device information received in LLDPDUs sent from the LLDP neighbors in a standard management informatio n base (MIB). For more information about MIBs, see Network Management and Monitoring Configuration Guide . LLDP enables a network management system to quickly detect and identify Layer 2 network topology changes. Basic concepts LLDPDU formats LLDP sends device information in LLDPDUs. LLDPDUs are encapsulated in Ethernet II or Subnetwork Access Protocol (SNAP) frames. 1. Ethernet II-encapsulated LLDPDU format Figure 72 Ethernet II-encapsulated LLDPDU format Table 22 Fields in an Ethernet II-encapsulated LLDPDU Field Descri ption Destination MAC address MAC address to which the LLDPDU is advertised. It is fixed to 0x0180-C200-000E, a multicast MAC address. Data = LLDPU (1500 bytes) 0 Destination MAC address Source MAC address Type 15 31 FCS
222 Field Description Source MAC address MAC address of the sending port. If the port does not have a MAC address, the MAC address of the sending bridge is used. Type Ethernet type for the upper layer protocol. It is 0x88CC for LLDP. Data LLDPDU. FCS Frame check sequence, a 32-bit CRC valu e used to determine the validity of the received Ethernet frame. 2. SNAP-encapsulated LLDPDU format Figure 73 SNAP-encapsulated LLDPDU format Table 23 Fields in a SNAP-encapsulated LLDPDU Field Descri ption Destination MAC address MAC address to which the LLDPDU is advertised. It is fixed at 0x0180-C200-000E, a multicast MAC address. Source MAC address MAC address of the sending port. Type SNAP type for the upper layer pr otocol. It is 0xAAAA-0300-0000-88CC for LLDP. Data LLDPDU. FCS Frame check sequence, a 32-bit CRC valu e used to determine the validity of the received Ethernet frame. LLDPDUs LLDP uses LLDPDUs to exchange information. An LLDPDU comprises multiple TLV sequences. Each TLV carries a type of device information, as shown in Figure 74. Figure 74 LLDPDU enca psulation format An LLDPDU can carry up to 28 types of TLVs. Mandatory TLVs include Chassis ID TLV, Port ID TLV, Time To Live TLV, and End of LLDPDU TLV. Other TLVs are optional.
223 TLVs TLVs are type, length, and value sequences that carry information elements. The type field identifies the type of information, the length field measures the le ngth of the information field in octets, and the value field contains the information itself. LLDPDU TLVs fall into the following categories: • Basic management TLVs • Organizationally (IEEE 802.1 and IEEE 802.3) specific TLVs • LLDP-MED (media endpoint discovery) TLVs Basic management TLVs are essential to device management. Organizationally specific TLVs and LLDP-MED TLVs are used for enhanced device management; they are defined by standardization or other organizations and are optional to LLDPDUs. 1. Basic management TLVs Table 24 list s the basic management TLV types. Some of them are mandatory to LLDPDUs, that is, must be included in every LLDPDU. Table 24 Basic management TLVs T ype Description Remarks Chassis ID Specifies the bridge MAC address of the sending device Mandatory Port ID Specifies the ID of the sending port If the LLDPDU carries LLDP-MED TLVs , the port ID TLV carries the MAC address of the sending port or the bridge MAC if the port does not have a MAC address. If the LLDPDU carries no LLDP-MED TLVs, the port ID TLV carries the port name. Time To Live Specifies the life of the transmitted information on the receiving device End of LLDPDU Marks the end of the TLV sequence in the LLDPDU Port Description Specifies the port description of the sending port Optional System Name Specifies the assigned name of the sending device System Description Specifies the description of the sending device System Capabilities Identifies the primary functions of the sending device and the enabled primary functions Management Address Specifies the management address, and the interface number and object identifier (OID) associated with the address 2. IEEE 802.1 organizationally specific TLVs Table 25 IEEE 802.1 organizationally specific TLVs T ype Description Port VLAN ID Specifies the port’s VLAN identifier (P VID). An LLDPDU carries only one TLV of this type. Port And Protocol VLAN ID Indicates whether the device supports pr otocol VLANs and, if so, what VLAN IDs these protocols will be associated with. An LLDPDU can carry multiple different TLVs of this type.
224 Type Description VLAN Name Specifies the textual name of any VLAN to which the port belongs. An LLDPDU can carry multiple different TLVs of this type. Protocol Identity Indicates protocols supported on the port. An LLDPDU can carry multiple different TLVs of this type. NOTE: • HP devices support only receiving protocol identity TLVs. • Layer 3 Ethernet ports do not support IEEE 802.1 organizationally specific TLVs. 3. IEEE 802.3 organizationally specific TLVs Table 26 IEEE 802.3 organizationally specific TLVs T ype Description MAC/PHY Configuration/Status Contains the bit-rate and duplex capabi lities of the sending port, support for auto negotiation, enabling status of auto negotiation, and the current rate and duplex mode. Power Via MDI Contains the power supply capability of the port, including the Power over Ethernet (PoE) type, which can be Power Sourcing Equipment (PSE) or Powered Device (PD), PoE mode, whether PSE power supply is supported, whether PSE power supply is enabled, and whether the PoE mode is controllable. Link Aggregation Indicates the aggregation capability of the port (whether the link is capable of being aggregated), and the aggregatio n status (whether the link is in an aggregation). Maximum Frame Size Indicates the supported maximum fr ame size. It is now the maximum transmission unit (MTU) of the port. Power Stateful Control Indicates the power state control config ured on the sending port, including the power type of the PSE or PD, PoE sourcing and receiving priority, and PoE sourcing and receiving power. NOTE: The Power Stateful Control TLV is defined in IEEE P802.3at D1.0. The later versions no lon ger support this TLV. HP devices send this type of TLVs only after receiving them. LLDP-MED TLVs LLDP-MED TLVs provide multiple advanced applications for voice over IP (VoIP), such as basic configuration, network policy configuration, and address and directory management. LLDP-MED TLVs provide a cost-effective and easy-to-use solution for deploying voice devices in Ethernet. LLDP-MED TLVs are shown in Tabl e 27. Table 27 LLDP-MED TLVs T ype Description LLDP-MED Capabilities Allows a network device to advertise the LLDP-MED TLVs that it supports.
225 Type Description Network Policy A l l o w s a n e t w o r k d e v i c e o r t e r m i n a l d e v i c e t o a d v e r t i s e t h e V L A N I D o f the specific port, the VLAN type, an d the Layer 2 and Layer 3 priorities for specific applications. Extended Power-via-MDI Allows a network device or terminal device to advertise power supply capability. This TLV is an extension of the Power Via MDI TLV. Hardware Revision Allows a terminal device to advertise its hardware version. Firmware Revision Allows a terminal device to advertise its firmware version. Software Revision Allows a terminal device to advertise its software version. Serial Number Allows a terminal device to advertise its serial number. Manufacturer Name Allows a terminal device to advertise its vendor name. Model Name Allows a terminal device to advertise its model name. Asset ID Allows a terminal device to advertis e its asset ID. The typical case is that the user specifies the asset ID for the endpoint to facilitate directory management and asset tracking. Location Identification Allows a network device to advertise the appropriate location identifier information for a terminal device to use in the context of location-based applications. Management address The network management system uses the management address of a device to identify and manage the device for topology maintenance and netw ork management. The management address TLV encapsulates the management address. How LLDP works Operating modes of LLDP LLDP can operate in one of the following modes: • TxRx mode —A port in this mode sends and receives LLDPDUs. • Tx mode —A port in this mode only sends LLDPDUs. • Rx mode —A port in this mode only receives LLDPDUs. • Disable mode—A port in this mode does not send or receive LLDPDUs. Each time the LLDP operating mode of a port change s, its LLDP protocol state machine re-initializes. A re-initialization delay, which is user configurable, pr events LLDP from being initialized too frequently at times of frequent changes to the operating mode. With this delay configured, before a port can initialize LLDP, it must wait for the specified interval after the LLDP operating mode changes. Transmitting LLDPDUs An LLDP-enabled port operating in TxRx mode or Tx mode sends LLDPDUs to its directly connected devices both periodically and when the local configuration changes. To prevent LLDPDUs from overwhelming the network during times of frequent ch anges to local device information, an interval is introduced between two successive LLDPDUs. This interval is shortened to 1 second in either of the following cases:
226 • A new neighbor is discovered. A new LLDPDU is received and carries device information new to the local device. • The LLDP operating mode of the port changes from Disable or Rx to TxRx or Tx. This is the fast sending mechanism of LLDP. With this me chani s m, a spe ci fic nu mber of L L D PD Us are sent successively at 1-second inter vals, to help LLDP neighbors discover the local device as soon as possible. Then, the normal LLDPDU transmit interval resumes. Receiving LLDPDUs An LLDP-enabled port that is operating in TxRx mode or Rx mode checks the validity of TLVs carried in every received LLDPDU. If valid, the information is saved and an aging timer is set for it based on the time to live (TTL) value in the Time to Live TLV carried in the LLDPDU. If the TTL value is zero, the information ages out immediately. Protocols and standards • IEEE 802.1AB-2005, Station and Media Access Control Connectivity Discovery • ANSI/TIA-1057, Link Layer Discovery Protocol for Media Endpoint Devices LLDP configuration task list When you configure LLDP, follow these guidelines: • LLDP-related configurations made in Layer 2/Layer 3 Ethernet interface view take effect only on the current port, and those made in port group view take effect on all ports in the current port group. • Layer 3 interfaces refer to route-mode (or Layer 3) Ethernet ports. You can set an Ethernet port to operate in route mode by using the port link-mode route command (see Configuring Ethernet in terfaces ). • The 5500 SI Switches Series does not support Layer 3 Ethernet interfaces. Complete these tasks to configure LLDP: Task Remarks Performing basic LLDP configuration Enabling LLDP Required Setting the LLDP operating mode Optional Setting the LLDP re-initialization delay Optional Enabling LLDP polling Optional Configuring the advertisable TLVs Optional Configuring the management address and its encoding format Optional Setting other LLDP parameters Optional Setting an encapsulation format for LLDPDUs Optional Configuring CDP compatibility Optional Enabling LLDP to automatically discover IP phones Optional Configuring LLDP to advertise a specific voice VLAN Optional Dynamically advertising server-assigned VLANs through LLDP Optional Configuring LLDP trapping Optional
227 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 Command Remarks 1. Enter system view. system-view N/A 2. Enable LLDP globally. lldp enable By default, LLDP is globally enabled. 3. Enter Ethernet interface view or port group view. • Enter Layer 2/Layer 3 Ethernet interface view: interface interface-type interface-number • Enter port group view: port-group manual port-group-name Use either command. 4. Enable LLDP. lldp enable Optional. By default, LLDP is enabled on a port. Setting the LLDP operating mode LLDP can operate in one of the following modes. • TxRx mode —A port in this mode sends and receives LLDPDUs. • Tx mode —A port in this mode only sends LLDPDUs. • Rx mode —A port in this mode only receives LLDPDUs. • Disable mode—A port in this mode does not send or receive LLDPDUs. To set the LLDP operating mode: Step Command Remarks 1. Enter system view. system-view N/A 2. Enter Ethernet interface view or port group view. • Enter Layer 2/Layer 3 Ethernet interface view: interface interface-type interface-number • Enter port group view: port-group manual port-group-name Use either command. 3. Set the LLDP operating mode. lldp admin-status { disable | rx | tx | txrx } Optional. TxRx by default. Setting the LLDP re-initialization delay When LLDP operating mode changes on a port, the port initializes the protocol state machines after a certain delay. By adjusting the LLDP re-initialization delay, you can avoid frequent initializations caused by frequent changes to the LLDP operating mode on a port.
228 To set the LLDP re-initialization delay for ports: Step Command Remarks 1. Enter system view. system-view N/A 2. Set the LLDP re-initialization delay. lldp timer reinit-delay delay Optional. 2 seconds by default. Enabling LLDP polling With LLDP polling enabled, a device periodically sear ches for local configuration changes. On detecting a configuration change, the device sends LLDPDUs to inform neighboring devices of the change. To enable LLDP polling: Step Command Remarks 1. Enter system view. system-view N/A 2. Enter Ethernet interface view or port group view. • Enter Layer 2/Layer 3 Ethernet interface view: interface interface-type interface-number • Enter port group view: port-group manual port-group-name Use either command. 3. Enable LLDP polling and set the polling interval. lldp check-change-interval interval Disabled by default. Configuring the advertisable TLVs To configure the advertisable LLDPDU TLVs on the specified port or ports: Step Command Remarks 1. Enter system view. system-view N/A 2. Enter Ethernet interface view or port group view. • Enter Layer 2/Layer 3 Ethernet interface view: interface interface-type interface-number • Enter port group view: port-group manual port-group-name Use either command. 3. Configure the advertisable TLVs (Layer 2 Ethernet interface view or port group view). lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name } | dot1-tlv { all | port-vlan-id | protocol-vlan-id [ vlan-id ] | vlan-name [ vlan-id ] } | dot3-tlv { all | link-aggregation | mac-physic | max-frame-size | power } | med-tlv { all | capability | inventory | location-id { civic-address device-type country-code { ca-type ca-value }& | elin-address tel-number } | network-policy | power-over-ethernet } } Optional. By default, all types of LLDP TLVs except location identification TLVs are advertisable on a Layer 2 Ethernet port.
229 Step Command Remarks 4. Configure the advertisable TLVs (Layer 3 Ethernet interface view) . lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name } | dot3-tlv { all | link-aggregation | mac-physic | max-frame-size | power } | med-tlv { all | capability | inventory | location-id { civic-address device-type country-code { ca-type ca-value }& | elin-address tel-number } | power-over-ethernet } } Optional. By default, all types of LLDP TLVs, except IEEE 802.1 organizationally specific TLVs, network policy TLVs, and location identification TLVs, are advertisable on a Layer 3 Ethernet port. Configuring the management address and its encoding format LLDP encodes management addresses in numeric or character string format in management address TLVs. By default, management addresses are encoded in numeric format. If a neighbor encoded its management address in character string format, yo u must configure the encoding format of the management address as string on the connecting po rt to guarantee normal communication with the neighbor. To configure a management address to be advertised and its encoding format on a port or group of ports: Step Command Remarks 1. Enter system view. system-view N/A 2. Enter Ethernet interface view or port group view. • Enter Layer 2/Layer 3 Ethernet interface view: interface interface-type interface-number • Enter port group view: port-group manual port-group-name Use either command. 3. Allow LLDP to advertise the management address in LLDPDUs and configure the advertised management address. lldp management-address-tlv [ ip-address ] Optional. By default, the management address is sent through LLDPDUs. • For a Layer 2 Ethernet port, the management address is the main IP address of the lowest-ID VLAN carried on the port. If none of the carried VLANs is assigned an IP address, no management address will be advertised. • For a Layer 3 Ethernet port, the management address is its own IP address. If no IP address is configured for the Layer 3 Ethernet port, no management address will be advertised.