< Home

assign resource-mode

Function

The assign resource-mode command configures the resource allocation mode of the device.

The undo assign resource-mode command restores the default resource allocation mode of the device.

By default, the resource allocation mode of the S5720-EI is enhanced-mac and that of the S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S5731-S, S5731S-S, S6730-S, S6730S-S, S6730-H, S6730S-H, S6720-HI, S6720-EI, and S6720S-EI is enhanced-arp.

Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S5731-S, S5731S-S, S6730-S, S6730S-S, S6730-H, S6730S-H, S6720-HI, S6720-EI and S6720S-EI support this command.

Format

assign resource-mode { enhanced-mac | enhanced-ipv4 | enhanced-ipv6 } [ slot slot-id | all ] (S5720-EI)

assign resource-mode { enhanced-mac | enhanced-arp | enhanced-ipv4 | ipv4-ipv6 6:1 | super-arp } [ slot slot-id | all ] (S6720-EI and S6720S-EI)

assign resource-mode { enhanced-mac | enhanced-arp | enhanced-ipv4 | enhanced-ipv6 | limiting-mac | eca | sac } [ slot slot-id | all ] (S6720-HI)

assign resource-mode { enhanced-arp | eca } [ slot slot-id | all ] (S5720-HI)

assign resource-mode { enhanced-arp | eca | sac } [ slot slot-id | all ] (S5730-HI, S5731-H, S5731S-H, S5731-S, and S5731S-S)

assign resource-mode { enhanced-arp | sac } [ slot slot-id | all ] (S6730-S, S6730S-S, and S5732-H)

assign resource-mode { enhanced-mac | enhanced-arp | enhanced-fib | sac } [ slot slot-id | all ] (S6730-H, and S6730S-H)

undo assign resource-mode [ slot slot-id | all ]

Parameters

Parameter

Description

Value

enhanced-mac

Sets the resource allocation mode to enhanced-mac.

-

enhanced-ipv4

Sets the resource allocation mode to enhanced-ipv4.

-

enhanced-ipv6

Sets the resource allocation mode to enhanced-ipv6.

-

enhanced-arp

Sets the resource allocation mode to enhanced-arp.

-

enhanced-fib

Sets the resource allocation mode to enhanced-fib.

-

ipv4-ipv6 6:1

Sets the resource allocation mode to ipv4-ipv6 6:1.

-

super-arp

Sets the resource allocation mode to super-arp.

-

limiting-mac

Sets the resource allocation mode to limiting-mac.

-

eca

Sets the resource allocation mode to eca.

-

sac

Sets the resource allocation mode to sac.

-

slot slot-id

  • Specifies a slot ID on a standalone switch where stacking is not enabled.
  • Specifies a stack ID in a stack.

In a stack, the value is an integer and must be set according to the configuration in the stack. On a standalone switch where stacking is not enabled, the default value is 0.

all

Configures the resource allocation mode of the system.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If a device's MAC address entries, FIB entries, or ARP entries are insufficient to meet service requirements, you can use this command to change the resource allocation mode so as to extend the entry space.

On the S5720-HI, when the resource allocation mode is set to eca, the specifications of MAC, FIB, ARP, ND, and multicast entries will not be modified, and only the counter specifications of ACL resources will decrease from 65536 (64K) to 49152 (48K). To view the counter specifications of ACL resources, run the display acl resource command.

On the S5730-HI, S5731-H, S5731S-H, S5731-S, S5731S-S, when the resource allocation mode is set to eca or sac, the specifications of MAC, FIB, ARP, ND, and multicast entries will not be modified. For the S5730-HI, S5731-H, S5731S-H, S5731-S, S5731S-S, when the resource allocation mode is set to sac, NetStream aggregation flows will not be supported.

On the S6730-S and S6730S-S, when the resource allocation mode is set to sac, the specifications of MAC, FIB, ARP, ND, and multicast entries will not be modified.

On the S6720-HI, when the resource allocation mode is set to eca, the specifications of MAC, FIB, ARP, ND, and multicast entries will be modified, and the counter specifications of ACL resources will decrease from 65536 (64K) to 49152 (48K). To view the counter specifications of ACL resources, run the display acl resource command.

