- Table of Contents
-
- 05-Network Connectivity
- 00-Preface
- 01-About the network connectivity configuration guide
- 02-MAC address table configuration
- 03-VLAN configuration
- 04-Ethernet link aggregation configuration
- 05-Spanning tree configuration
- 06-LLDP configuration
- 07-Layer 2 forwarding configuration
- 08-PPP configuration
- 09-L2TP configuration
- 10-ARP configuration
- 11-IP addressing configuration
- 12-DHCP configuration
- 13-DHCPv6 configuration
- 14-DNS configuration
- 15-NAT configuration
- 16-IP performance optimization configuration
- 17-IPv6 basics configuration
- 18-Tunneling configuration
- 19-GRE configuration
- 20-ADVPN configuration
- 21-IP forwarding basics configuration
- 22-Basic IP routing configuration
- 23-Static routing configuration
- 24-IPv6 static routing configuration
- 25-Policy-based routing configuration
- 26-IPv6 policy-based routing configuration
- 27-RIP configuration
- 28-OSPF configuration
- 29-RIPng configuration
- 30-BGP configuration
- 31-Multicast overview
- 32-IGMP snooping configuration
- 33-MLD snooping configuration
- Related Documents
-
Title | Size | Download |
---|---|---|
07-Layer 2 forwarding configuration | 52.38 KB |
Configuring normal Layer 2 forwarding
About normal Layer 2 forwarding
Display and maintenance commands for Layer 2 forwarding
Configuring fast Layer 2 forwarding
Display and maintenance commands for fast Layer 2 forwarding
Configuring normal Layer 2 forwarding
About normal Layer 2 forwarding
When an incoming frame's destination MAC address does not match any Layer 3 interface's MAC address, normal Layer 2 forwarding forwards the frame through a Layer 2 interface.
The device uses the destination MAC address of the frame to look for a match in the MAC address table.
· The device forwards the frame out of the outgoing interface in the matching entry if a match is found.
· The device floods the frame to all interfaces in the VLAN of the frame if no match is found.
Normal Layer 2 forwarding is enabled by default.
Display and maintenance commands for Layer 2 forwarding
Execute display commands in any view and reset commands in user view.
Task |
Command |
Display Layer 2 forwarding statistics. |
display mac-forwarding statistics [ interface interface-type interface-number ] |
Clear Layer 2 forwarding statistics. |
reset mac-forwarding statistics |
Configuring fast Layer 2 forwarding
About fast Layer 2 forwarding
Fast Layer 2 forwarding improves packet forwarding efficiency by using a high-speed cache and flow-based technology. It identifies a flow by using the following items:
· Source IP address.
· Source port number.
· Destination IP address.
· Destination port number.
· Protocol number.
· Input interface.
· Output interface.
· VLAN ID.
Fast Layer 2 forwarding creates an entry in a high-speed cache by obtaining the forwarding information of a flow's first packet. Subsequent packets of the flow are forwarded based on the entry.
Fast Layer 2 forwarding is enabled by default.
Display and maintenance commands for fast Layer 2 forwarding
Execute display commands in any view.
Task |
Command |
Display IPv4 fast forwarding entries. |
display mac-forwarding cache ip [ ip-address ] |
Display IPv4 fast forwarding entries for fragments. |
display mac-forwarding cache ip fragment [ ip-address ] |
Display IPv6 fast forwarding entries. |
display mac-forwarding cache ipv6 [ ipv6-address ] |