Multi-CPU packet distribution commands -- forwarding policy

Use forwarding policy to specify a multi-CPU packet distribution policy.

Use undo forwarding policy to restore the default.

Syntax

forwarding policy { per-flow | per-packet }

undo forwarding policy

Default

The flow-based policy is used globally.

An interface uses the global packet distribution policy.

Views

System view

Interface view

Predefined user roles

network-admin

mdc-admin

Parameters

per-flow: Specifies the flow-based forwarding. The device forwards packets of the same flow to the same CPU. This policy takes the first-in first-out rule.

per-packet: Specifies the packet-based forwarding. The device forwards packets in sequence to different CPUs. This policy does not ensure packet order.

Examples

# Specify the packet-based policy globally.

<Sysname> system-view

[Sysname] forwarding policy per-packet

# Specify the flow-based policy globally.

<Sysname> system-view

[Sysname] forwarding policy per-flow

# Specify the packet-based policy on GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] forwarding policy per-packet

# Specify the flow-based policy on GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] forwarding policy per-flow