Precautions
  • The configured resource allocation mode takes effect only after the device is restarted. To view the resource allocation modes that take effect currently and take effect after the device restarts, run the display resource-mode configuration command.
  • The requirements for different entry spaces will change when service configuration is adjusted. In this case, you can change the resource allocation mode to meet the new service requirements. Subsequently, entry spaces in different resource allocation modes will change. Therefore, before changing the resource allocation mode, consider the benefit and loss that the new mode will bring.
  • In versions earlier than V200R012C00, the resource allocation mode used by the device is recorded in only the flash memory but not the configuration file. In V200R012C00 and later versions, the resource allocation mode used by the device is recorded in both the flash memory and configuration file. If the resource allocation mode used by the device is not the default mode, and the save command is executed to save the configuration after the device is upgraded to V200R012C00 or later, the corresponding configuration is added to the configuration file.

When the resource allocation mode of the following models is changed, the specifications of MAC, FIB, ARP, ND, or multicast entries will be modified.

Table 1 Number of entries supported in different resource allocation modes on the S5720-EI

Resource Allocation Mode

MAC

IPv4 FIB

IPv6 FIB (0-64 Bits Mask)

IPv6 FIB (Over 64 Bits Mask)

ARP

ND

Multicast IPv4

Multicast IPv6

Number of NAC Users

enhanced-mac (default)

64K

12K

6K (shared with IPv4 FIB)

1K

16K

8K (shared with ARP)

4000

2000 (shared with Multicast IPv4)

2K

enhanced-ipv4

32K

16K

8K (shared with IPv4 FIB)

0K

16K

8K (shared with ARP)

4000

2000 (shared with Multicast IPv4)

2K

enhanced-ipv6

32K

8K

4K (shared with IPv4 FIB)

2K

16K

8K (shared with ARP)

4000

2000 (shared with Multicast IPv4)

2K

  • On the S5720-EI, IPv4 FIB and IPv6 FIB (0-64 bits mask) share hardware resources. The specifications listed in the preceding table indicate the maximum number of FIB entries of a single type. Numbers of the two types of FIB entries cannot reach the maximum value simultaneously.
  • On the S5720-EI, ARP and ND share hardware resources. The value listed in the preceding table indicates the maximum number of entries of a single type. Numbers of the two types of entries cannot reach the maximum value simultaneously.
Table 2 Number of entries supported in different resource allocation modes on the S5732-H

Resource Allocation Mode

MAC

IPv4 FIB

IPv6 FIB

ARP

ND

Multicast IPv4

Multicast IPv6

Number of NAC Users

enhanced-arp (default)

128K

192K (shared)

80K (shared)

140K (shared)

80K (shared)

64K-1 (shared)

4K

16K

sac

96K

192K (shared)

80K (shared)

96K (shared)

80K (shared)

64K-1 (shared)

4K

16K

On the S5732-H, IPv4 FIB, IPv6 FIB, ARP, ND, and Multicast IPv4 share hardware resources. The specifications listed in the preceding table indicate the maximum number of entries of a single type and cannot reach the maximum value simultaneously.

Table 3 Number of entries supported in different resource allocation modes on the S6720-EI and S6720S-EI

Resource Allocation Mode

MAC

IPv4 FIB

IPv6 FIB (0-64 Bits Mask)

IPv6 FIB (Over 64 Bits Mask)

ARP

ND

Multicast IPv4&IPv6

Number of NAC Users

enhanced-arp (default)

160K

12K

6K (shared with IPv4 FIB)

1K

48K

44K (shared with ARP)

4000

2K

enhanced-mac

288K

12K

6K (shared with IPv4 FIB)

1K

16K

8K (shared with ARP)

4000

2K

enhanced-ipv4

32K

256000

128K (shared with IPv4 FIB)

0K

16K

8K (shared with ARP)

4000

2K

ipv4-ipv6 6:1

32K

64K

10K

10K

16K

8K (shared with ARP)

4000

2K

super-arp

96K

12K

6K (shared with IPv4 FIB)

1K

128K

48K (shared with ARP)

4000

