- Table of Contents
-
- 04-Layer 2—LAN Switching Configuration Guide
- 00-Preface
- 01-MAC address table configuration
- 02-Ethernet link aggregation configuration
- 03-Port isolation configuration
- 04-VLAN configuration
- 05-QinQ configuration
- 06-Loop detection configuration
- 07-Spanning tree configuration
- 08-LLDP configuration
- 09-Layer 2 forwarding configuration
- 10-VLAN termination configuration
- Related Documents
-
Title | Size | Download |
---|---|---|
09-Layer 2 forwarding configuration | 48.46 KB |
Configuring normal Layer 2 forwarding
About normal Layer 2 forwarding
Restrictions: Hardware compatibility with Layer 2 forwarding
Display and maintenance commands for Layer 2 forwarding
Configuring fast Layer 2 forwarding
Restrictions: Hardware compatibility with 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.
Restrictions: Hardware compatibility with Layer 2 forwarding
This feature is supported only on the following ports:
Hardware |
Layer 2 forwarding and port compatibility |
MSR810, MSR810-W, MSR810-W-DB, MSR810-LM, MSR810-W-LM, MSR810-10-PoE, MSR810-LM-HK, MSR810-W-LM-HK, MSR810-LMS-EA |
Fixed Layer 2 Ethernet ports. |
MSR2600-6-X1, MSR2600-10-X1 |
Fixed Layer 2 Ethernet ports. |
MSR3600-28, MSR3600-51, MSR3600-28-SI, MSR3600-51-SI |
Fixed Layer 2 Ethernet ports. |
MSR3600-28-X1, MSR3600-28-X1-DP, MSR3600-51-X1, MSR3600-51-X1-DP |
Fixed Layer 2 Ethernet ports. |
MSR3610-I-DP, MSR3610-IE-DP |
Fixed Layer 2 Ethernet ports. |
Routers installed with an Ethernet switching module |
Layer 2 Ethernet ports on Ethernet switching modules. For more information about the support of the routers for Ethernet switching modules, see H3C MSR Router Series Comware 7 Interface Module Guide. |
On Layer 2 Ethernet switching modules of MSR devices that are operating in IRF mode, Layer 2 forwarding across member devices is not supported. On SIC Layer 2 Ethernet switching modules, Layer 2 forwarding across member devices and slots is not supported.
Layer 2 forwarding across slots that reside on the same device is supported if multiple HMIM-24GSW, HMIM-24GSWP, HMIM-8GSW, or HMIM-8GSWF Layer 2 Ethernet switching modules are installed on the following devices:
· MSR3640.
· MSR3660.
Layer 2 forwarding across slots that reside on the same device is not supported on MSR3620-DP devices that are installed with multiple HMIM-8GSW or HMIM-8GSWF Layer 2 Ethernet switching modules.
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.
Restrictions: Hardware compatibility with fast Layer 2 forwarding
This feature is supported only on the following ports:
Hardware |
Fast Layer 2 forwarding and port compatibility |
MSR810, MSR810-W, MSR810-W-DB, MSR810-LM, MSR810-W-LM, MSR810-10-PoE, MSR810-LM-HK, MSR810-W-LM-HK, MSR810-LMS-EA |
Fixed Layer 2 Ethernet ports. |
MSR2600-6-X1, MSR2600-10-X1 |
Fixed Layer 2 Ethernet ports. |
MSR3600-28, MSR3600-51, MSR3600-28-SI, MSR3600-51-SI |
Fixed Layer 2 Ethernet ports. |
MSR3600-28-X1, MSR3600-28-X1-DP, MSR3600-51-X1, MSR3600-51-X1-DP |
Fixed Layer 2 Ethernet ports. |
MSR3610-I-DP, MSR3610-IE-DP |
Fixed Layer 2 Ethernet ports. |
Routers installed with an Ethernet switching module |
Layer 2 Ethernet ports on Ethernet switching modules. For more information about the support of the routers for Ethernet switching modules, see H3C MSR Router Series Comware 7 Interface Module Guide. |
On Layer 2 Ethernet switching modules of MSR devices that are operating in IRF mode, Layer 2 forwarding across member devices is not supported. On SIC Layer 2 Ethernet switching modules, Layer 2 forwarding across member devices and slots is not supported.
Layer 2 forwarding across slots that reside on the same device is supported if multiple HMIM-24GSW, HMIM-24GSWP, HMIM-8GSW, or HMIM-8GSWF Layer 2 Ethernet switching modules are installed on the following devices:
· MSR3640.
· MSR3660.
Layer 2 forwarding across slots that reside on the same device is not supported on MSR3620-DP devices that are installed with multiple HMIM-8GSW or HMIM-8GSWF Layer 2 Ethernet switching modules.
Display and maintenance commands for fast Layer 2 forwarding
Execute display commands in any view.
Task |
Command |
Display IPv4 fast forwarding entries. |
In standalone mode: display mac-forwarding cache ip [ ip-address ] In IRF mode: display mac-forwarding cache ip [ ip-address ] [ slot slot-number ] |
Display IPv4 fast forwarding entries for fragments. |
In standalone mode: display mac-forwarding cache ip fragment [ ip-address ] In IRF mode: display mac-forwarding cache ip fragment [ ip-address ] [ slot slot-number ] |
Display IPv6 fast forwarding entries. |
In standalone mode: display mac-forwarding cache ipv6 [ ipv6-address ] In IRF mode: display mac-forwarding cache ipv6 [ ipv6-address ] [ slot slot-number ] |