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.

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