HP FlexFabric 7900 Switch Series High Availability Command Reference Part number: 5998-4297 Software version: Release 2109 Document version: 6W100-20140122
Legal and notice information © Copyright 2014 Hewlett-Packard Development Company, L.P. No part of this documentation may be reproduced or transmitted in any form or by any means without prior written consent of Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Contents VRRP commands ··························································································································································· 1 IPv4 VRRP commands ······················································································································································· 1 display vrrp ·················································································································································
Index ··········································································································································································· 40 ii
VRRP commands The term "interface" in this chapter refers to Layer 3 Ethernet interfaces, and VLAN interfaces. You can configure an Ethernet port as a Layer 3 interface by using the port link-mode route command (see Layer 2—LAN Switching Configuration Guide). IPv4 VRRP commands display vrrp Use display vrrp to display the states of IPv4 VRRP groups.
Vlan2 1 Master 150 100 Simple 1.1.1.1 Table 1 Command output (in standard mode) Field Description Running Mode VRRP operating mode (standard mode). Total number of virtual routers Total number of VRRP groups. Interface Interface where the VRRP group is configured. VRID Virtual router ID (VRRP group number). Status of the router in the VRRP group: • • • • State Master. Backup. Initialize. Inactive. Current priority of the router.
Become Master : 2370ms left Auth Type : None Virtual IP : 1.1.1.11 Master IP : 1.1.1.12 Table 2 Command output (in standard mode) Field Description Running Mode VRRP operating mode (standard mode). Total number of virtual routers Total number of VRRP groups. Interface Interface where the VRRP group is configured. VRID Virtual router ID (VRRP group number). Adver Timer VRRP advertisement sending interval in centiseconds. Admin Status Administrative status: up or down.
Field Description Track entry state: State • Negative. • Positive. • NotReady. Pri Reduced Value by which the priority decreases when the status of the associated track entry becomes negative. Switchover Switchover mode. When the status of the associated track entry becomes negative, the backup immediately becomes the master. display vrrp statistics Use display vrrp statistics to display statistics for IPv4 VRRP groups.
Adver Rcvd : 0 Priority Zero Pkts Rcvd : 0 Adver Sent : 807 Priority Zero Pkts Sent : 0 Global statistics CheckSum Errors : 0 Version Errors : 0 VRID Errors : 0 Table 3 Command output (in standard mode) Field Description Interface Interface where the VRRP group is configured. VRID VRRP group number. CheckSum Errors Number of packets with checksum errors. Version Errors Number of packets with version errors. Invalid Pkts Rcvd Number of received packets of invalid packet types.
Syntax reset vrrp statistics [ interface interface-type interface-number [ vrid virtual-router-id ] ] Views User view Predefined user roles network-admin Parameters interface interface-type interface-number: Specifies an interface by its type and number. vrid virtual-router-id: Specifies an IPv4 VRRP group by its virtual router ID in the range of 1 to 7. Usage guidelines • If no interface or VRRP group is specified, this command clears statistics for all IPv4 VRRP groups.
Usage guidelines When the notification function is enabled, the device can send notifications to the destination host. To specify the notification type (inform or trap) and target host, use the snmp-agent target-host command. Examples # Generate notifications as defined in RFC 2787 when the device in a VRRP group receives a VRRP advertisement with the authentication type or key not matching the local configuration.
Syntax vrrp dscp dscp-value undo vrrp dscp Views System view Predefined user roles network-admin Parameters dscp-value: Specifies a DSCP value for VRRP packets, in the range of 0 to 63. The default is 48. Usage guidelines The DSCP value identifies the packet priority during transmission. A greater DSCP value means a higher packet priority. Examples # Configure the DSCP value for VRRP packets as 30.
[Sysname-Vlan-interface10] vrrp version 2 vrrp vrid authentication-mode Use vrrp vrid authentication-mode to configure the authentication mode and the authentication key for an IPv4 VRRP group to send and receive VRRP packets. Use undo vrrp vrid authentication-mode to restore the default.
IMPORTANT: • You can configure different authentication modes and authentication keys for the VRRP groups on an interface. However, members of the same VRRP group must use the same authentication mode and authentication key. • For VRRPv3, this command does not take effect. Examples # Set the authentication mode to simple and the authentication key to Sysname for VRRP group 1 on VLAN-interface 2.
In preemptive mode, a backup takes over as the master and sends VRRP advertisements when it detects that it has a higher priority than the master. The previous master then becomes a backup. This mechanism makes sure the master is always the device with the highest priority.
system-view [Sysname] interface vlan-interface 2 [Sysname-Vlan-interface2] vrrp vrid 1 priority 150 Related commands • display vrrp • vrrp vrid track vrrp vrid shutdown Use vrrp vrid shutdown to disable an IPv4 VRRP group. Use undo vrrp vrid shutdown to restore the default. Syntax vrrp vrid virtual-router-id shutdown undo vrrp vrid virtual-router-id shutdown Default An IPv4 VRRP group is enabled.
Default No source interface is specified for a VRRP group. The interface where the VRRP group resides sends and receives VRRP packets. Views Interface view Predefined user roles network-admin Parameters virtual-router-id: Specifies an IPv4 VRRP group by its virtual router ID in the range of 1 to 7. interface-type interface-number: Specifies an interface by its type and number.
range of 10 to 100, 101 to 200, and 4001 to 4095, the actual values are 100, 200, and 4100, respectively. For VRRPv3, the value of the adver-interval argument that you configured takes effect. Usage guidelines The master in an IPv4 VRRP group periodically sends VRRP advertisements to declare its presence. You can use this command to configure the interval at which the master sends VRRP advertisements.
Parameters virtual-router-id: Specifies an IPv4 VRRP group number in the range of 1 to 7. track-entry-number: Specifies a track entry. The track-entry-number argument is in the range of 1 to 1024. reduced priority-reduced: Reduces the priority of the router in the VRRP group by a specific value when the state of the specified track entry changes to negative. The priority-reduced argument is in the range of 1 to 255.
Default No IPv4 VRRP group is created. Views Interface view Predefined user roles network-admin Parameters virtual-router-id: Specifies an IPv4 VRRP group by its virtual router ID in the range of 1 to 7. virtual-ip virtual-address: Specifies a virtual IP address, which cannot be an all-zero address (0.0.0.0); a broadcast address (255.255.255.255); a loopback address; an IP address of other than Class A, Class B, and Class C; or an invalid IP address (for example, 0.0.0.1).
BFD commands The term "interface" in this chapter collectively refers to Layer 3 interfaces, including VLAN interfaces and Layer 3 Ethernet interfaces. You can set an Ethernet port as a Layer 3 interface by using the port link-mode route command (see Layer 2—LAN Switching Configuration Guide). bfd authentication-mode Use bfd authentication-mode to configure the BFD authentication mode for single-hop BFD control packets. Use undo bfd authentication-mode to restore the default.
bfd demand enable Use bfd demand enable to enable the Demand BFD session mode. Use undo bfd demand enable to restore the default. Syntax bfd demand enable undo bfd demand enable Default The BFD session is in Asynchronous mode. Views Interface view Predefined user roles network-admin Usage guidelines In demand mode, no BFD control packets are exchanged after the session is established.
Predefined user roles network-admin Parameters value: Specifies a single-hop detection time multiplier in the range of 3 to 50. Usage guidelines The detection time multiplier determines the maximum number of concurrent BFD packets (including control packets and echo packets) that can be discarded.
Examples # Enable the echo packet mode on VLAN-interface 11. system-view [Sysname] interface vlan-interface 11 [Sysname-Vlan-interface11] bfd echo enable bfd echo-source-ip Use bfd echo-source-ip to configure the source IP address of BFD echo packets. Use undo bfd echo-source-ip to remove the configured source IP address of BFD echo packets. Syntax bfd echo-source-ip ip-address undo bfd echo-source-ip Default No source IP address is configured for BFD echo packets.
Views Interface view Predefined user roles network-admin Parameters value: Specifies a minimum interval for receiving BFD echo packets, in milliseconds. The value takes 0 or is in the range of 10 to 1000. Usage guidelines This command sets the BFD echo packet receiving interval, which is the actual BFD echo packet sending interval. Examples # Configure the minimum interval for receiving BFD echo packets on VLAN-interface 11 as 500 milliseconds.
Examples # Configure the minimum interval for receiving single-hop BFD control packets on VLAN-interface 11 as 500 milliseconds. system-view [Sysname] interface vlan-interface 11 [Sysname-Vlan-interface11] bfd min-receive-interval 500 bfd min-transmit-interval Use bfd min-transmit-interval to configure the minimum interval for transmitting single-hop BFD control packets. Use undo bfd min-transmit-interval to restore the default.
Syntax bfd multi-hop authentication-mode simple key-id { cipher cipher-string | plain plain-string } undo bfd multi-hop authentication-mode Default No authentication is performed. Views System view Predefined user roles network-admin Parameters simple: Specifies the simple authentication mode. key-id: Sets the authentication key ID in the range of 1 to 255. cipher: Sets a ciphertext password. cipher-string: Sets the ciphertext password, which is a case-sensitive string of 33 to 53 characters.
Predefined user roles network-admin Parameters port-number: Specifies the destination port number of multi-hop BFD control packets, 3784 or 4784. Examples # Configure the destination port number for multi-hop BFD control packets as 3784. system-view [Sysname] bfd multi-hop destination-port 3784 bfd multi-hop detect-multiplier Use bfd multi-hop detect-multiplier to configure the multi-hop detection time multiplier. Use undo bfd multi-hop detect-multiplier to restore the default.
bfd multi-hop min-receive-interval Use bfd multi-hop min-receive-interval to configure the minimum interval for receiving multi-hop BFD control packets. Use undo bfd multi-hop min-receive-interval to restore the default. Syntax bfd multi-hop min-receive-interval value undo bfd multi-hop min-receive-interval Default The minimum interval for receiving multi-hop BFD control packets is 400 milliseconds.
Predefined user roles network-admin Parameters value: Specifies the minimum interval for transmitting multi-hop BFD control packets, in milliseconds. The value range for this argument is 10 to 1000. Usage guidelines Use this command to make sure that the BFD packet sending rate does not exceed the device capability.
display bfd session Use display bfd session to display BFD session information. Syntax display bfd session [ discriminator value | verbose ] Views Any view Predefined user roles network-admin network-operator Parameters discriminator value: Specifies a local ID in the range of 1 to 4294967295. If this option is not specified, the command displays brief information about all BFD sessions. verbose: Displays detailed BFD session information.
Table 6 Command output Field Description Total Session Num Total number of BFD sessions. Up Session Num Total number of active BFD sessions. Init Mode BFD operating mode, active or passive. BFD session mode: Session Working Under Ctrl Mode • Ctrl—Control packet mode. • Echo—Echo packet mode. Local Discr/LD Local ID of the session. Remote Discr/RD Remote ID of the session. Source IP/SourceAddr Source IP address of the session. Destination IP/DestAddr Destination IP address of the session.
Predefined user roles network-admin Examples # Clear the BFD session statistics.
Track commands display track Use display track to display track entry information. Syntax display track { track-entry-number | all } Views Any view Predefined user roles network-admin network-operator Parameters track-entry-number: Displays information about the specified track entry. The value range for the track-entry-number argument is 1 to 1024. all: Displays information about all track entries. Examples # Display information about all track entries.
Interface: Vlan-interface3 Protocol: IPv4 Table 7 Command output Field Description Track ID ID of a track entry. States of a track entry: State • Positive—The tracked object functions correctly. • NotReady—The tracked object is invalid. • Negative—The tracked object is abnormal. notify 13 seconds later The Track module notifies the application modules of the track entry state change 13 seconds later. The information is not displayed after the Track module notifies the application modules.
track bfd Use track bfd to create a track entry and associate it with a BFD session. Use undo track to remove the track entry. Syntax track track-entry-number bfd echo interface interface-type interface-number remote ip remote-ip local ip local-ip [ delay { negative negative-time | positive positive-time } * ] undo track track-entry-number Default No track entry exists.
Related commands display track track nqa Use track nqa to create a track entry and associate it with the specified reaction entry of the NQA test group. Use undo track to remove the track entry. Syntax track track-entry-number nqa entry admin-name operation-tag reaction item-number [ delay { negative negative-time | positive positive-time } * ] undo track track-entry-number Default No track entry exists.
[Sysname] track 1 nqa entry admin test reaction 3 Related commands display track track interface Use track interface to create a track entry and associate it with the link state of a specific interface. Use undo track to remove the track entry. Syntax track track-entry-number interface interface-type interface-number [ delay { negative negative-time | positive positive-time } * ] undo track track-entry-number Default No track entry exists.
Related commands • display track • display ip interface brief (Layer 3—IP Services Command Reference) track interface protocol Use track interface protocol to create a track entry and associate it with the protocol state of a specific interface. Use undo track to remove the track entry. Syntax track track-entry-number interface interface-type interface-number protocol ipv4 [ delay { negative negative-time | positive positive-time } * ] undo track track-entry-number Default No track entry exists.
[Sysname] track 1 interface vlan-interface 2 protocol ipv4 Related commands • display track • display ip interface brief (Layer 3—IP Services Command Reference) 36
Support and other resources Contacting HP For worldwide technical support information, see the HP support website: http://www.hp.
Conventions This section describes the conventions used in this documentation set. Command conventions Convention Description Boldface Bold text represents commands and keywords that you enter literally as shown. Italic Italic text represents arguments that you replace with actual values. [] Square brackets enclose syntax choices (keywords or arguments) that are optional. { x | y | ... } Braces enclose a set of required syntax choices separated by vertical bars, from which you select one.
Network topology icons Represents a generic network device, such as a router, switch, 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. Represents an access controller, a unified wired-WLAN module, or the switching engine on a unified wired-WLAN switch. Represents an access point.
Index BDRSTVW B S bfd authentication-mode,17 snmp-agent trap enable vrrp,6 bfd demand enable,18 Subscription service,37 bfd detect-multiplier,18 T bfd echo enable,19 track bfd,32 bfd echo-source-ip,20 track interface,34 bfd min-echo-receive-interval,20 track interface protocol,35 bfd min-receive-interval,21 track nqa,33 bfd min-transmit-interval,22 bfd multi-hop authentication-mode,22 V bfd multi-hop destination-port,23 vrrp check-ttl enable,7 bfd multi-hop detect-multiplier,24 vrrp dsc