pex working-mode
Use pex working-mode to change the operating mode of PEXs to switch mode.
Use undo pex working-mode to restore the default.
Syntax
pex working-mode switch { all | chassis chassis-number slot slot-number1 [ to slot-number2 ] }
undo pex working-mode { all | chassis chassis-number slot slot-number1 [ to slot-number2 ] }
Default
PEXs in the eIRF system operate in PEX mode.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
switch: Specifies the switch mode.
all: Specifies all PEXs.
chassis chassis-number slot slot-number1 [ to slot-number2 ]: Specifies a PEX or a range of PEXs.
chassis chassis-number: Specifies a virtual chassis number.
slot slot-number1: Specifies a PEX in the virtual chassis.
to slot-number2: Specifies a range of PEXs in the virtual chassis. The slot-number1 argument represents the start PEX slot number. The slot-number2 argument represents the end PEX slot number. The value for the slot-number2 argument must be greater than or equal to the value for the slot-number1 argument.
Usage guidelines
This command is supported only in IRF mode.
This command does not change the current operating mode of specified PEXs. For the mode change to take effect, you must reboot the PEXs. After the PEXs reboot, you must save the configuration for the configuration to survive a reboot.
To cancel the switch mode setting, you must execute the undo form of the command. The undo configuration takes effect after the PEXs reboot.
If a specified PEX is not in the eIRF system when you change its mode, the mode change does not take effect. To change the operating mode of the PEX after it joins the eIRF system, you must execute this command again.
Examples
# Change the PEX in virtual chassis 100 to switch mode.
<Sysname> system-view [Sysname] pex working-mode switch chassis 100 slot 0 Are you sure you want to force a change to switch mode? In forced switch mode, the device can't change to PEX mode automatically. [Y/N]: y If you want to change parent device to PEX mode or change PEX device to switch mode, you must reboot the device.
Related commands
display pex working-mode