spx unit

Configures a reserved SPX unit or certain parameters on a live SPX unit.
Syntax
spx unit id
no spx unit id
Command Default

Without prior configuration, the SPX unit joins an SPX domain as a dynamic PE, and its dynamic configuration is lost when it leaves.

Parameters
id
Designates the PE unit to be configured.
Modes

CB configuration mode

PE configuration mode

Provisional-PE configuration mode

Usage Guidelines

The no form of the command removes a reserved SPX unit. It can be entered only from a CB unit. An error message is displayed if the no form of the command is entered for a live unit, and the command fails. As an exception, you can remove a live unit that is in a non-operational state due to configuration (module) mismatch. In this case, the CB can remove the configuration, learn the modules from the PE unit, and place it in a ready state.

A CB unit can configure an SPX unit with a unit number from 17 through 56. A PE or provisional PE can only configure unit 1 (itself) and does not have knowledge of its future ID number in the SPX domain.

These command can be configured under spx unit: spx-name, module, spx-port, spx-lag. On a PE or provisional PE, the module command cannot be configured.

If you configure parameters for a live SPX unit, the CB pushes the new configuration to the live unit immediately.

When you create a reserved SPX unit, you must configure modules for the unit. Modules can only be configured on a CB unit.

Examples

The following example creates a configuration for SPX unit 18 from a CB.

device# configure terminal
device(config)# spx unit 18
device(config-spx-unit-18)# spx-name bldg2-floor2-stk 18
device(config-spx-unit-18)# module 1 icx7450-48f-sf-port-management-module
device(config-spx-unit-18)# module 2 icx7400-xgf-4port-40g-module
device(config-spx-unit-18)# module 4 icx7400-qsfp-1port-40g-module

The following example configures an SPX port and an SPX LAG from a CB.

device# configure terminal
device(config)# spx unit 21
device(config-spx-unit-21)# spx-port 21/2/4
device(config-spx-unit-21)# spx-lag 21/1/10 to 21/1/11
device(config-spx-unit-21)# exit

The following example first shows a PE being created, with system-generated ports and module information. The SPX number is always 1 in PE or Provisional-PE configuration mode. SPX ports 1/2/1 and 1/2/3 are generated by the system in this case because there is a 4 X 10-Gbps module in slot 2. The example then shows a user modification to a LAG and an SPX port, still in Provisional-PE mode. As indicated in system messages, you should use the write memory command to save the configuration.

device(config)# spx pe-enable
Enter provisional PE mode. CLI is limited to spx unit 1.
After finishing all configuration, please "write memory" and reload this unit to be a PE.
[Provisional-PE]device(config)# show run
Current configuration:
!
ver 08.0.40b1T213
!
spx pe-enable
spx unit 1
  module 1 icx7450-48f-sf-port-management-module
  module 2 icx7400-xgf-4port-40g-module
  module 4 icx7400-qsfp-1port-40g-module
  spx-port 1/2/1
  spx-port 1/2/3
!
end

[Provisional-PE]device(config)# spx unit 1
[Provisional-PE]device(config-spx-unit-1)# spx-lag 1/2/1 to 1/2/2


spx-port 1/2/1 is replaced by spx-lag 1/2/1 to 1/2/2.
[Provisional-PE]device(config-spx-unit-1)# no spx-port 1/2/3
spx-port 1/2/3 is removed
[Provisional-PE]device(config-spx-unit-1)# spx-port 1/2/4
[Provisional-PE]device(config-spx-unit-1)# show run
Current configuration:
!
ver 08.0.40b1T213
!
spx pe-enable
spx unit 1
  module 1 icx7450-48f-sf-port-management-module
  module 2 icx7400-xgf-4port-40g-module
  module 4 icx7400-qsfp-1port-40g-module
  spx-lag 1/2/1 to 1/2/2
  spx-port 1/2/4
!
end
[Provisional-PE]device# write memory
Flash Memory Write (124 bytes)
[Provisional-PE]device#
Write PE startup file done.

[Provisional-PE]device# show configuration
Configuration in PE startup file:
!
ver 08.0.40b1T213
!
spx pe-enable
spx unit 1
  module 1 icx7450-48f-sf-port-management-module
  module 2 icx7400-xgf-4port-40g-module
  module 4 icx7400-qsfp-1port-40g-module
  spx-lag 1/2/1 to 1/2/2
  spx-port 1/2/4
!
[Provisional-PE]device# reload
History
Release version Command history
08.0.40 This command was introduced.