2K

  • On the S6720-EI and S6720S-EI, ARP and ND share hardware resources. The value listed in the preceding table indicates the maximum number of entries of a single type. Numbers of the two types of entries cannot reach the maximum value simultaneously.
  • When the S6720-EI and S6720S-EI work in enhanced-arp, enhanced-mac, enhanced-ipv4, or super-arp mode, IPv4 FIB and IPv6 FIB (0-64 bits mask) share hardware resources. The value listed in the preceding table indicates the maximum number of FIB entries of a single type. Numbers of the two types of FIB entries cannot reach the maximum value simultaneously.
  • When the S6720-EI and S6720S-EI work in ipv4-ipv6 6:1 mode, IPv6 FIB (0-64 bits mask) and IPv6 FIB (over 64 bits mask) share hardware resources. The value listed in the preceding table indicates the maximum number of FIB entries of a single type. Numbers of the two types of FIB entries cannot reach the maximum value simultaneously.
  • On the S6720-EI and S6720S-EI, if the assign resource-mode command sets the resource allocation mode to enhanced-ipv4 or ipv4-ipv6 6:1, and the ipv4 destination-unreachable drop or ipv6 destination-unreachable drop command has been executed, the function that dropping the packets that do not match routing entries does not take effect.
  • On the S6720-EI and S6720S-EI, redirection to a low-priority next hop is not supported in enhanced-ipv4 or ipv4-ipv6 6:1 resource allocation mode.
  • On the S6720-EI and S6720S-EI, MPLS and Layer 3 VXLAN Gateway are not supported in super-arp resource allocation mode.
Table 4 Number of entries supported in different resource allocation modes on the S6720-HI

Resource Allocation Mode

MAC

IPv4 FIB

IPv6 FIB

ARP

ND

Multicast IPv4

Multicast IPv6

Number of NAC Users

enhanced-arp (default)

64K

55K (shared)

22K (shared)

55K (shared )

22K (shared )

32K-1 (shared )

2K

10000

enhanced-mac

128K

16K

8K

16K (shared with FIBv4)

8K (shared with FIBv6)

4K

4K

8K

enhanced-ipv4

16K

128K

4K

16K (shared with FIBv4)

4K (shared with FIBv6)

4K

4K

8K

enhanced-ipv6

16K

8K

32K

8K (shared with FIBv4)

32K (shared with FIBv6)

4K

4K

8K

limiting-mac

256000

512 (shared with FIBv6/ND/ARP)

32 (shared with FIBv4/ND/ARP)

512 (shared with FIBv4/FIBv6/ND)

32 (shared with FIBv4/FIBv6/ARP)

256

32

0

eca and sac

32K

32K (Min. 8K, shared with others)

11K (Min. 2K, shared with others)

32K (shared with FIBv4)

11K (shared with FIBv6)

16K-1 (Min. 2K, shared with others)

2K

8K

On the S6720-HI, the value listed in the preceding table indicates the maximum number of entries of a single type. Numbers of the two types of entries cannot reach the maximum value simultaneously. For example, ARP and FIBv4 share hardware resources, while ND and FIBv6 share hardware resources.

After the resource mode is set to limiting-mac on the S6720-HI, the S6720-HI cannot function as an authentication point for user access.

On the S6720-HI, the specifications in eca and sac mode are the same.

Table 5 Number of entries supported in different resource allocation modes on the S6730-H, and S6730S-H

Resource Allocation Mode

MAC

IPv4 FIB

IPv6 FIB

ARP

ND

Multicast IPv4

Multicast IPv6

Number of NAC Users

enhanced-arp (default)

128K

192K (shared)

80K (shared)

140K (shared)

80K (shared)

64K-1 (shared)

4K

10000

enhanced-mac

384K

32K

8K

32K (shared with FIBv4)

8K (shared with FIBv6)

4K

4K

8K

enhanced-fib

32K

256K (shared)

80K (shared)

128K (shared)

80K (shared)

4K

4K

8K

sac

96K

192K (shared)

80K (shared)

96K (shared)

80K (shared)

64K-1 (shared)

4K

8K

On the S6730-H, and S6730S-H, the value listed in the preceding table indicates the maximum number of entries of a single type. Numbers of the two types of entries cannot reach the maximum value simultaneously. For example, ARP and FIBv4 share hardware resources, while ND and FIBv6 share hardware resources.

Example

# Set the resource allocation mode to enhanced-ipv4.

<HUAWEI> system-view
[HUAWEI] assign resource-mode enhanced-ipv4
Info: It is executing, please wait...                                                                                               
Info: The resource mode in slot 0 has been set to enhanced-ipv4 successfully.                                                       
Warning: It will take effect after rebooting this device.   
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >