Vous êtes sur la page 1sur 32

HP A5500 EI & A5500 SI Switch Series IRF Command Reference

Abstract This document describes the commands and command syntax options available for the HP A Series products. This document is intended for network planners, field technical support and servicing engineers, and network administrators who work with HP A Series products.

Part number: 5998-1713 Software version: Release 2208 Document version: 5W100-20110530

Legal and notice information


Copyright 2011 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. HEWLETT-PACKARD COMPANY MAKES NO WARRANTY OF ANY KIND WITH REGARD TO THIS MATERIAL, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Hewlett-Packard shall not be liable for errors contained herein or for incidental or consequential damages in connection with the furnishing, performance, 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 omissions contained herein.

Contents
IRF configuration commands 4
display irf 4 display irf configuration 5 display irf topology 6 display irf-port load-sharing mode 7 display mad 9 display switchover state 11 irf auto-update enable 12 irf domain 13 irf link-delay 14 irf mac-address persistent 14 irf member description 15 irf member priority 16 irf member renumber 17 irf switch-to 18 irf-port 19 irf-port load-sharing mode (system view) 20 irf-port load-sharing mode (IRF port view) 21 irf-port-configuration active 22 mad arp enable 23 mad bfd enable (available only on the A5500 EI) 23 mad enable 24 mad exclude interface 25 mad ip address (available only on the A5500 EI) 26 mad restore 27 port group interface 27

Support and other resources 29


Contacting HP 29 Subscription service 29 Related information 29 Documents 29 Websites 29 Conventions 30

Index 32

iii

IRF configuration commands


display irf
Syntax
display irf [ | { begin | exclude | include } regular-expression ]

View
Any view

Default level
1: Monitor level

Parameters
|: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description
Use the display irf command to display information about the Intelligent Resilient Framework (IRF) fabric that has the switch you are working on. The command displays information about all switches that have joined or are joining the IRF fabric.

Examples
# Display information about the IRF fabric.
<Sysname> display irf Switch *+1 2 Role Master Slave Priority 2 1 CPU-Mac 0023-8929-4f83 0023-8980-54ad Description ---------

-------------------------------------------------* indicates the device is the master. + indicates the device through which the user logs in.

The Bridge MAC of the IRF is: 0023-8929-4f70 Auto upgrade Mac persistent Domain ID : no : 6 min : 0

Table 1 Output description Field Description


Member ID. Switch

The ID of the master is prefixed with an asterisk (*) sign. The ID of the switch where you are logged in is prefixed with a plus
(+) sign. Slave Master SlaveWaitThe switch is joining the IRF fabric. LoadingThe switch is loading the system software image. The member switch of the IRF fabric can have the following roles:

Role

CPU-MAC

Bridge MAC address of the CPU of the switch. Description of the member (----- is displayed if the description of the switch is not configured)

Description

If the description of the member switch exceeds one line, is displayed at the end of the line and the reset information is not displayed. To view the complete description, execute the display current-configuration command. Indicates whether the auto upgrade of the configuration files is enabled:

Auto upgrade

yes: Enabled no: Disabled


Preservation information about the bridge MAC address of the IRF fabric:

6 min: When the master leaves, the bridge MAC address does not
change for six minutes. leaves the IRF fabric. MAC persistent

always: The bridge MAC address does not change after the master no: As soon as the master leaves, the IRF fabric uses the bridge
MAC address of the newly elected master as its bridge MAC address.

Domain ID

Domain ID assigned to an IRF fabric. A domain ID is used to uniquely identify an IRF fabric when there are multiple IRF fabrics in the network.

display irf configuration


Syntax
display irf configuration [ | { begin | exclude | include } regular-expression ]

View
Any view

Default level
1: Monitor level

Parameters
|: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide.
5

begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description
Use the display irf configuration command to display the pre-configurations of members of the current IRF fabric. NOTE: The pre-configurations take effect at the reboot of the switch. The command displays the member ID, priority, IRF port state, and port information.

Examples
# Display the pre-configurations of all members of the current IRF fabric.
<Sysname> display irf configuration MemberID NewID 1 2 1 2 IRF-Port1 disable Ten-GigabitEthernet2/2/1 IRF-Port2 Ten-GigabitEthernet1/1/2 disable

Table 2 Output description Field


Switch New-ID

Description
Member ID. The member ID configured for a switch after its reboot. The left IRF port of a switch after its reboot.

If it is displayed as x, it indicates that the IRF port is bound with the


IRF-Port1 physical IRF port x.

If it is displayed as x.y, it indicates that the IRF port is aggregated from the
physical IRF ports x and y.

If it is displayed as disable, it indicates that the IRF port is not enabled.


The right IRF port of a switch after its reboot.

If it is displayed as x, it indicates that the IRF port is bound with the


IRF-Port2 physical IRF port x.

If it is displayed as x.y, it indicates that the IRF port is aggregated from the
physical IRF ports x and y.

If it is displayed as disable, it indicates that the IRF port is not enabled.

display irf topology


Syntax
display irf topology [ | { begin | exclude | include } regular-expression ]

View
Any view

Default level
1: Monitor level
6

Parameters
|: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description
Use the display irf topology command to display topology information about the current IRF fabric. The command displays all topology information learned by the current switch.

