- Table of Contents
-
- 05-Network Connectivity Configuration Guide
- 00-Preface
- 01-About the network connectivity configuration guide
- 02-MAC address table configuration
- 03-Ethernet link aggregation configuration
- 04-Port isolation configuration
- 05-VLAN configuration
- 06-Loop detection configuration
- 07-Spanning tree configuration
- 08-LLDP configuration
- 09-Layer 2 forwarding configuration
- 10-L2TP configuration
- 11-ARP configuration
- 12-IP addressing configuration
- 13-DHCP configuration
- 14-DHCP snooping configuration
- 15-DHCPv6 configuration
- 16-DHCPv6 snooping configuration
- 17-DNS configuration
- 18-HTTP configuration
- 19-HTTP redirect configuration
- 20-IP forwarding basics configuration
- 21-Fast forwarding configuration
- 22-Adjacency table configuration
- 23-IP performance optimization configuration
- 24-IPv6 basics configuration
- 25-IPv6 neighbor discovery configuration
- 26-IPv6 fast forwarding configuration
- 27-IPv6 transition technologies configuration
- 28-NAT configuration
- 29-GRE configuration
- 30-Basic IP routing configuration
- 31-Static routing configuration
- 32-OSPF configuration
- 33-Policy-based routing configuration
- 34-IPv6 static routing configuration
- 35-IPv6 policy-based routing configuration
- 36-Multicast overview
- 37-IGMP snooping configuration
- 38-MLD snooping configuration
- Related Documents
-
Title | Size | Download |
---|---|---|
09-Layer 2 forwarding configuration | 51.09 KB |
Configuring normal Layer 2 forwarding
About normal Layer 2 forwarding
Verifying and maintaining normal Layer 2 forwarding
Displaying and clearing Layer 2 forwarding statistics
Configuring fast Layer 2 forwarding
Verifying and maintaining fast Layer 2 forwarding
Displaying fast Layer 2 forwarding entries
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.
Verifying and maintaining normal Layer 2 forwarding
Displaying and clearing Layer 2 forwarding statistics
To display Layer 2 forwarding statistics, execute the following command in any view:
display mac-forwarding statistics [ interface interface-type interface-number ]
To clear Layer 2 forwarding statistics, execute the following command in user view:
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.
Verifying and maintaining fast Layer 2 forwarding
Displaying fast Layer 2 forwarding entries
Perform all display tasks in any view.
· Display IPv4 fast forwarding entries.
display mac-forwarding cache ip [ ip-address ] [ slot slot-number ]
· Display IPv4 fast forwarding entries for fragments.
display mac-forwarding cache ip fragment [ ip-address ] [ slot slot-number ]
· Display IPv6 fast forwarding entries.
display mac-forwarding cache ipv6 [ ipv6-address ] [ slot slot-number ]