Fast forwarding commands -- display ip fast-forwarding aging-time

Use display ip fast-forwarding aging-time to display the aging time of fast forwarding entries.

Syntax

display ip fast-forwarding aging-time

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Examples

# Display the aging time of fast forwarding entries.

<Sysname> display ip fast-forwarding aging-time

Aging time: 30s

Related commands

ip fast-forwarding aging-time

Fast forwarding commands -- display ip fast-forwarding cache

Use display ip fast-forwarding cache to display fast forwarding entries.

Syntax

Centralized devices:

display ip fast-forwarding cache [ ip-address ]

Distributed devices in standalone mode:Centralized IRF devices:

display ip fast-forwarding cache [ ip-address ] [ slot slot-number [ cpu cpu-number ] ]

Distributed devices in IRF mode:

display ip fast-forwarding cache [ ip-address ] [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

ip-address: Specifies an IP address. If you do not specify an IP address, this command displays all fast forwarding entries.

slot slot-number: Specifies a card by the slot number. If you do not specify a card, this command displays fast forwarding entries for all cards. (Distributed devices in standalone mode.)

slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command displays fast forwarding entries for all member devices. (Centralized IRF devices.) (IRF 3 incapable.)

slot slot-number: Specifies an IRF member device by its member ID or specifies a PEX by its virtual slot number. On an IRF fabric, this command displays fast forwarding entries for all member devices if you do not specify a member device. On an IRF 3 system, this command displays fast forwarding entries for all IRF member devices and PEXs if you do not specify an IRF member device or PEX. (Centralized IRF devices.) (IRF 3 capable.)

chassis chassis-number slot slot-number: Specifies a card in an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number represents the slot number of the card. If you do not specify a card, this command displays fast forwarding entries for all cards.(Distributed devices in IRF mode.) (IRF 3 incapable.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device or specifies a PEX. The chassis-number argument represents the member ID of the IRF member device or the virtual chassis number of the PEX. The slot-number argument represents the slot number of the card or PEX. On an IRF fabric, this command displays fast forwarding entries for all cards if you do not specify a card. On an IRF 3 system, this command displays fast forwarding entries for all cards and PEXs if you do not specify a card or PEX. (Distributed devices in IRF mode.) (IRF 3 capable.)

cpu cpu-number: Specifies a CPU by its number. This option is available only if multiple CPUs are available on the specified slot.

Examples

# Display all fast forwarding entries.

<Sysname> display ip fast-forwarding cache

Total number of fast-forwarding entries: 1

SIP SPort DIP DPort Pro Input_If Output_If Flg

7.0.0.13 68 8.0.0.1 67 17 GE1/0/3 GE1/0/1 5

Table 1 Command output

Field | Description
SIP | Source IP address.
SPort | Source port number.
DIP | Destination IP address.
DPort | Destination port number.
Pro | Protocol number.
Input_If | Input interface type and number. If no interface is involved in fast forwarding, this field displays N/A. If the input interface does not exist, this field displays a hyphen (-).
Output_If | Output interface type and number. If no interface is involved in fast forwarding, this field displays N/A. If the output interface does not exist, this field displays a hyphen (-).
Flg | Internal tag, marking internal operation information, such as fragmentation.

Related commands

reset ip fast-forwarding cache

Fast forwarding commands -- display ip fast-forwarding fragcache

Use display ip fast-forwarding fragcache to display fast forwarding entries for fragmented packets.

Syntax

Centralized devices:

display ip fast-forwarding fragcache [ ip-address ]

Distributed devices in standalone mode:Centralized IRF devices:

display ip fast-forwarding fragcache [ ip-address ] [ slot slot-number [ cpu cpu-number ] ]

Distributed devices in IRF mode:

display ip fast-forwarding fragcache [ ip-address ] [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

ip-address: Specifies an IP address. If you do not specify an IP address, this command displays fast forwarding entries for all fragmented packets.

slot slot-number: Specifies a card by the slot number. If you do not specify a card, this command displays fast forwarding entries for fragmented packets on all cards. (Distributed devices in standalone mode.)

slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command displays fast forwarding entries for fragmented packets on all member devices. (Centralized IRF devices.) (IRF 3 incapable.)

slot slot-number: Specifies an IRF member device by its member ID or specifies a PEX by its virtual slot number. On an IRF fabric, this command displays fast forwarding entries for fragmented packets on all member devices if you do not specify a member device. On an IRF 3 system, this command displays entries for fragmented packets on all IRF member devices and PEXs if you do not specify an IRF member device or PEX. (Centralized IRF devices.) (IRF 3 capable.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number represents the slot number of the card. If you do not specify a card, this command displays fast forwarding entries for fragmented packets on all cards. (Distributed devices in IRF mode.) (IRF 3 incapable.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device or specifies a PEX. The chassis-number argument represents the member ID of the IRF member device or the virtual chassis number of the PEX. The slot-number argument represents the slot number of the card or PEX. On an IRF fabric, this command displays fast forwarding entries for fragmented packets on all cards if you do not specify a card. On an IRF 3 system, this command displays fast forwarding entries for fragmented packets on all cards and PEXs if you do not specify a card or PEX. (Distributed devices in IRF mode.) (IRF 3 capable.)

cpu cpu-number: Specifies a CPU by its number. This option is available only if multiple CPUs are available on the specified slot.

Examples

# Display fast forwarding entries about all fragmented packets.

<Sysname> display ip fast-forwarding fragcache

Total number of fragment fast-forwarding entries: 1

SIP SPort DIP DPort Pro Input_If ID

7.0.0.13 68 8.0.0.1 67 17 GE1/0/3 2

Table 2 Command output

Field | Description
SIP | Source IP address.
SPort | Source port number.
DIP | Destination IP address.
DPort | Destination port number.
Pro | Protocol number.
Input_If | Input interface type and number. If no interface is involved in fast forwarding, this field displays N/A. If the input interface does not exist, this field displays a hyphen (-).
ID | Fragment ID.

Related commands

reset ip fast-forwarding cache

Fast forwarding commands -- ip fast-forwarding aging-time

Use ip fast-forwarding aging-time to configure the aging time for fast forwarding entries.

Use undo ip fast-forwarding aging-time to restore the default.

Syntax

ip fast-forwarding aging-time aging-time

undo ip fast-forwarding aging-time

Default

The aging time is 30 seconds.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

aging-time: Specifies the aging time in the range of 10 to 300 seconds.

Examples

# Set the aging time to 20 seconds for fast forwarding entries.

<Sysname> system-view

[Sysname] ip fast-forwarding aging-time 20

Related commands

display ip fast-forwarding aging-time

Fast forwarding commands -- ip fast-forwarding load-sharing

Use ip fast-forwarding load-sharing to enable fast forwarding load sharing.

Use undo ip fast-forwarding load-sharing to disable fast forwarding load sharing.

Syntax

ip fast-forwarding load-sharing

undo ip fast-forwarding load-sharing

Default

Fast forwarding load sharing is enabled.

Views

System view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

Fast forwarding load sharing enables the device to load share packets of the same flow. This feature identifies a data flow by using the five-tuple (source IP, source port, destination IP, destination port, and protocol).

If fast forwarding load sharing is disabled, the device identifies a data flow by the five-tuple and the input interface. No load sharing is implemented.

Examples

# Enable fast forwarding load sharing.

<Sysname> system-Views

[Sysname] ip fast-forwarding load-sharing

Fast forwarding commands -- reset ip fast-forwarding cache

Use reset ip fast-forwarding cache to clear the fast forwarding table.

Syntax

Centralized devices:

reset ip fast-forwarding cache

Distributed devices in standalone mode:Centralized IRF devices:

reset ip fast-forwarding cache [ slot slot-number [ cpu cpu-number ] ]

Distributed devices in IRF mode:

reset ip fast-forwarding cache [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Views

User view

Predefined use roles

network-admin

mdc-admin

Parameters

slot slot-number: Specifies a card by the slot number. If you do not specify a card, this command clears the fast forwarding table for all cards. (Distributed devices in standalone mode.)

slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command clears the fast forwarding table for all member devices. (Centralized IRF devices.) (IRF 3 incapable.)

slot slot-number: Specifies an IRF member device by its member ID or specifies a PEX by its virtual slot number. On an IRF fabric, this command clears the fast forwarding table for all member devices if you do not specify a member device. On an IRF 3 system, this command clears the fast forwarding table for all IRF member devices and PEXs if you do not specify an IRF member device or PEX. (Centralized IRF devices.) (IRF 3 capable.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify a card, this command clears the fast forwarding table for all cards. (Distributed devices in IRF mode.) (IRF 3 incapable.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device or specifies a PEX. The chassis-number argument represents the member ID of the IRF member device or the virtual chassis number of the PEX. The slot-number argument represents the slot number of the card or PEX. On an IRF fabric, this command clears the fast forwarding table for all cards if you do not specify a card. On an IRF 3 system, this command clears the fast forwarding table for all cards and PEXs if you do not specify a card or PEX. (Distributed devices in IRF mode.) (IRF 3 capable.)

cpu cpu-number: Specifies a CPU by its number. This option is available only if multiple CPUs are available on the specified slot.

Examples

# Clear the fast forwarding table.

<Sysname> reset ip fast-forwarding cache

Related commands

display ip fast-forwarding cache

display ip fast-forwarding fragcache