Examples
# Display topology information about the current IRF fabric.
<Sysname> display irf topology Topology Info ------------------------------------------------------------------------IRF-Port1 Switch 1 2 Link DIS UP neighbor -1 IRF-Port2 Link UP DIS neighbor 2 -Belong To 0023-8929-4f83 0023-8929-4f83

Table 3 Output description Field


Switch IRF-Port 1 IRF-Port 2 Belong To

Description
Member ID Information about IRFport 1, including its link state and neighbor (or remote port). Information about IRF-Port 2, including its link state and neighbor (or remote port). The IRF fabric that the switch belongs to, represented by the bridge MAC address of the master in the IRF fabric. Link state of the IRF port:

Link

UP DOWN DIS: The IRF port is not enabled.


The switch ID that connects with this IRF port If the IRF port does not connect with any switch, -- is displayed.

neighbor

display irf-port load-sharing mode


Syntax
display irf-port load-sharing mode [ irf-port [ member-id/port-number ] ] [ | { begin | exclude | include } regular-expression ]

View
Any view

Default level
1: Monitor level

Parameters
member-id/port-number: IRF port number, where member-id represents the ID of an IRF member switch. The port-number argument specifies the port number, and the value can be either 1 or 2. |: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description
Use the display irf-port load-sharing mode command to display the load sharing criteria for IRF links. NOTE: If the irf-port keyword is not provided, the command displays the global load sharing criteria for IRF links. If the irf-port keyword is provided but the IRF port number is not specified, the command displays the load sharing criteria for IRF links on each IRF port respectively. If the irf-port keyword is provided and the IRF port number is specified, the command displays the load sharing criteria for IRF links on the specified port.

Examples
# Display the default global load sharing criteria for IRF links.
<Sysname> display irf-port load-sharing mode

irf-port Load-Sharing Mode: Layer 2 traffic: destination-mac address, source-mac address Layer 3 traffic: destination-ip address, source-ip address

# Display the configured global load sharing criteria for IRF links.
<Sysname> display irf-port load-sharing mode

irf-port Load-Sharing Mode: destination-mac address, source-mac address

# Display the default load sharing criteria for the member links of IRF port 1/2.
<Sysname> display irf-port load-sharing mode irf-port 1/2

irf-port1/2 Load-Sharing Mode: Layer 2 traffic: destination-mac address, source-mac address Layer 3 traffic: destination-ip address, source-ip address

# Display the configured load sharing criteria for the member links of IRF port 1/2.
8

<Sysname> display irf-port load-sharing mode irf-port 1/2

irf-port1/2 Load-Sharing Mode: destination-mac address, source-mac address

# Display the load sharing criteria for the member links of each IRF port.
<Sysname> display irf-port load-sharing mode irf-port

irf-port1/2 Load-Sharing Mode: Layer 2 traffic: destination-mac address, source-mac address Layer 3 traffic: destination-ip address, source-ip address

irf-port2/1 Load-Sharing Mode: Layer 2 traffic: destination-mac address, source-mac address Layer 3 traffic: destination-ip address, source-ip address

Table 4 Output description Field Description


Global IRF port load sharing mode:

If the default configuration is applied, the port load sharing


irf-port Load-Sharing Mode mode for processing both Layer 2 and Layer 3 packets are displayed. load sharing mode is displayed.

If the non-default configuration is applied, the user-configured


IRF port load sharing mode on IRF port 1/2: irf-port 1/2 Load-Sharing Mode

If the default configuration is applied, the global IRF port load


sharing mode is displayed.

If the non-default configuration is applied, the user-configured


load sharing mode is displayed. Layer 2 traffic: destination-mac address, source-mac address Layer 3 traffic: destination-ip address, source-ip address destination-mac address, source-mac address The port load sharing mode for processing Layer 2 packets: It uses the combination of both the source and the destination MAC addresses as the hash key for load sharing. The port load sharing mode for processing Layer 3 packets: It uses the combination of both the source and the destination IP addresses as the hash key for load sharing. The user configured load sharing mode: It uses the combination of both the source and the destination MAC addresses as the hash key for load sharing.

display mad
Syntax
display mad [ verbose ] [ | { begin | exclude | include } regular-expression ]

View
Any view

Default level
1: Monitor level
9

Parameters
verbose: Displays detailed information about the MAD detection. If this keyword is not provided, the system displays brief information about the MAD detection. |: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description
Use the display mad command to display information about multi-active detection (MAD).

Examples
# Display brief information about MAD.
<Sysname> display mad MAD ARP disabled. MAD LACP enabled. MAD BFD disabled.

# Display detailed information about MAD.


<Sysname> display mad verbose Current MAD status: Detect Excluded ports(configurable): Vlan-interface999 Excluded ports(can not be configured): MAD ARP enabled interface: Vlan-interface2 MAD enabled aggregation port: Bridge-Aggregation1 MAD BFD enabled interface: Vlan-interface3 mad ip address 3.3.3.1 255.255.255.0 member 1 mad ip address 3.3.3.2 255.255.255.0 member 2

Table 5 Output description Field


MAD LACP enabled

