allocate interface
Use allocate interface to assign a physical interface to an MDC.
Use undo allocate interface to reclaim a physical interface assigned to an MDC.
Syntax
allocate interface interface-list
undo allocate interface interface-list
Default
All physical interfaces on the device belong to the default MDC. A non-default MDC cannot use any physical interfaces.
Views
MDC view
Predefined user roles
network-admin
mdc-admin
Parameters
interface-list: Specifies a space-separated list of up to 24 interface items. Each item specifies an interface by its type and number, or a range of interfaces in the form of interface-type start-interface-number to interface-type end-interface-number. The two interface-type arguments must have the same value. All interfaces in the range must be on the same LPU.
Usage guidelines
You can assign multiple physical interfaces to a non-default MDC. A physical interface must meet the following requirements to be assigned to a non-default MDC:
The interface is not the console port. The console port belongs to the default MDC. You cannot assign a console port to a non-default MDC.
The interface is not the management Ethernet interface. The physical management Ethernet interface of the device belongs to the default MDC and cannot be assigned to a non-default MDC. When a non-default MDC is created, the system automatically creates a virtual management Ethernet interface for the MDC. All virtual management Ethernet interfaces use the same interface number, physical port, and link as the physical management Ethernet interface. You can assign IP addresses to the virtual management Ethernet interfaces so MDC administrators can access and manage their respective MDCs. The IP addresses for virtual management Ethernet interfaces do not need to belong to the same network segment.
The interface belongs to the default MDC. To assign a physical interface that belongs to one non-default MDC to another non-default MDC, you must remove the existing assignment by using the undo allocate interface command.
The LPU where the interface resides is not assigned to any MDC.
When you assign physical interfaces and LPUs to MDCs, follow these guidelines:
For an MDC to use a physical interface, you must perform the following tasks:
Assign the physical interface to the MDC.
Authorize the MDC to use the LPU where the physical interface resides.
Interfaces on LPUs are grouped. The interfaces in a group must be assigned to or removed from the same MDC at the same time. Different groups of interfaces on an LPU can be assigned to different MDCs. For interface grouping information, see Table 43.
Table 43: Interface grouping on LPUs
LPU type
Interface grouping
LSV1QGS12SA1
LSVM1QGS12FX1
Each LPU has two groups. The first six interfaces belong to one group, and the remaining interfaces belong to the other group.
LSVM1TGS24FX1
Each LPU has one group. All interfaces on the LPU belong to the group.
LSVM1QGS6C2FX1
Each LPU has two groups. The first four interfaces belong to one group, and the remaining interfaces belong to the other group.
A physical interface can be assigned to only one MDC.
Assigning or reclaiming a physical interface restores the settings of the interface to the defaults. If the MDC administrator configures the interface during the assigning or reclaiming operation, settings made before the operation is completed are lost.
To configure parameters for a physical interface that has been assigned to an MDC, you must log in to the MDC.
To use the shutdown command to shut down the management Ethernet interface, you must be on the default MDC.
When you assign physical interfaces and LPUs to MDCs on an IRF fabric, also follow these guidelines:
To remove an LPU that holds the IRF physical interface of a non-default MDC, first complete the following tasks:
Remove the IRF physical interface configuration for the LPU.
Use the save command to save the running configuration.
IRF links can belong to the default MDC or non-default MDCs. As a best practice for link availability, establish a minimum of two IRF links by using different LPUs. An IRF link can belong to one or more MDCs. The two IRF physical interfaces of an IRF link can belong to the same MDC or different MDCs.
To assign an IRF physical interface to an MDC or reclaim an IRF physical interface from an MDC, complete the following tasks:
Use the shutdown command to shut down the interface.
Use the undo port group interface command to remove the binding of the physical interface to the IRF port. For more information about the undo port group interface command, see Virtual Technologies Command Reference.
Assign or reclaim the IRF physical interface.
Use the save command to save the running configuration.
The IRF link is closed.
Assigning an IRF physical interface to or reclaiming an IRF physical interface from an MDC causes the following problems:
The IRF configuration on the interface is lost.
The IRF link is closed.
To avoid IRF fabric split, make sure each member device always has a minimum of one IRF link in up state.
Examples
# Assign FortyGigE 1/0/1 through FortyGigE 1/0/6 to MDC sub1.
<Sysname> system-view [Sysname] mdc sub1 [Sysname-mdc-2-sub1] allocate interface fortygige 1/0/1 to fortygige 1/0/6 Configuration of the interfaces will be lost. Continue? [Y/N]:y Execute the location slot command in this view to make the configuration take effect.