- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
01-Text | 113.86 KB |
IRF commands
The following matrix shows the feature and hardware compatibility:
Hardware series |
Model |
IRF compatibility |
WX1800H series |
WX1804H WX1810H WX1820H WX1840H |
No |
WX3800H series |
WX3820H WX3840H |
Yes |
WX5800H series |
WX5860H |
Yes |
display irf
Use display irf to display IRF information, including the member ID, role, priority, bridge MAC address, and description of each IRF member.
Syntax
display irf
Views
Any view
Predefined user roles
network-admin
network-operator
Examples
# Display IRF information.
<Sysname> display irf
Member ID Role Priority CPU MAC Description
1 Loading 1 00e0-fcbe-3102 F1Num001
*+2 Master 1 00e0-fcb1-ade2 F1Num002
--------------------------------------------------------
The asterisk (*) indicates the master.
The plus sign (+) indicates the device through which you are logged in.
The right angle bracket (>) indicates the device's stack capability is disabled.
Bridge MAC of the IRF: 00e0-fc00-1000
Auto upgrade : Disabled
MAC persistence : Disabled
Topo-domain ID : 30
Auto merge : Enabled
Table 1 Command output
Field |
Description |
Member ID |
IRF member ID: · A prefix of asterisk sign (*) indicates the master device. · A prefix of plus sign (+) indicates the device where you are logged in. · A prefix of right angle bracket (>) indicates the disabled state of multimember stacking capability. To disable multimember stacking capability, use the undo irf member stack enable command. |
Role |
Role of the member device in the IRF fabric: · Master—Master device. · Standby—Standby device. · Loading—The device is loading software images. |
Priority |
IRF member priority. |
CPU MAC |
MAC address of the CPU in the device. |
Description |
Description you have configured for the member device. · If no description is configured, this field displays a dashed line (---). · If the description exceeds the maximum number of characters that can be displayed, an ellipsis (…) is displayed in place of the exceeding text. To display the complete description, use the display current-configuration command. |
Bridge MAC of the IRF |
Bridge MAC address of the IRF fabric. |
Auto upgrade |
Status of the software auto-update feature: · Enabled—The master propagates its software images automatically to the device you are adding to the IRF fabric. · Disabled—You must manually make sure the joining device uses the same software images as the master. If the software images are different, the new device cannot join the IRF fabric. |
MAC persistence |
IRF bridge MAC persistence setting: · 6 min—Bridge MAC address of the IRF fabric remains unchanged for 6 minutes after the address owner leaves. · Always—Bridge MAC address of the IRF fabric does not change after the address owner leaves. · Disabled—Bridge MAC address of the current master replaces the original bridge MAC address as soon as the owner of the original address leaves. |
Topo-domain ID |
Topo-domain ID of the IRF fabric. The topo-domain ID you assign to an IRF fabric must uniquely identify the IRF fabric in a multi-IRF network. |
Auto merge |
Status of the auto-merge feature: · Enabled—The IRF fabric automatically reboots its member devices when it fails in the master election during an IRF merge. · Disabled—Manual reboot is required to complete an IRF merge. |
display irf configuration
Use display irf configuration to display IRF settings, including each member's current member ID, new member ID, topo-domain ID, stacking capability status, and network interfaces bound to the IRF ports.
Syntax
display irf configuration
Views
Any view
Predefined user roles
network-admin
network-operator
Examples
# Display IRF settings on all member devices.
<Sysname> display irf configuration
The New ID, Topo-domain, Stack, and Member interfaces fields display settings for the next startup.
Member ID New ID Topo-domain Stack Member interfaces
1 1 0 Enabled Disabled
Table 2 Command output
Field |
Description |
Member ID |
Current IRF member ID of the device. |
New ID |
IRF member ID assigned to the device. This member ID takes effect at reboot. |
Topo-domain |
IRF topo-domain ID. The topo-domain ID takes effect at reboot. |
Stack |
Whether multimember stacking capability is enabled: · Enabled—The device can form an IRF fabric with other member devices. · Disabled—The device cannot form an IRF fabric with other member devices. The device will be removed from the IRF fabric in a maximum of 5 seconds. |
Member interfaces |
Network interfaces bound to the IRF port. This field displays Disabled if no network interfaces have been bound to the IRF port. The channel type of each IRF link is enclosed in brackets. Available channel types include: · ctrl—Control channel. The link can forward only control packets. · data—Data channel. The link can forward only data packets. · ctrl&data—Hybrid channel. The link can forward both data and control packets. |
display irf forwarding
Use display irf forwarding to display information about the IRF hello packets received on a member device.
Syntax
display irf forwarding [ slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
slot slot-number: Specifies a member device by its IRF member ID. If you do not specify a member device, this command displays information about the IRF hello packets received on the master.
Examples
# Display information about the IRF hello packets received on the master.
<Sysname> display irf forwarding
Member ID CPU MAC Hello timeout (sec)
1 00e0-fc0f-8c02 5
2 00e0-fc0f-8c04 5
# Display information about the IRF hello packets received on member device 2.
<Sysname> display irf forwarding slot 2
Member ID CPU MAC Hello timeout (sec)
2 00e0-fc0f-8c04 5
1 00e0-fc0f-8c02 4
Table 3 Command output
Field |
Description |
Member ID |
IRF member ID of the packet sender. |
CPU MAC |
CPU MAC address of the packet sender. |
Hello timeout (sec) |
The remaining amount of time before the hello packet times out, in seconds. If a new hello packet is not received before the existing hello packet expires, the member device determines that the sender has left the IRF fabric. If a new hello packet is received before the existing hello packet expires, the device refreshes the hello timeout time for the sender based on the received packet. |
display irf link
Use display irf link to display IRF link information, including IRF member IDs, network interfaces bound to IRF ports, and IRF link status.
Syntax
display irf link
Views
Any view
Predefined user roles
network-admin
network-operator
Examples
# Display IRF link information.
<Sysname> display irf link
Member ID Member interfaces Status
1 Disabled --
Table 4 Command output
Field |
Description |
Member ID |
IRF member ID. |
Member interfaces |
Network interfaces bound to the IRF port. This field displays Disabled if no network interfaces have been bound to the IRF port. The channel type of each IRF link is enclosed in brackets. Available channel types include: · ctrl—Control channel. The link can forward only control packets. · data—Data channel. The link can forward only data packets. · ctrl&data—Hybrid channel. The link can forward both data and control packets. |
Status |
Link status of the network interface: · Up—The link is up. · Down—The link is down. · ADM—The interface has been manually shut down by using the shutdown command. · Blocked—The link is blocked. In this state, the device cannot join an IRF fabric that contains other devices. Multimember stacking capability is disabled for the device by using the undo irf member stack enable command. This field displays two hyphens (--) if no network interfaces are bound to the IRF port. |
display mad
Use display mad to display MAD status and settings.
Syntax
display mad [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
verbose: Displays detailed MAD information. If you do not specify this keyword, the command only displays whether a MAD mechanism is enabled or disabled.
Examples
# Display brief MAD information.
<Sysname> display mad
MAD ARP enabled.
MAD ND enabled.
MAD LACP disabled.
# Display detailed MAD information.
<Sysname> display mad verbose
Multi-active recovery state: No
Excluded ports(user-configured):
Vlan-interface999
Excluded ports(system-configured):
MAD ARP enabled interface:
Vlan-interface2
MAD ND enabled interface:
Vlan-interface2
MAD LACP enabled interface: Bridge-Aggregation 1
MAD status : Normal
Member ID Port MAD status
1 Ten-GigabitEthernet1/0/10 Normal
2 Ten-GigabitEthernet2/0/10 Normal
Table 5 Command output
Field |
Description |
Multi-active recovery state |
Whether the IRF fabric is in Recovery state: · Yes—The IRF fabric is in Recovery state. When MAD detects that an IRF fabric has split into multiple IRF fabrics, it allows one fabric to forward traffic. All the other IRF fabrics are set to the Recovery state. In Recovery state, MAD shuts down all network interfaces in the fabric except for the IRF network interfaces and interfaces configured to not shut down. · No—The IRF fabric is not in Recovery state. It is active and can forward traffic. |
Excluded ports(user-configured) |
Interfaces manually configured to not shut down when the IRF fabric transits to the Recovery state. |
Excluded ports(system-configured) |
Interfaces set to not shut down by default when the IRF fabric transits to the Recovery state. These interfaces are not user configurable. |
MAD status |
LACP MAD operating status: · Normal—LACP MAD is operating correctly. · Faulty—LACP MAD is not operating correctly. Verify the following items: ? The aggregate interface for LACP MAD is up. ? The intermediate device supports extended LACPDUs for MAD. ? All member devices have ports assigned to the link aggregation group for LACP MAD. |
Member ID |
IRF member ID of the local device. |
Port |
Member ports of the aggregate interface used for LACP MAD. |
MAD status |
LACP MAD operating status on a member port: · Normal—LACP MAD is operating correctly. · Faulty—LACP MAD is not operating correctly. |
irf auto-merge enable
Use irf auto-merge enable to enable IRF auto-merge.
Use undo irf auto-merge enable to disable IRF auto-merge.
Syntax
irf auto-merge enable
undo irf auto-merge enable
Default
IRF auto-merge is enabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
IRF fabrics that are merging perform master election. The IRF auto-merge feature enables the member device in the IRF fabric that fails the master election to automatically reboot for completing the IRF merge. If the IRF auto-merge feature is disabled, you must follow the system instructions to manually reboot the member device in the IRF fabric that fails the master election.
For a successful merge, make sure IRF auto-merge is enabled on both IRF fabrics that are merging.
For example, IRF auto-merge takes effect on merges caused by the following events:
· The IRF link recovers from a link failure.
· The IRF network interfaces of the member devices are connected through a Layer 2 network after the interfaces are bound to IRF ports.
Examples
# Enable IRF auto-merge.
<Sysname> system-view
[Sysname] irf auto-merge enable
irf auto-update enable
Use irf auto-update enable to enable the software auto-update feature.
Use undo irf auto-update enable to disable the software auto-update feature.
Syntax
irf auto-update enable
undo irf auto-update enable
Default
The software auto-update feature is enabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
This command automatically propagates the current software images of the master in the IRF fabric to member devices you are adding to the IRF fabric.
To ensure a successful software update, verify that the new device you are adding to the IRF fabric has sufficient storage space for the new software images. If sufficient storage space is not available, the device automatically deletes the current software images. If the reclaimed space is still insufficient, the device cannot complete the auto-update. You must reboot the device, and then access the Boot ROM menu to delete files.
You must manually update the new device with the software images running on the IRF fabric in the following situations:
· Software auto-update is disabled.
· Software auto-update fails to update software. This situation might occur if the IRF fabric cannot identify the software version used on the new device.
Examples
# Enable the software auto-update feature.
<Sysname> system-view
[Sysname] irf auto-update enable
irf domain
Use irf domain to specify an IRF MAD domain ID.
Use undo irf domain to restore the default.
Syntax
irf domain domain-id
undo irf domain
Default
The IRF MAD domain ID is 0.
Views
System view
Predefined user roles
network-admin
Parameters
domain-id: Specifies an IRF MAD domain ID. The value range is 0 to 4294967295.
Usage guidelines
An IRF MAD domain ID uniquely identifies an IRF multi-active detection domain. If the IRF fabric uses another IRF fabric as the intermediate device for LACP MAD, ARP MAD, or ND MAD, you must assign the two IRF fabrics different MAD domain IDs for correct split detection. False detection causes IRF split.
An IRF fabric has only one IRF MAD domain ID. You can change the IRF MAD domain ID by using the irf domain, mad enable, mad arp enable, or mad nd enable command. The IRF MAD domain IDs configured by using the commands overwrite each other.
Example
# Set the IRF MAD domain ID to 10.
<Sysname> system-view
[Sysname] irf domain 10
irf mac-address persistent
Use irf mac-address persistent to configure IRF bridge MAC persistence.
Use undo irf mac-address persistent to enable the IRF fabric to change its bridge MAC address as soon as the address owner leaves.
Syntax
irf mac-address persistent { always | timer }
undo irf mac-address persistent
Default
The IRF bridge MAC address remains unchanged for 6 minutes after the address owner leaves the IRF fabric.
Views
System view
Predefined user roles
network-admin
Parameters
always: Enables the IRF bridge MAC address to be permanent. The IRF bridge MAC address does not change after the address owner leaves.
timer: Enables the IRF bridge MAC address to remain unchanged for 6 minutes after the address owner leaves. If the owner rejoins the IRF fabric within the time limit, the IRF bridge MAC address does not change. If the owner does not rejoin within the time limit, the IRF fabric uses the bridge MAC address of the current master as the bridge MAC address.
Usage guidelines
IRF bridge MAC persistence specifies the amount of time an IRF fabric can continue using a bridge MAC address as its bridge MAC address after the address owner leaves.
By default, an IRF fabric uses the bridge MAC address of the master device as its bridge MAC address. Layer 2 protocols, such as LACP, use this bridge MAC address to identify the IRF fabric. On a switched LAN, the bridge MAC address must be unique.
To avoid duplicate bridge MAC addresses, an IRF fabric can change its bridge MAC address automatically after the address owner leaves. However, the change causes temporary service disruption. Depending on the network condition, you can enable the IRF fabric to retain or change its bridge MAC address after the address owner leaves.
If ARP MAD or ND MAD is used, you must disable IRF bridge MAC persistence by using the undo irf mac-address persistent command.
When IRF fabrics merge, IRF ignores the IRF bridge MAC address and checks the bridge MAC address of each member device in the IRF fabrics. IRF merge fails if any two member devices have the same bridge MAC address.
Examples
# Enable the IRF bridge MAC address to be permanent.
<Sysname> system-view
[Sysname] irf mac-address persistent always
irf member description
Use irf member description to configure a description for an IRF member device.
Use undo irf member description to restore the default.
Syntax
irf member member-id description text
undo irf member member-id description
Default
No description is configured for any IRF member device.
Views
System view
Predefined user roles
network-admin
Parameters
member-id: Specifies a member device by its IRF member ID.
text: Specifies an IRF member description, a string of 1 to 127 characters.
Examples
# Configure a description for IRF member 1.
<Sysname> system-view
[Sysname] irf member 1 description F1Num001
irf member priority
Use irf member priority to change the priority of an IRF member device.
Use undo irf member priority to restore the default.
Syntax
irf member member-id priority priority
undo irf member member-id priority
Default
The IRF member priority is 1.
Views
System view
Predefined user roles
network-admin
Parameters
member-id: Specifies a member device by its IRF member ID.
priority: Sets the member priority in the range of 1 to 32. The greater the priority value, the higher the priority. A member with higher priority is more likely to be the master.
Usage guidelines
The new priority setting takes effect at the next master election, but it does not trigger a master election.
Examples
# Set the priority of IRF member 2 to 32.
<Sysname> system-view
[Sysname] irf member 2 priority 32
irf member renumber
Use irf member renumber to change the IRF member ID of an IRF member device.
Use undo irf member renumber to restore the previous IRF member ID of the device.
Syntax
irf member member-id renumber new-member-id
undo irf member member-id renumber
Default
The IRF member ID is 1.
Views
System view
Predefined user roles
network-admin
Parameters
member-id: Specifies a member device by its IRF member ID. The following matrix shows the value ranges for the member-id argument:
Hardware series |
Model |
Value range |
WX1800H series |
WX1804H WX1810H WX1820H WX1840H |
Not supported |
WX3800H series |
WX3820H WX3840H |
1 to 2 |
WX5800H series |
WX5860H |
1 to 4 |
new-member-id: Assigns a new ID to the IRF member device. The following matrix shows the value ranges for the new-member-id argument:
Hardware series |
Model |
Value range |
WX1800H series |
WX1804H WX1810H WX1820H WX1840H |
Not supported |
WX3800H series |
WX3820H WX3840H |
1 to 2 |
WX5800H series |
WX5860H |
1 to 4 |
Usage guidelines
|
CAUTION: An IRF member ID change can invalidate member ID-related settings, including interface and file path settings, and cause data loss. Make sure you fully understand its impact on your live network. |
Make sure each member device in the IRF fabric has a unique member ID.
The new IRF member ID, including the one set by using the undo irf member renumber command, takes effect after you reboot the member device.
To cancel the change before you reboot the member device, use the undo irf member renumber command. In the command, set the new member ID to be the same as the old member ID.
Examples
# Change the member ID of an IRF member device from 1 to 2.
<Sysname> system-view
[Sysname] irf member 1 renumber 2
Renumbering the member ID may result in configuration change or loss. Continue? [Y/N]:y
irf member stack enable
Use irf member stack enable to enable multimember stacking capability for an IRF member device.
Use undo irf member stack enable to disable multimember stacking capability for an IRF member device.
Syntax
irf member member-id stack enable
undo irf member member-id stack enable
Default
Multimember stacking capability is enabled for an IRF member device.
Views
System view
Predefined user roles
network-admin
Parameters
member-id: Specifies an IRF member device by its member ID.
Usage guidelines
If multimember stacking capability is disabled for a device, the device cannot join an IRF fabric that contains other devices.
You can use the undo form of this command to remove a member device from an IRF fabric for troubleshooting or maintenance purposes. The removed member device still runs the original IRF settings. However, it does not send or receive IRF control packets.
After you finish the troubleshooting or maintenance tasks, you can log in to the removed device and execute this command to add the device back to the IRF fabric. For this command to take effect, you must save the command setting and reboot the device.
Examples
# Remove member device 2 from the IRF fabric.
<Sysname> system-view
[Sysname] undo irf member 2 stack enable
Member 2 will leave from the IRF and cannot form an IRF with any other devices. Continue? [Y/N]: y
Operation succeeded. Please check the configuration on member 2 with the IRF for configuration collisions.
# Add the removed device back to the IRF fabric.
<Sysname> system-view
[Sysname] irf member 2 stack enable
Please save the configuration, and then reboot the device for the configuration to take effect.
irf topo-domain
Use irf topo-domain to specify an IRF topo-domain ID.
Use undo irf topo-domain to restore the default.
Syntax
irf topo-domain topo-domain-id
undo irf topo-domain
Default
The IRF topo-domain ID is 0.
Views
System view
Predefined user roles
network-admin
Parameters
topo-domain-id: Specifies an IRF topo-domain ID in the range of 0 to 4294967295.
Usage guidelines
An IRF topo-domain ID uniquely identifies an IRF fabric.
You must assign the same topo-domain ID to devices you are adding to the same IRF fabric.
For the topo-domain ID change to take effect, you must reboot the device.
Examples
# Set the IRF topo-domain ID to 10.
<Sysname> system-view
[Sysname] irf topo-domain 10
The configuration will take effect at the next startup.
irf-optimize wlan reliable-access
Use irf-optimize wlan reliable-access to optimize IRF for reliable WLAN access.
Use undo irf-optimize wlan reliable-access to disable IRF optimization for WLAN access.
Syntax
irf-optimize wlan reliable-access
undo irf-optimize wlan reliable-access
Default
IRF optimization for WLAN access is enabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
Use this command to guarantee reliable AP and client access. This command accelerates IRF master election, new member joining, and IRF member role change to prevent IRF events from causing unstable AP or client access.
Examples
# Enable IRF optimization for reliable WLAN access.
<Sysname> system-view
[Sysname] irf-optimize wlan reliable-access
irf-port
Use irf-port to access IRF port view.
Syntax
irf-port member-id
Views
System view
Predefined user roles
network-admin
Parameters
member-id: Specifies the IRF port on a device by the device's IRF member ID.
Usage guidelines
Each member device has only one IRF port.
You must enter IRF port view to bind links to the IRF port.
Examples
# Enter IRF port view of the IRF port on member device 1.
<Sysname> system-view
[Sysname] irf-port 1
Related commands
port group interface
irf-port-configuration active
Use irf-port-configuration active to activate IRF port settings.
Syntax
irf-port-configuration active
Views
System view
Predefined user roles
network-admin
Usage guidelines
After you bind links to an IRF port, you must execute this command for the bindings to take effect. This command enables two devices to merge into one IRF fabric.
The system activates the IRF port settings automatically in the following situations:
· The configuration file that the device starts with contains IRF port bindings.
· You are binding links to an IRF port after an IRF fabric is formed.
Examples
To configure and activate IRF-port 1:
# Bind GigabitEthernet 1/0/1 to IRF-port 1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] shutdown
[Sysname-GigabitEthernet1/0/1] quit
[Sysname] irf-port 1
[Sysname-irf-port1] port group interface gigabitethernet 1/0/1
You must perform the following tasks for a successful IRF setup:
Save the configuration after completing IRF configuration.
Execute the \"irf-port-configuration active\" command to activate the IRF ports.
[Sysname-irf-port1] quit
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] undo shutdown
[Sysname-GigabitEthernet1/0/1] quit
# Save the configuration so the IRF port settings can take effect after the device reboots.
[Sysname] save
The current configuration will be written to the device. Are you sure? [Y/N]:y
Please input the file name(*.cfg)[cfa0:/startup.cfg]
(To leave the existing filename unchanged, press the enter key):
cfa0:/startup.cfg exists, overwrite? [Y/N]:y
Validating file. Please wait............................
Saved the current configuration to mainboard device successfully.
Slot 1:
Save next configuration file successfully.
Configuration is saved to device successfully.
# Activate the IRF port settings.
[Sysname] irf-port-configuration active
mad arp enable
Use mad arp enable to enable ARP MAD.
Use undo mad arp enable to disable ARP MAD.
Syntax
mad arp enable
undo mad arp enable
Default
ARP MAD is disabled.
Views
VLAN interface view
Predefined user roles
network-admin
Usage guidelines
Do not configure ARP MAD on VLAN-interface 1.
Do not configure ARP MAD together with LACP MAD, because they handle collisions differently.
If one IRF fabric uses another IRF fabric as the intermediate device for ARP MAD, you must assign the two IRF fabrics different MAD domain IDs for correct split detection. False detection causes IRF split.
When you use the mad arp enable command, the system prompts you to enter a MAD domain ID. If you do not want to change the current MAD domain ID, press enter at the prompt.
An IRF fabric has only one IRF MAD domain ID. You can change the IRF MAD domain ID by using the following commands: irf domain, mad enable, mad arp enable, or mad nd enable. The IRF MAD domain IDs configured by using these commands overwrite each other.
Examples
# Enable ARP MAD on VLAN-interface 3.
<Sysname> system-view
[Sysname] interface vlan-interface 3
[Sysname-Vlan-interface3] mad arp enable
You need to assign a domain ID (range: 0-4294967295)
[Current domain is: 0]: 1
The assigned domain ID is: 1
Related commands
irf domain
mad enable
Use mad enable to enable LACP MAD.
Use undo mad enable to disable LACP MAD.
Syntax
mad enable
undo mad enable
Default
LACP MAD is disabled.
Views
Aggregate interface view
Predefined user roles
network-admin
Usage guidelines
LACP MAD requires an H3C device that supports extended LACPDUs to act as the intermediate device. You must set up a dynamic link aggregation group that spans all IRF member devices between the IRF fabric and the intermediate device. To enable dynamic link aggregation, configure the link-aggregation mode dynamic command on the aggregate interface.
If one IRF fabric uses another IRF fabric as the intermediate device for LACP MAD, you must assign the two IRF fabrics different MAD domain IDs for correct split detection. False detection causes IRF split.
When you use the mad enable command, the system prompts you to enter a MAD domain ID. If you do not want to change the current MAD domain ID, press enter at the prompt.
An IRF fabric has only one IRF MAD domain ID. You can change the IRF MAD domain ID by using the irf domain, mad enable, mad arp enable, or mad nd enable command. The IRF MAD domain IDs configured by using the commands overwrite each other.
Examples
# Enable LACP MAD on Bridge-Aggregation 1, a Layer 2 dynamic aggregate interface.
<Sysname> system-view
[Sysname] interface bridge-aggregation 1
[Sysname-Bridge-Aggregation1] link-aggregation mode dynamic
[Sysname-Bridge-Aggregation1] mad enable
You need to assign a domain ID (range: 0-4294967295)
[Current domain is: 0]: 1
The assigned domain ID is: 1
MAD LACP only enable on dynamic aggregation interface.
Related commands
irf domain
mad exclude interface
Use mad exclude interface to exclude a network interface from being shut down when the IRF fabric transits to the Recovery state upon detection of a multi-active collision.
Use undo mad exclude interface to configure the IRF fabric to shut down a network interface when it transits to the Recovery state upon detection of a multi-active collision.
Syntax
mad exclude interface interface-type interface-number
undo mad exclude interface interface-type interface-number
Default
All network interfaces on a Recovery-state IRF fabric are shut down, except for the network interfaces bound to an IRF port.
Views
System view
Predefined user roles
network-admin
Parameters
interface-type interface-number: Specifies an interface by its type and number.
Usage guidelines
If an interface must be kept in up state for special purposes such as Telnet connection, exclude the interface from the shutdown action. As a best practice, do not exclude any interfaces except for the interfaces used for Telnet to avoid incorrect traffic forwarding. Do not exclude aggregate interfaces used for MAD and their member interfaces from the shutdown action.
The interfaces that have been shut down by MAD come up when the member devices reboot to join the recovered IRF fabric. If auto recovery fails because the current master fails or any other exception occurs, use the mad restore command to manually recover the member devices and bring up the interfaces.
Examples
# Exclude GigabitEthernet 1/0/1 from being shut down when the MAD status transits to Recovery.
<Sysname> system-view
[Sysname] mad exclude interface gigabitethernet 1/0/1
Related commands
mad restore
mad nd enable
Use mad nd enable to enable ND MAD.
Use undo mad nd enable to disable ND MAD.
Syntax
mad nd enable
undo mad nd enable
Default
ND MAD is disabled.
Views
VLAN interface view
Predefined user roles
network-admin
Usage guidelines
Do not configure ND MAD together with LACP MAD, because they handle collisions differently.
Do not configure ND MAD on VLAN-interface 1.
If one IRF fabric uses another IRF fabric as the intermediate device for ND MAD, you must assign the two IRF fabrics different MAD domain IDs for correct split detection. False detection causes IRF split.
When you use the mad nd enable command, the system prompts you to enter a MAD domain ID. If you do not want to change the current MAD domain ID, press enter at the prompt.
An IRF fabric has only one IRF MAD domain ID. You can change the IRF MAD domain ID by using the following commands: irf domain, mad enable, mad arp enable, or mad nd enable. The IRF MAD domain IDs configured by using these commands overwrite each other.
Examples
# Enable ND MAD on VLAN-interface 3.
<Sysname> system-view
[Sysname] interface vlan-interface 3
[Sysname-Vlan-interface3] mad nd enable
You need to assign a domain ID (range: 0-4294967295)
[Current domain is: 0]: 1
The assigned domain ID is: 1
Related commands
irf domain
mad restore
Use mad restore to restore the normal MAD state of the IRF fabric in Recovery state.
Syntax
mad restore
Views
System view
Predefined user roles
network-admin
Usage guidelines
If the active IRF fabric has failed to work before the IRF split problem is fixed, use this command to restore an IRF fabric in Recovery state. The recovered IRF fabric will take over the active IRF fabric role.
Examples
# Restore the normal MAD state of the IRF fabric in Recovery 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
Use port group interface to bind a network interface to an IRF port.
Use undo port group interface to remove the binding of a network interface and an IRF port.
Syntax
port group interface interface-type interface-number [ type { control | data } ]
undo port group interface interface-name
Default
No network interfaces are bound to an IRF port.
Views
IRF port view
Predefined user roles
network-admin
Parameters
interface-type interface-number: Specifies a network interface by its type and number.
interface-name: Specifies a network interface in the interface-typeinterface-number format. No space is allowed between the interface-type and interface-number arguments.
type: Specifies a channel type for the IRF link. The hybrid channel type applies if you do not specify a channel type. The link can forward both data and control packets.
· control: Sets the link type to control. The link can forward only control packets, such as IRF protocol packets.
· data: Sets the link type to data. The link can forward only data packets.
Usage guidelines
An IRF port must have a minimum of one hybrid channel, or a minimum of one data channel and one control channel.
As a best practice to prevent control traffic from being delayed when a large amount of data traffic is present, use separate physical links as data and control channels.
To change the channel type of an IRF link, you must first remove the binding, and then rebind the link.
Use the shutdown command to shut down a network interface before you bind it to or remove it from an IRF port. To bring up the network interface after a binding or binding removal operation, use the undo shutdown command.
The system does not dynamically remove IRF port bindings when IRF links are lost. To remove IRF port bindings, you must use the undo port group interface command.
For more information about IRF port binding requirements, see IRF Configuration Guide.
Examples
# Bind GigabitEthernet 1/0/1 as a hybrid channel to IRF-port 2 on IRF member 2.
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] shutdown
[Sysname-GigabitEthernet1/0/1] quit
[Sysname] irf-port 2
[Sysname-irf-port2] port group interface gigabitethernet 1/0/1
[Sysname-irf-port2] quit
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] undo shutdown
Related commands
display irf,1
display irf configuration,2
display irf forwarding,3
display irf link,4
display mad,5
irf auto-merge enable,6
irf auto-update enable,7
irf domain,8
irf mac-address persistent,8
irf member description,9
irf member priority,10
irf member renumber,10
irf member stack enable,11
irf topo-domain,12
irf-optimize wlan reliable-access,13
irf-port,14
irf-port-configuration active,14
mad arp enable,15
mad enable,16
mad exclude interface,17
mad nd enable,18
mad restore,18
port group interface,19