Description
The enable status of LACP MAD. It can be enabled or disabled depending on the configuration. The enable status of BFD MAD. It can be enabled or disabled depending on the configuration. This field is not available for the A5500 SI switches. The enable status of ARP MAD. It can be enabled or disabled depending on your configuration.

MAD BFD enabled

MAD ARP enabled.

10

Field

Description
MAD status:

DetectThe IRF fabric is normal, and MAD is detecting multi-active


collisions.

RecoveryThe IRF fabric is in recovery state. When detecting a


Current MAD status

multi-active collision, MAD places the IRF fabric with higher master ID in recovery state and shuts down all physical ports in the device but the IRF ports and the ports that are configured not to shut down. detect to recovery, for example, as a result of IRF partition.

Detect to RecoveryThe state of the IRF fabric is transitioning from Recovery to DetectThe state of the IRF fabric is transitioning from
recovery to detect when the failed IRF link is detected recovered. Excluded ports(configurable) Excluded ports(can not be configured) MAD ARP enabled interface: Vlan-interface2 MAD enabled aggregation port: Bridge-Aggregation1 MAD BFD enabled interface The ports manually configured not to shut down when the IRF fabric transitions to the recovery state. The ports set by default not to shut down when the IRF fabric transitions to the recovery state. The interface where ARP MAD is enabled. The aggregate interface where LACP MAD is enabled. The list of BFD MAD-enabled interfaces and their MAD IP addresses are configured for MAD detection. This field is not available for the A5500 SI switches.

display switchover state


Syntax
display switchover state [ slot member-id ] [ | { begin | exclude | include } regular-expression ]

View
Any view

Default level
1: Monitor level

Parameters
slot member-id: Specifies the ID of an IRF member switch. With this argument, the command displays the master/slave switchover state of the specified member. Without this argument, the command displays the master/slave switchover state of the master. |: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

11

Description
Use the display switchover state command to display the master/slave switchover states of members of an IRF fabric.

Examples
# Display the master/slave switchover states of the master.
<Sysname> display switchover state Master HA State to slot 2: Slave is absent. Master HA State to slot 3: Slave is absent. Master HA State to slot 4: Waiting batch backup request from slave. Master HA State to slot 5: Slave is absent. Master HA State to slot 6: Realtime backup to slave. Master HA State to slot 7: Realtime backup to slave. Master HA State to slot 8: Slave is absent. Master HA State to slot 9: Slave is absent.

The output shows the following conditions: Slaves 2, 3, 5, 8, and 9 are absent, which means that these switches are not in use. The master is waiting for the batch backup request from slave 4. Slaves 6 and 7 are performing real time backup.

Table 6 Output description for the master Field Description


Indicates that this output information is generated by the master. Master HA State to slot slot-number Describes the master/slave switchover state between the master and the slave whose slot-number represents its member ID. The slave switch is transitioning to the master role.

Data smooth

# Display the master/slave switchover state of slave 6.


<Sysname> display switchover state slot 6 Slave HA State: Receiving realtime data.

The output shows that slave 6 is receiving real time backup data. Table 7 Output description for a slave Field
Slave HA State Waiting

Description
Indicates that this output information is generated by a slave. Describes the master/slave switchover state of the slave. The slave is ready, and is waiting to enter the batch backup state.

irf auto-update enable


Syntax
irf auto-update enable
12

undo irf auto-update enable

View
System view

Default level
3: Manage level

Parameters
None

Description
Use the irf auto-update enable command to automatically synchronize the system software image of the master switch to the switch you are adding to the IRF fabric. Use the undo irf auto-update enable command to disable this function. By default, this function is enabled. IMPORTANT: After loading the masters system software, a slave automatically configures the file as the system software to be used at the next boot and reboots. Check that the switch has efficient space for the new system software image. If the downloaded system software image and the local system software image have duplicate file names, the local file will be overwritten. Verify that there is not any local file having the same name with the system software image to be downloaded.

Examples
# Enable the automatic system software updating function on the IRF fabric.
<Sysname> system-view [Sysname] irf auto-update enable

irf domain
Syntax
irf domain domain-id undo irf domain

View
System view

Default level
3: Manage level

Parameters
domain-id: Assigns a domain ID to the IRF fabric, ranging from 0 to 4294967295.

Description
Use the irf domain command to assign a domain ID for an IRF fabric. Use the irf domain command to restore the default. By default, the domain ID of an IRF fabric is 0.
13

NOTE: You may deploy multiple IRF fabrics in one network for various networking applications. You can use domain IDs to differentiate these IRF fabrics.

Examples
# Set the domain ID of the IRF fabric to 30.
<Sysname> system-view [Sysname] irf domain 30

irf link-delay
Syntax
irf link-delay interval undo irf link-delay

View
System view

Default level
3: Manage level

Parameters
interval: Delay time for the link layer to report a link-down event of an IRF fabric, ranging from 200 to 2000 milliseconds.

Description
Use the irf link-delay command to set the delay time for the link layer to report a link-down event of an IRF fabric. Use the undo irf link-delay command to restore the default. You can avoid link flapping causing frequent IRF splits and merges during switch reconfiguration by configuring the IRF ports to delay reporting link down events. The default delay for reporting an IRF link down event is 250 milliseconds.

Examples
# Set the delay time for the link layer to report a link-down event of the current IRF fabric to 300 milliseconds.
<Sysname> system-view [Sysname] irf link-delay 300

