Layer 2 forwarding commands -- Normal Layer 2 forwarding commands -- display mac-forwarding statistics

Use display mac-forwarding statistics to display Layer 2 forwarding statistics.

Syntax

display mac-forwarding statistics [ interface interface-type interface-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

interface interface-type interface-number: Specifies an interface by its type and number. If you do not specify this option, the command displays Layer 2 forwarding statistics on all interfaces.

Examples

# Display Layer 2 forwarding statistics on all interfaces.

<Sysname> display mac-forwarding statistics

Input:

Sum: 888 Unknown Unicast: 0

Broadcast: 0 Multicast: 0

Filtered: 0 STP discarded: 0

Service dropped: 0 Source dropped: 0

Unknown dropped: 0 Learning dropped: 0

Attack dropped: 0 Suppress dropped: 0

Deliver:

Sum: 111 L2 protocol: 11

Local MAC address: 100

Output:

Sum: 666 Filtered: 0

Blackhole dropped: 0 STP discarded: 0

Service dropped: 0 Dest MAC dropped: 0

# Display Layer 2 forwarding statistics on GigabitEthernet 1/0/1.

<Sysname> display mac-forwarding statistics interface gigabitethernet 1/0/1

GigabitEthernet1/0/1:

Input frames: 100 Output frames:100

Filtered: 0

Table 1 Command output

Field | Description
Input | Inbound Ethernet frame statistics. · Sum—Total number of received Ethernet frames. · Filtered—Number of Ethernet frames filtered out by 802.1Q VLAN inbound filtering rules. · STP discarded—Number of inbound Ethernet frames dropped on the ports blocked by STP. · Service dropped—Number of Ethernet frames dropped by inbound service features. · Source dropped—Number of Ethernet frames dropped because their source MAC addresses are all-zeros, multicast, or broadcast MAC addresses. · Unknown dropped—Number of Ethernet frames dropped because the device is disabled from forwarding frames with unknown source MAC addresses. · Learning dropped—Number of Ethernet frames dropped because the device is disabled from forwarding unknown frames after the number of learned MAC addresses reaches the upper limit. · Attack dropped—Number of attack Ethernet frames dropped by features based on the source MAC addresses. · Suppress dropped—Number of Ethernet frames dropped by storm suppression. · Broadcast—Number of received broadcast Ethernet frames. · Multicast—Number of received multicast Ethernet frames. · Unknown unicast—Number of received unknown unicast Ethernet frames.
Deliver | Statistics of Ethernet frames delivered to the CPU. · Sum—Total number of Ethernet frames delivered to the CPU. · L2 protocol—Number of Layer 2 protocol Ethernet frames delivered to the CPU. · Local MAC address—Number of Ethernet frames that use the MAC addresses of local Layer 3 VLAN interfaces as the destination MAC addresses.
Output | Outbound Ethernet frame statistics. · Sum—Total number of sent Ethernet frames. · Filtered—Number of Ethernet frames filtered out by 802.1Q VLAN outbound filtering rules. · Blackhole dropped—Number of Ethernet frames dropped because they are destined for blackhole MAC addresses. · STP discarded—Number of outbound Ethernet frames dropped on the ports blocked by STP. · Service dropped—Number of Ethernet frames dropped by outbound service features. · Dest MAC dropped—Number of Ethernet frames dropped by features based on the destination MAC addresses.
GigabitEthernet1/0/1 | Layer 2 forwarding statistics on GigabitEthernet 1/0/1: · Input frames—Number of Ethernet frames received on the interface. · Output frames—Number of Ethernet frames sent out of the interface. · Filtered—Number of Ethernet frames filtered out because they are from other VLANs.

Layer 2 forwarding commands -- Normal Layer 2 forwarding commands -- reset mac-forwarding statistics

Use reset mac-forwarding statistics to clear Layer 2 forwarding statistics.

Syntax

reset mac-forwarding statistics

Views

User view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Examples

# Clear Layer 2 forwarding statistics.

<Sysname> reset mac-forwarding statistics

Layer 2 forwarding commands -- Fast Layer 2 forwarding commands -- display mac-forwarding cache ip

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

Syntax

Centralized devices:

display mac-forwarding cache ip [ ip-address ]

Distributed devices in standalone mode:Centralized IRF devices:

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

Distributed devices in IRF mode:

display mac-forwarding cache ip [ 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 IPv4 address. If you do not specify an IPv4 address, this command displays all IPv4 fast forwarding entries.

slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays IPv4 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 IPv4 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 IPv4 fast forwarding entries for all member devices if you do not specify a member device. On an IRF 3 system, this command displays IPv4 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 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 displays IPv4 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 IPv4 fast forwarding entries for all cards if you do not specify a card. On an IRF 3 system, this command displays IPv4 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 IPv4 fast forwarding entries.

<Sysname> display mac-forwarding cache ip

Total number of mac-forwarding entries: 2

SIP SPort DIP DPort Pro Input_If Output_If VLAN

1.1.1.2 99 1.1.1.1 2048 1 GE1/0/1 GE1/0/2 2

1.1.1.1 98 1.1.1.2 2012 1 GE1/0/2 GE1/0/1 2

Table 2 Command output

Field | Description
Total number of mac-forwarding entries | Total number of IPv4 fast forwarding entries.
SIP | Source IPv4 address.
SPort | Source port number.
DIP | Destination IPv4 address.
DPort | Destination port number.
Pro | Protocol number.
Input_If | Input interface type and number. If no input interface is involved in fast forwarding, this field displays N/A. If no input interface is available, this field displays a hyphen (-).
Output_If | Output interface type and number. If no output interface is involved in fast forwarding, this field displays N/A. If no output interface is available, this field displays a hyphen (-).
VLAN | VLAN ID.

Layer 2 forwarding commands -- Fast Layer 2 forwarding commands -- display mac-forwarding cache ip fragment

Use display mac-forwarding cache ip fragment to display IPv4 fast forwarding entries for fragments.

Syntax

Centralized devices:

display mac-forwarding cache ip fragment [ ip-address ]

Distributed devices in standalone mode:Centralized IRF devices:

display mac-forwarding cache ip fragment [ ip-address ] [ slot slot-number [ cpu cpu-number ] ]

Distributed devices in IRF mode:

display mac-forwarding cache ip fragment [ 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 IPv4 address. If you do not specify an IPv4 address, this command displays IPv4 fast forwarding entries for all fragments.

slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays IPv4 fast forwarding entries for fragments 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 IPv4 fast forwarding entries for fragments 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 IPv4 fast forwarding entries for fragments on all member devices if you do not specify a member device. On an IRF 3 system, this command displays IPv4 fast forwarding entries for fragments 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 argument represents the slot number of the card. If you do not specify a card, this command displays IPv4 fast forwarding entries for fragments 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 IPv4 fast forwarding entries for fragments on all cards if you do not specify a card. On an IRF 3 system, this command displays IPv4 fast forwarding entries for fragments 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 IPv4 fast forwarding entries for all fragments.

<Sysname> display mac-forwarding cache ip fragment

Total number of fragment mac-forwarding entries: 2

SIP SPort DIP DPort Pro Input_If ID VLAN

1.1.1.1 117 1.1.1.2 0 1 GE1/0/1 2828 1

1.1.1.2 110 1.1.1.1 67 17 GE1/0/2 2322 1

Table 3 Command output

Field | Description
Total number of fragment mac-forwarding entries | Total number of IPv4 fast forwarding entries for fragments.
SIP | Source IPv4 address.
SPort | Source port number.
DIP | Destination IPv4 address.
DPort | Destination port number.
Pro | Protocol number.
Input_If | Input interface type and number. If no input interface is involved in fast forwarding, this field displays N/A. If no input interface is available, this field displays a hyphen (-).
ID | Fragment ID.
VLAN | VLAN ID.

Layer 2 forwarding commands -- Fast Layer 2 forwarding commands -- display mac-forwarding cache ipv6

Use display mac-forwarding cache ipv6 to display IPv6 fast forwarding entries.

Syntax

Centralized devices:

display mac-forwarding cache ipv6 [ ipv6-address ]

Distributed devices in standalone mode:Centralized IRF devices:

display mac-forwarding cache ipv6 [ ipv6-address ] [ slot slot-number [ cpu cpu-number ] ]

Distributed devices in IRF mode:

display mac-forwarding cache ipv6 [ ipv6-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

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

slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays IPv6 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 IPv6 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 IPv6 fast forwarding entries for all member devices if you do not specify a member device. On an IRF 3 system, this command displays IPv6 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 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 displays IPv6 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 IPv6 fast forwarding entries for all cards if you do not specify a card. On an IRF 3 system, this command displays IPv6 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 IPv6 fast forwarding entries.

<Sysname> display mac-forwarding cache ipv6

Total number of IPv6 mac-forwarding items: 1

Src IP: 2002::1 Src port: 129

Dst IP: 2001::1 Dst port: 65535

VLAN ID: 2

Protocol: 2

Input interface: GE1/0/2

Output interface: GE1/0/1

Table 4 Command output

Field | Description
Total number of IPv6 mac-forwarding items | Total number of IPv6 fast forwarding entries.
Src IP | Source IPv6 address.
Src port | Source port number.
Dst IP | Destination IPv6 address.
Dst Port | Destination port number.
Protocol | Protocol number.
Input interface | Input interface type and number. If no input interface is involved in fast forwarding, this field displays N/A. If no input interface is available, this field displays a hyphen (-).
Output interface | Output interface type and number. If no output interface is involved in fast forwarding, this field displays N/A. If no output interface is available, this field displays a hyphen (-).

Layer 2 forwarding commands -- Cut-through Layer 2 forwarding commands -- cut-through enable

Use cut-through enable to enable cut-through forwarding.

Use undo cut-through enable to disable cut-through forwarding.

Syntax

cut-through enable

undo cut-through enable

Default

Cut-through forwarding is disabled.

Views

System view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

A cut-through forwarding-enabled device forwards a frame after it receives the first 64 bytes of the frame. This feature reduces the transmission time of a frame within the device and enhances forwarding performance.

A frame is forwarded before its CRC field is received, and thus CRC-error frames are forwarded instead of being dropped.

Examples

# Enable cut-through forwarding on the device.

<Sysname> system-view

[Sysname] cut-through enable

Layer 2 forwarding commands -- Bridge forwarding commands -- add interface

Use add interface to add an interface to a reflect-type, forward-type, or blackhole-type bridge instance.

Use undo add interface to remove an interface from a reflect-type, forward-type, or blackhole-type bridge instance.

Syntax

add interface interface-type interface-number

undo add interface interface-type interface-number

Default

No interfaces exist in a reflect-type, forward-type, or blackhole-type bridge instance.

Views

Reflect-type bridge view

Forward-type bridge view

Blackhole-type bridge view

Predefined user roles

network-admin

mdc-admin

Parameters

interface-type interface-number: Specifies an interface by its type and number.

Usage guidelines

You can add only Layer 2 or Layer 3 physical interfaces to reflect-type, forward-type, or blackhole-type bridge instances.

Each interface can be added to only one bridge instance.

Only one interface can be added to a reflect-type or blackhole-type bridge instance. If you execute this command multiple times in reflect-type or blackhole-type bridge view, the most recent configuration takes effect.

Only two interfaces can be added to a forward-type bridge instance. The two interfaces must be the same type. If you execute this command multiple times in forward-type bridge view, the most recent two configurations take effect.

Examples

# Add GigabitEthernet 1/0/1 to reflect-type bridge instance 1.

<Sysname> system-view

[Sysname] bridge 1 reflect

[Sysname-bridge1-reflect] add interface gigabitethernet 1/0/1

Layer 2 forwarding commands -- Bridge forwarding commands -- add vlan

Use add vlan to add a list of VLANs to an inter-VLAN bridge instance.

Use undo add vlan to remove VLANs from an inter-VLAN bridge instance.

Syntax

add vlan vlan-id-list

undo add vlan [ vlan-id-list ]

Default

No VLANs exist in an inter-VLAN bridge instance.

Views

Inter-VLAN bridge view

Predefined user roles

network-admin

mdc-admin

Parameters

vlan-id-list: Specifies a space-separated list of up to 10 VLAN items. Each VLAN item specifies a VLAN ID or a range of VLAN IDs in the form of start-vlan-id to end-vlan-id. The end VLAN ID must be greater than the start VLAN ID. Valid VLAN IDs are from 1 to 4094.

Usage guidelines

You can add VLANs to a bridge instance before or after you create the VLANs.

You can add a VLAN to only one bridge instance.

If you execute the command multiple times, all configurations take effect.

If you do not specify the vlan-id-list argument, the undo add vlan command removes all VLANs from the inter-VLAN bridge instance.

Examples

# Add VLANs 2, 3, 5, and VLANs 50 through 70 to bridge instance 2.

<Sysname> system-view

[Sysname] bridge 2 inter-vlan

[Sysname-bridge2-inter-vlan] add vlan 2 3 5 50 to 70

Layer 2 forwarding commands -- Bridge forwarding commands -- bridge

Use bridge to create a specific type of bridge instance and enter its view, or enter the view of an existing bridge instance.

Use undo bridge to delete bridge instances.

Syntax

bridge bridge-index [ blackhole | forward | inter-vlan | reflect ]

undo bridge { bridge-index | all }

Default

No bridge instances exist.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

bridge-index: Specifies a bridge instance index in the range of 1 to 10.

blackhole: Specifies a blackhole-type bridge instance.

forward: Specifies a forward-type bridge instance.

inter-vlan: Specifies an inter-VLAN bridge instance.

reflect: Specifies a reflect-type bridge instance.

all: Deletes all bridge instances.

Usage guidelines

When you create a bridge instance, you must specify its type.

You can specify only one type for a bridge instance.

Examples

# Create blackhole-type bridge instance 1 and enter its view.

<Sysname> system-view

[Sysname] bridge 1 blackhole

[Sysname-bridge1-blackhole]

# Create forward-type bridge instance 2 and enter its view.

<Sysname> system-view

[Sysname] bridge 2 forward

[Sysname-bridge2-forward]

# Create inter-VLAN bridge instance 3 and enter its view.

<Sysname> system-view

[Sysname] bridge 3 inter-vlan

[Sysname-bridge3-inter-vlan]

# Create reflect-type bridge instance 4 and enter its view.

<Sysname> system-view

[Sysname] bridge 4 reflect

[Sysname-bridge4-reflect]

Layer 2 forwarding commands -- Bridge forwarding commands -- bridge mac-address timer aging

Use bridge mac-address timer aging to set the aging timer for dynamic MAC address entries in bridge instances.

Use undo bridge to restore the default.

Syntax

bridge mac-address timer aging seconds

undo bridge mac-address timer aging

Default

The aging timer for dynamic MAC address entries is 300 seconds.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

seconds: Specifies a MAC address aging timer. The value range varies by device model.

Usage guidelines

Follow these guidelines to set the aging timer appropriately:

· A long aging interval causes the MAC address table to retain outdated entries and fail to accommodate the most recent network changes.

· A short aging interval results in removal of valid entries. Then, unnecessary broadcast packets appear and affect device performance.

After you set an aging time for dynamic MAC address entries, the device automatically deletes the expired dynamic MAC address entries. Then, the device learns new MAC addresses to build new MAC address entries.

Examples

# Set the aging timer to 500 seconds for dynamic MAC address entries.

<Sysname> system-view

[Sysname] bridge mac-address timer aging 500

Layer 2 forwarding commands -- Bridge forwarding commands -- display bridge mac-address

Use display bridge mac-address to display MAC address entries in bridge instances.

Syntax

Centralized devices:

display bridge mac-address [ bridge-index [ vlan vlan-id ] ] [ count ]

Distributed devices in standalone mode:Centralized IRF devices:

display bridge mac-address [ bridge-index [ vlan vlan-id ] ] [ count ] [ slot slot-number [ cpu cpu-number ] ]

Distributed devices in IRF mode:

display bridge mac-address [ bridge-index [ vlan vlan-id ] ] [ count ] [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

bridge-index: Specifies a bridge instance by its index.

vlan vlan-id: Specifies a VLAN by its ID.

count: Displays only the total number of MAC address entries that match all entry attributes you specify in this command. In this case, the detailed information about MAC address entries is not displayed. For example, you can use the display bridge mac-address 2 vlan 20 count command to display the total number of entries for VLAN 20 in bridge instance 2. If you do not specify this keyword, this command displays detailed information about specified MAC address entries.

slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays MAC address entries for the active MPU. (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 MAC address entries for the master device. (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. If you do not specify a member device or PEX, this command displays MAC address entries for the master device. (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 displays MAC address entries for the global active MPU. (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. If you do not specify a card or PEX, this command displays MAC address entries for the global active MPU. (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.

Usage guidelines

If you do not specify any parameters, this command displays MAC address entries for all bridge instances.

This command displays dynamic MAC address entries because the MAC address entries in a bridge instance are all learned MAC addresses.

Examples

# Display MAC address entries for bridge instance 100.

<Sysname> display bridge mac-address 100

MAC Address BRIDGE ID State VLAN ID Port Aging

0033-0033-0033 100 Learned 44 GE1/0/1 Y

0000-0000-0002 100 Learned 66 GE1/0/2 Y

# Display the number of MAC address entries in bridge instance 100.

<Sysname> display bridge mac-address 100 count

1 mac address(es) found.

Table 5 Command output

Field | Description
BRIDGE ID | Index of the bridge instance to which the MAC address entry belongs.
State | MAC address entry state: Learned.
VLAN ID | VLAN of the outgoing interface.
Port | Outgoing interface.
Aging | Whether the entry can age out: · Y—The entry can age out. · N—The entry never ages out.
1 mac address(es) found | Number of matching MAC address entries.

Layer 2 forwarding commands -- Bridge forwarding commands -- mac-address max-mac-count

Use mac-address max-mac-count to set the MAC learning limit on an inter-VLAN bridge instance.

Use undo mac-address max-mac-count to restore the default.

Syntax

mac-address max-mac-count count

undo mac-address max-mac-count

Default

The MAC learning limit is 4096 on an inter-VLAN bridge instance.

Views

Inter-VLAN bridge view

Predefined user roles

network-admin

mdc-admin

Parameters

count: Sets the maximum number of MAC addresses that can be learned on an inter-VLAN bridge instance. The value range for this argument is 0 to 4096. To prevent an inter-VLAN bridge instance from learning any MAC addresses, set the limit to 0 for the bridge instance.

Usage guidelines

The command sets the size of the inter-VLAN bridge forwarding MAC address table. When the number of MAC address entries learned by an inter-VLAN bridge instance reaches the limit, the bridge instance stops learning MAC address entries.

Examples

# Configure inter-VLAN bridge instance 2 to learn a maximum of 10 MAC address entries.

<Sysname> system-view

[Sysname] bridge 2 inter-vlan

[Sysname-bridge2-inter-vlan] mac-address max-mac-count 10

Layer 2 forwarding commands -- Fast bridge forwarding commands -- display bridge cache ip

Use display bridge cache ip to display IPv4 fast bridge forwarding entries.

Syntax

Centralized devices:

display bridge cache ip { inline | inter-vlan } [ ip-address ]

Distributed devices in standalone mode:Centralized IRF devices:

display bridge cache ip { inline | inter-vlan } [ ip-address ] [ slot slot-number [ cpu cpu-number ] ]

Distributed devices in IRF mode:

display bridge cache ip { inline | inter-vlan } [ 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

inline: Displays IPv4 inline forwarding entries.

inter-vlan: Displays IPv4 inter-VLAN forwarding entries.

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

slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays IPv4 fast bridge 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 IPv4 fast bridge 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 IPv4 fast bridge forwarding entries for all member devices if you do not specify a member device. On an IRF 3 system, this command displays IPv4 fast bridge 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 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 displays IPv4 fast bridge 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 IPv4 fast bridge forwarding entries for all cards if you do not specify a card. On an IRF 3 system, this command displays IPv4 fast bridge 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 IPv4 inline fast bridge forwarding entries.

<Sysname> display bridge cache ip inline

Total number of bridge-forwarding entries: 2

SIP SPort DIP DPort Pro InVLAN OutVLAN Output_If

1.1.1.3 470 1.1.1.2 0 1 3 2 GE1/0/1

1.1.1.2 470 1.1.1.3 2048 1 2 3 GE1/0/2

Table 6 Command output

Field | Description
Total number of bridge-forwarding entries | Total number of IPv4 fast bridge forwarding entries.
SIP | Source IPv4 address.
SPort | Source port number.
DIP | Destination IPv4 address.
DPort | Destination port number.
Pro | Protocol number.
InVLAN | Input VLAN.
OutVLAN | Output VLAN.
Output_If | Output interface.

Layer 2 forwarding commands -- Fast bridge forwarding commands -- display bridge cache ip fragment

Use display bridge cache ip fragment to display IPv4 fast bridge forwarding entries for fragments.

Syntax

Centralized devices:

display bridge cache ip fragment { inline | inter-vlan } [ ip-address ]

Distributed devices in standalone mode:Centralized IRF devices:

display bridge cache ip fragment { inline | inter-vlan } [ ip-address ] [ slot slot-number [ cpu cpu-number ] ]

Distributed devices in IRF mode:

display bridge cache ip fragment { inline | inter-vlan } [ 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

inline: Displays IPv4 inline forwarding entries for fragments.

inter-vlan: Displays IPv4 inter-VLAN forwarding entries for fragments.

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

slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays IPv4 fast bridge forwarding entries for fragments 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 IPv4 fast bridge forwarding entries for fragments 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 IPv4 fast bridge forwarding entries for fragments on all member devices if you do not specify a member device. On an IRF 3 system, this command displays IPv4 fast bridge forwarding entries for fragments 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 argument represents the slot number of the card. If you do not specify a card, this command displays IPv4 fast bridge forwarding entries for fragments 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 IPv4 fast bridge forwarding entries for fragments on all cards if you do not specify a card. On an IRF 3 system, this command displays IPv4 fast bridge forwarding entries for fragments 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 IPv4 inline fast bridge forwarding entries for fragments.

<Sysname> display bridge cache ip fragment inline

Total number of fragment bridge-forwarding entries: 2

SIP SPort DIP DPort Pro InVLAN ID

2.1.1.2 2320 2.1.1.1 2048 1 2 7298

2.1.1.1 2048 2.1.1.2 2320 1 3 6826

Table 7 Command output

Field | Description
Total number of fragment bridge-forwarding entries | Total number of IPv4 fast bridge forwarding entries for fragments.
SIP | Source IPv4 address.
SPort | Source port number.
DIP | Destination IPv4 address.
DPort | Destination port number.
Pro | Protocol number.
InVLAN | Input VLAN.
ID | Fragment ID.

Layer 2 forwarding commands -- Fast bridge forwarding commands -- display bridge cache ipv6

Use display bridge cache ipv6 to display IPv6 fast bridge forwarding entries.

Syntax

Centralized devices:

display bridge cache ipv6 { inline | inter-vlan } [ ipv6-address ]

Distributed devices in standalone mode:Centralized IRF devices:

display bridge cache ipv6 { inline | inter-vlan } [ ipv6-address ] [ slot slot-number [ cpu cpu-number ] ]

Distributed devices in IRF mode:

display bridge cache ipv6 { inline | inter-vlan } [ ipv6-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

inline: Displays IPv6 inline forwarding entries.

inter-vlan: Displays IPv6 inter-VLAN forwarding entries.

ipv6-address: Specifies an IPv6 address. If you do not specify an IPv6 address, this command displays all IPv6 fast bridge forwarding entries.

slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays IPv6 fast bridge 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 IPv6 fast bridge 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 IPv6 fast bridge forwarding entries for all member devices if you do not specify a member device. On an IRF 3 system, this command displays IPv6 fast bridge 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 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 displays IPv6 fast bridge 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 IPv6 fast bridge forwarding entries for all cards if you do not specify a card. On an IRF 3 system, this command displays IPv6 fast bridge 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 IPv6 inline fast bridge forwarding entries.

<Sysname> display bridge cache ipv6 inline

Total number of IPv6 bridge-forwarding items: 1

Src IP: 10::12 Src Port: 427

Dst IP: 10::11 Dst Port: 32768

InVLAN: 2 OutVLAN: 3

Protocol: 58

Context ID: 257

Bridge ID: 10

Output interface: GE1/0/1

Table 8 Command output

Field | Description
Total number of IPv6 bridge-forwarding items | Total number of IPv6 fast bridge forwarding entries.
Src IP | Source IPv6 address.
Src port | Source port number.
Dst IP | Destination IPv6 address.
Dst Port | Destination port number.
InVLAN | Input VLAN.
OutVLAN | Output VLAN.
Protocol | Protocol number.
Output interface | Output interface type and number. If no output interface is involved in fast forwarding, this field displays N/A. If no output interface is available, this field displays a hyphen (-).