irf mac-address persistent


Syntax
irf mac-address persistent { always | timer } undo irf mac-address persistent

View
System view

14

Default level
3: Manage level

Parameters
always: Enables the IRF fabric to preserve its bridge MAC address permanently even after the master leaves. timer: Enables the IRF fabric to preserve its bridge MAC address for six minutes after the master leaves.

Description
Use the irf mac-address persistent command to enable the IRF fabric to preserve its bridge MAC address for a certain period after the master leaves. Use the undo irf mac-address persistent command to enable the IRF fabric to change its bridge MAC address as soon as the master leaves. By default, the IRF fabric preserves its bridge MAC address for six minutes after the master leaves. NOTE: Preserve for six minutes: When the master leaves, the bridge MAC address does not change within six minutes. If the master does not come back when the preservation time expires, the IRF fabric uses the bridge MAC address of the newly elected master as its bridge MAC address. Preserve permanently: Whether the master leaves the IRF fabric or not, the bridge MAC address of the IRF fabric remains unchanged. Not preserved: As soon as the master leaves, the IRF fabric uses the bridge MAC address of the newly elected master as its bridge MAC address. When you plan a network that uses ARP MAD and MSTP, use the undo irf mac-address persistent command to configure the bridge MAC address of the IRF fabric to change as soon as the master leaves.

Examples
# Configure the bridge MAC address of the IRF fabric to be preserved permanently.
<Sysname> system-view [Sysname] irf mac-address persistent always

irf member description


Syntax
irf member member-id description text undo irf member member-id description

View
System view

Default level
3: Manage level

Parameters
member-id: ID of an IRF member switch. text: Description of the member switch, which is a string of 1 to 127 characters.
15

Description
Use the irf member description command to configure a description for an IRF member switch. Use the undo irf member description command to restore the default. By default, no description is configured for any IRF member switch.

Examples
# Configure a description for IRF member switch 1.
<Sysname> system-view [Sysname] irf member 1 description F1Num001

irf member priority


Syntax
irf member member-id priority priority undo irf member member-id priority

View
System view

Default level
3: Manage level

Parameters
member-id: ID of an IRF member switch. priority: Priority value, ranging from 1 to 32.

Description
Use the irf member priority command to specify a priority for an IRF member switch. Use the undo irf member priority command to restore the default. By default, the priority of a member switch is 1. The greater the priority value, the higher the priority. A member with a higher priority is more likely to be the master, and more likely to preserve its ID in a member ID collision.

Examples
# Specify a priority for the local switch.
<Sysname> display irf Switch *1 2 +3 9 Role Slave Slave Master Slave Priority 29 1 32 30 CPU-Mac 00e0-fc00-1115 00e0-fc00-1615 00e0-fc00-1015 00e0-fc00-1515

-------------------------------------------------------* indicates the device is the master. + indicates the device through which the user logs in. The Bridge MAC of the IRF is: 00e0-fc00-1000 Auto upgrade Mac persistent Domain ID : yes : always : 0

16

The output shows that the member ID of the local switch is 3, and you can specify a priority for the local switch by providing its member ID.
<Sysname> system-view [Sysname] irf member 3 priority 16

# Specify a priority for member 2 in the current IRF.


<Sysname> system-view [Sysname] irf member 2 priority 32

irf member renumber


Syntax
irf member member-id renumber new-member-id undo irf member member-id renumber

View
System view

Default level
3: Manage level

Parameters
member-id: Specifies the ID of an IRF member switch. This argument ranges from 1 to 9 for the A5500 EI switches and 1 to 4 for the A5500 SI switches. new-member-id: Assigns a new ID for the IRF member switch. This argument ranges from 1 to 9 for the A5500 EI switches and 1 to 4 for the A5500 SI switches.

Description
Use the irf member renumber command to change the member ID of a switch in the IRF fabric. Use the undo irf member renumber command to remove the configuration. By default, the IRF member ID of a switch is 1. NOTE: This setting takes effect at the reboot of the switch. For an IRF fabric, member IDs are not only used to identify devices, but also used to configure IRF ports and member priorities. Therefore, modifying a member ID may cause switch configuration change or even loss. Modify member IDs with caution. For example, three members (of the same switch model) with the member IDs of 1, 2 and 3 belong to an IRF fabric. Assume that each member has several ports: change the member ID of switch 2 to 3, change that of switch 3 to 2, reboot both switches, and add them into the IRF fabric again. Then switch 2 uses the original port configurations of switch 3, and switch 3 uses those of switch 2. When the newly added switch and another member have duplicated member IDs, the existing member can preserve its ID, and the IRF fabric automatically assigns the smallest unused member ID to the new member.

Examples
# Set the member ID of the local switch (the member ID is 1) to 3.
<Sysname> display irf [Sysname] irf member 1 renumber 3

17

Warning: Renumbering the switch number may result in configuration change or loss. Continue?[Y/N]:Y

# Change the IRF member ID of a switch from 2 to 4.


<Sysname> system-view [Sysname] irf member 2 renumber 4 Warning: Renumbering the switch number may result in configuration change or loss. Continue?[Y/N]y

To cancel the above configuration and restore the original member ID of the switch, execute the following command:
[Sysname] undo irf member 2 renumber Warning: Renumbering the switch number may result in configuration change or loss. Continue?[Y/N]y

To change the IRF member ID to 2 after you reboot the switch, you must use the irf member 4 renumber 2 command.

irf switch-to
Syntax
irf switch-to member-id

View
System view

Default level
3: Manage level

Parameters
member-id: ID of an IRF member switch. The member-id argument in this command cannot be the member ID of the master. The value range depends on the current number of members and their member IDs in the IRF fabric.

Description
Use the irf switch-to command to redirect to the specified slave so that you can directly access the slave. When you access an IRF fabric, you actually log in to the master. The console of the master is displayed as the operation interface of the access terminal. After you execute this command, you are redirected to the specified slave, which is equal to directly logging in to the slave. The operation interface of the access terminal switches from the console of the master to that of the slave, and the system enters the user view of the slave and the command prompt is changed to <Sysname-Slave#X>, where X is the member ID of the device, for example, <Sysname-Slave#2>. After this command is executed, the instructions that you input at the terminal will be forwarded to the specified slave, without being processed by the local switch. You can execute the following commands on a slave: display quit return system-view debugging terminal debugging
18

terminal logging terminal trapping

To return to the console of the master, execute the quit command. The master will be reactivated and ready for outputting information. You cannot redirect to the master of the IRF fabric with the irf switch-to command.

Examples
# Redirect to member 2.
<Sysname> system-view [Sysname] irf switch-to 2 <Sysname-Slave#2>

irf-port
Syntax
irf-port member-id/port-number undo irf-port member-id/port-number

View
System view

Default level
3: Manage level

Parameters
member-id/port-number: IRF port number, where member-id represents the ID of the IRF member switch. The port-number argument specifies the port number, and the value can be either 1 or 2.

Description
Use the irf-port command to create an IRF port and enter IRF port view. If the IRF port is already created, this command enters IRF port view. Use the undo irf-port command to delete the specified IRF port. By default, no IRF port is created on the switch. NOTE: Before establishing an IRF, you must enter IRF port view, and bind physical IRF port(s) to this IRF port, so the IRF port will be available for the IRF fabric. Related commands: port group interface.

Examples
# Create IRF port IRF-port 1 for the device with the member ID of 3, and bind this port to physical IRF port Ten-GigabitEthernet 3/1/1.
<Sysname> system-view [Sysname] interface ten-gigabitethernet 3/1/1 [Sysname-Ten-GigabitEthernet3/1/1] shutdown [Sysname-Ten-GigabitEthernet3/1/1] quit [Sysname] irf-port 3/1 [Sysname-irf-port3/1] port group interface ten-gigabitethernet 3/1/1

19

[Sysname-irf-port3/1] quit [Sysname] interface ten-gigabitethernet 3/1/1 [Sysname-Ten-GigabitEthernet3/1/1] undo shutdown

irf-port load-sharing mode (system view)


Syntax
irf-port load-sharing mode { destination-ip | destination-mac | source-ip | source-mac } * undo irf-port load-sharing mode

View
System view

Default level
2: System level

Parameters
destination-ip: Uses the destination IP address of packets as the hash key. destination-mac: Uses the destination MAC address of packets as the hash key. source-ip: Uses the source IP address of packets as the hash key. source-mac: Uses the source MAC address of packets as the hash key.

Description
Use the irf-port load-sharing mode command to configure global IRF port load sharing mode. Use the undo irf-port load-sharing mode command to restore the default. By default, the A5500 SI and A5500 EI switches use the combination of source and destination MAC addresses as the hash key when processing Layer 2 packets, and use the combination of source and destination IP addresses when processing Layer 3 packets. After you specify a load sharing mode, the switch extracts the corresponding field (IP address or MAC address) in a packet or the inbound port number based on the selected mode. The switch performs the hash function on the address or port number and on the number of physical IRF ports in an aggregate IRF port. Then, the switch determines which physical IRF port sends out the packet. For this command, the latter configuration will overwrite the former instead of as a supplement. For example, the current load sharing mode uses the destination MAC address as the hash key. If you want to change it as the combination of source and destination MAC addresses, you must execute the irf-port load-sharing mode source-mac command, and re-configure the load sharing mode by executing the irfport load-sharing mode destination-mac source-mac command. When you configure IRF port load sharing mode in system view, you can specify the following combinations as the hash key: Any of the source IP address, destination IP address, source MAC address, or destination MAC address separately. The combination of the source and the destination IP addresses. The combination of the source and the destination MAC addresses.

Examples
# Configure the global IRF port load sharing mode, using the destination MAC address of packets as the hash key.
20

<Sysname> system-view [Sysname] irf-port load-sharing mode destination-mac

irf-port load-sharing mode (IRF port view)


Syntax
irf-port load-sharing mode { destination-ip | destination-mac | source-ip | source-mac } * undo irf-port load-sharing mode

View
IRF port view

Default level
2: System level

Parameters
destination-ip: Uses the destination IP address of packets as the hash key. destination-mac: Uses the destination MAC address of packets as the hash key. source-ip: Uses the source IP address of packets as the hash key. source-mac: Uses the source MAC address of packets as the hash key.

Description
Use the irf-port load-sharing mode command to configure the load sharing mode for an IRF port. Use the undo irf-port load-sharing mode command to restore the default. By default, the A5500 SI and A5500 EI switches use the combination of the source and destination MAC addresses as the hash key when processing Layer 2 packets, and use the combination of the source and destination IP addresses when processing Layer 3 packets. After you specify a load sharing mode, the switch extracts the corresponding field (IP address or MAC address) in a packet or the inbound port number based on the selected mode. The switch performs the hash function on the address or port number and the number of physical IRF ports in an aggregate IRF port. Then, the switch determines which physical IRF port sends out the packet. For this command, the latter configuration will overwrite the former instead of creating a supplement. For example, the current load sharing mode uses the destination MAC address as the hash key. If you want to change it to the combination of source and destination MAC addresses, you must execute the irf-port load-sharing mode source-mac command, and re-configure the load sharing mode by executing the irfport load-sharing mode destination-mac source-mac command. When configuring IRF port load sharing mode in system view, you can specify the following combinations as the hash key: Any of the source IP address, destination IP address, source MAC address or destination MAC address separately. The combination of the source and the destination IP addresses. The combination of the source and the destination MAC addresses as the hash key.

Examples
# Configure the load sharing mode for IRF port 1/1, using the destination MAC address of packets as the hash key.
<Sysname> system-view

21

[Sysname] irf-port 1/1 [Sysname-irf-port 1/1] irf-port load-sharing mode destination-mac

irf-port-configuration active
Syntax
irf-port-configuration active

View
System view

Default level
3: Manage level

Parameters
None

Description
Use the irf-port-configuration active command to activate configurations on all IRF ports on the switch. If you connect the IRF links and bind physical IRF port(s) to an IRF port whose link state is DIS or DOWN, you must execute the irf-port-configuration active command to establish the IRF fabric. You can use the display irf topology command to display this configuration. Activating IRF port configurations may cause IRF fabric merge and device reboot. To avoid configuration loss, set the member ID for a device in the following way:
1. 2. 3. 4. 5. 6. 7.

Plan the network and member IDs in advance. Determine the number of IRF ports to be created, and which physical IRF ports will be used for IRF establishment. Modify member IDs for switches. (The modifications of member IDs become effective after switch reboot, so modify member IDs before executing the irf-port-configuration active command.) Connect SFP+ cables or fibers and make sure that the physical IRF ports are well connected. Create IRF ports. Bind physical IRF ports to IRF ports. Save the current configurations to the configuration file for the next startup. Activate configurations on all IRF ports.

After the system starts up, when you bind a physical IRF port to an IRF port through the configuration file, or add a new physical port, the configurations on IRF ports are activated automatically, so you do not need to execute this command again.

Examples
# Activate configurations on an IRF port with the DIS link. The link state of the IRF port indicates that the port has not been bound with any physical IRF port. Therefore, you need to bind it to a physical IRF port. Shut down the physical IRF port before the binding and activate it after the binding.

<Sysname> system-view [Sysname] interface ten-gigabitEthernet 1/1/3 [Sysname-Ten-GigabitEthernet1/1/3] shutdown [Sysname-Ten-GigabitEthernet1/1/3] quit [Sysname] irf-port 1/2 [Sysname-irf-port1/2] port group interface Ten-GigabitEthernet 1/1/3

22

[Sysname-irf-port1/2] quit [Sysname] interface ten-gigabitEthernet 1/1/3 [Sysname-Ten-GigabitEthernet1/1/3] undo shutdown [Sysname-Ten-GigabitEthernet1/1/3] quit

Save the current configurations to the configuration file for the next startup to make IRF port configurations effective after switch reboot.

[Sysname] save The current configuration will be written to the device. Are you sure? [Y/N]:y Please input the file name(*.cfg)[flash:/startup.cfg] (To leave the existing filename unchanged, press the enter key): flash:/startup.cfg exists, overwrite? [Y/N]:y Validating file. Please wait.... Saved the current configuration to mainboard device successfully. Configuration is saved to device successfully.

Activate configurations on the IRF port

[Sysname] irf-port-configuration active

mad arp enable


Syntax
mad arp enable undo mad arp enable

View
VLAN interface view

Default level
3: Manage level

Parameters
None

Description
Use the mad arp enable command to enable ARP MAD to detect the IRF fabric for multi-active collisions. Use the undo mad arp enable command to disable ARP MAD. By default, ARP MAD is disabled.

Examples
# Enable ARP MAD on VLAN-interface 3.
<Sysname> system-view [Sysname] interface vlan-interface 3 [Sysname-Vlan-interface3] mad arp enable

mad bfd enable (available only on the A5500 EI)


Syntax
mad bfd enable undo mad bfd enable
23

View
VLAN interface view

Default level
3: Manage level

Parameters
None

Description
Use the mad bfd enable command to enable BFD MAD for detecting multiple IRF fabrics with the same IP address on the network. Use the undo mad bfd enable command to disable BFD MAD. By default, BFD MAD is disabled. CAUTION: Do not configure any services (such as ARP) on a BFD MAD enabled Layer 3 interface. Doing so can cause both the configured services and BFD MAD to work inappropriately. Do not bind a BFD MAD enabled Layer 3 interface to any VPN or enable the spanning tree feature on the ports in the VLAN that corresponds to this interface. Doing so can cause BFD MAD to work inappropriately. Do not enable BFD MAD detection on VLAN-interface 1. Related commands: mad ip address.

Examples
# Enable BFD MAD on VLAN-interface 3.
<Sysname> system-view [Sysname] interface vlan-interface 3 [Sysname-Vlan-interface3] mad bfd enable

mad enable
Syntax
mad enable undo mad enable

View
Aggregate interface view

Default level
3: Manage level

Parameters
None

Description
Use the mad enable command to enable LACP MAD to detect the IRF fabric for multi-active collisions. Use the undo mad enable command to disable LACP MAD.
24

By default, LACP MAD is disabled. NOTE: This command takes effect only on dynamic aggregate interfaces.

Examples
# Enable LACP MAD on LACP-enabled dynamic Layer 2 aggregate interface 1.
<Sysname> system-view [Sysname] interface bridge-aggregation 1 [Sysname-Bridge-Aggregation1] mad enable

mad exclude interface


Syntax
mad exclude interface interface-type interface-number undo mad exclude interface interface-type interface-number

View
System view

Default level
3: Manage level

Parameters
interface-type interface-number: Specifies a port by its type and number.

Description
Use the mad exclude interface command to configure a service port not to shut down when the IRF fabric transitions to the recovery state on detection of a multi-active collision. Use the undo mad exclude interface command to restore the default. By default, all service ports of an IRF fabric shut down when the IRF fabric transitions to the recovery state. NOTE: When a MAD-enabled IRF fabric is detected as partitioned into two or more identical active IRF fabrics, all IRF fabrics but the one with the lowest master ID are placed in the recovery state to stop forwarding traffic and to ensure the uniqueness of the IRF fabrics. All of the service ports are shut down, except the IRF ports and the ports that are manually configured not to shut down. When the member switches reboot to join the recovered IRF fabric, the ports that were shut down come up. Use the mad restore command to manually recover the members and disabled ports.

Examples
# Specify GigabitEthernet2/0/1 as the reserved port, which will not be disabled when the switch is in the recovery state.
<Sysname> system-view [Sysname] mad exclude interface gigabitethernet 2/0/1

25

mad ip address (available only on the A5500 EI)


Syntax
mad ip address ip-address { mask | mask-length } member member-id undo mad ip address ip-address { mask | mask-length } member member-id

View
VLAN interface view

Default level
3: Manage level

Parameters
ip-address: Specifies an IP address in dotted decimal notation for the Layer 3 interface. mask: Specifies a subnet mask in decimal dotted notation. mask-length: Specifies the subnet mask length, which is the number of successive 1s in the mask. The value ranges from 0 to 32. member member-id: Specifies the ID of an IRF member switch.

Description
Use the mad ip address command to configure the MAD IP address for the specified member switch. Use the undo mad ip address command to delete the configured MAD IP address. By default, no MAD IP address is configured for any interface. BFD MAD is implemented with the BFD protocol. To configure BFD MAD detection, configure a MAD IP address on a BFD-enabled Layer 3 interface for each member switch. This MAD address identifies the member during BFD MAD detection. The MAD IP addresses assigned to the member switches must belong to the same network segment. When the IRF fabric operates normally, only the MAD IP address of the master is effective and the BFD session is down. When the IRF fabric partitions, the MAD IP addresses of the masters in different IRF fabrics become effective to activate the BFD sessions to detect for multi-active IRF fabric collision.

An interface used for BFD MAD must be dedicated. Do not configure any other services on an interface with BFD MAD enabled. Otherwise, both the configured services and the BFD MAD detection function may be affected. You can assign the MAD IP address for an interface used for BFD MAD detection only with the mad ip address command. You cannot configure other IP addresses for BFD MAD detection, including a common IP address or VRRP virtual IP address configured with the ip address command. Related commands: mad bfd enable.

Examples
# Configure the MAD IP address for VLAN-interface 3 on member 1.
<Sysname> system-view [Sysname] interface vlan-interface 3 [Sysname-Vlan-interface3] mad ip address 192.168.0.1 255.255.255.0 member 1

# Configure the MAD IP address for VLAN-interface 3 on member 2.


26

[Sysname-Vlan-interface3] mad ip address 192.168.0.2 255.255.255.0 member 2

mad restore
Syntax
mad restore

View
System view

Default level
3: Manage level

Parameters
None

Description
Use the mad restore command to recover the member switches of the IRF fabric in recovery state to the normal state. NOTE: An IRF link failure triggers IRF fabric partition and causes a multi-active collision. In this case, one IRF fabric can keep the active state and other IRF fabrics change into recovery state. In this state, the IRF fabric cannot forward packets. If the IRF fabric in the recovery state fails before the failure is recovered, repair both the failed IRF fabric and the failed IRF link. The collided IRF fabrics will merge into one and the failure will be recovered. If the IRF fabric in the active state fails before the failure is recovered, enable the IRF fabric in the recovery state at the CLI to make it take over the active IRF fabric and protect the services from being affected.

Examples
# Restore IRF fabrics in recovery state to the normal state.
<Sysname> system-view [Sysname] mad restore This command will restore the device from multi-active conflict state. Continue? [Y/N]:Y Restoring from multi-active conflict state, please wait...

port group interface


Syntax
port group interface interface-type interface-number [ mode { enhanced | normal } ] undo port group interface interface-name

View
IRF port view

Default level
3: Manage level
27

Parameters
interface-type interface-number: Specifies port type and port number. interface-name: Interface name, in the format of interface-typeinterface-number. No space is allowed between the interface-type and interface-number arguments. mode: Sets the operating mode of the physical IRF port when the physical IRF port is bound to an IRF port. enhanced: Sets the physical IRF port to work in the enhanced mode. This keyword is not available now. normal: Sets the physical IRF port to work in the normal mode.

Description
Use the port group interface command to bind a physical port to an IRF port. The IRF port is activated when you bind the first physical port to it. Use the undo port group interface command to remove an IRF port binding. By default, no physical port is bound to any IRF port. NOTE: You can bind up to two physical ports to an IRF port, and these two physical ports must be located on the same expansion interface module. Before binding a physical port to an IRF port, shut down the physical port with the shutdown command, and then execute the port group interface command. Then, bring up the physical port with the undo shutdown command, and the physical port can establish an IRF connection as a physical IRF port. Before canceling the binding between a physical port and an IRF port, you must first shut down the physical port with the shutdown command, and then execute the undo port group interface command. After that, bring up the physical port with the undo shutdown command, and then the physical port can forward packets. When you configure this command, if the physical IRF port that is already bound to the IRF port does not exist because the interface card has been removed, the binding between the two ports still exists. To remove the binding between the two ports, use the undo port group interface command.

Examples
# Bind physical IRF port Ten-GigabitEthernet 3/1/1 on member 3 to IRF port 1.
<Sysname> system-view [Sysname] interface ten-gigabitethernet 3/1/1 [Sysname-Ten-GigabitEthernet3/1/1] shutdown [Sysname-Ten-GigabitEthernet3/1/1] quit [Sysname] irf-port 3/1 [Sysname-irf-port3/1] port group interface ten-gigabitethernet 3/1/1 [Sysname-irf-port3/1] quit [Sysname] interface ten-gigabitethernet 3/1/1 [Sysname-Ten-GigabitEthernet3/1/1] undo shutdown

28

Support and other resources


Contacting HP
For worldwide technical support information, see the HP support website: http://www.hp.com/support Before contacting HP, collect the following information: Product model names and numbers Technical support registration number (if applicable) Product serial numbers Error messages Operating system type and revision level Detailed questions

Subscription service
HP recommends that you register your product at the Subscriber's Choice for Business website: http://www.hp.com/go/wwalerts After registering, you will receive email notification of product enhancements, new driver versions, firmware updates, and other product resources.

Related information
Documents
To find related documents, browse to the Manuals page of the HP Business Support Center website: http://www.hp.com/support/manuals For related documentation, navigate to the Networking section, and select a networking category. For a complete list of acronyms and their definitions, see 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

29

Conventions
This section describes the conventions used in this documentation set.

Command conventions
Convention
Boldface Italic [] { x | y | ... } [ x | y | ... ] { x | y | ... } * [ x | y | ... ] * &<1-n> #

Description
Bold text represents commands and keywords that you enter literally as shown. Italic text represents arguments that you replace with actual values. Square brackets enclose syntax choices (keywords or arguments) that are optional. Braces enclose a set of required syntax choices separated by vertical bars, from which you select one. Square brackets enclose a set of optional syntax choices separated by vertical bars, from which you select one or none. Asterisk-marked braces enclose a set of required syntax choices separated by vertical bars, from which you select at least one. Asterisk-marked square brackets enclose optional syntax choices separated by vertical bars, from which you select one choice, multiple choices, or none. The argument or keyword and argument combination before the ampersand (&) sign can be entered 1 to n times. A line that starts with a pound (#) sign is comments.

GUI conventions
Convention
Boldface >

Description
Window names, button names, field names, and menu items are in bold text. For example, the New User window appears; click OK. Multi-level menus are separated by angle brackets. For example, File > Create > Folder.

Symbols
Convention
WARNING CAUTION IMPORTANT NOTE TIP

Description
An alert that calls attention to important information that if not understood or followed can result in personal injury. An alert that calls attention to important information that if not understood or followed can result in data loss, data corruption, or damage to hardware or software. An alert that calls attention to essential information. An alert that contains additional or supplementary information. An alert that provides helpful information.

30

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.

Port numbering in examples


The port numbers in this document are for illustration only and might be unavailable on your device.

31

Index
DIMP
D display irf,4 display irf configuration,5 display irf topology,6 display irf-port load-sharing mode,7 display mad,9 display switchover state,11 I irf auto-update enable,12 irf domain,13 irf link-delay,14 irf mac-address persistent,14 irf member description,15 irf member priority,16 irf member renumber,17 irf switch-to,18 irf-port,19 irf-port load-sharing mode (IRF port view),21 irf-port load-sharing mode (system view),20 irf-port-configuration active,22 M mad arp enable,23 mad bfd enable (available only on the A5500 EI),23 mad enable,24 mad exclude interface,25 mad ip address (available only on the A5500 EI),26 mad restore,27 P port group interface,27

32

Vous aimerez peut-être aussi