F3215-HP Load Balancing Module Network Management Configuration Guide-6PW101
37
Configuring Layer 2 forwarding
Layer 2 forwarding can be configured only at the CLI.
Layer 2 forwarding falls into the following categories:
• Normal
• Inline
Configuring normal Layer 2 forwarding
If the destination MAC address of an incoming packet matches the MAC address of the receiving Layer
3 interface, the device forwards the packet through that interface. If not, the device performs normal
Layer 2 forwarding through a Layer 2 interface. The device looks up the MAC address table according
to the destination MAC address of the incoming packet, obtains the outgoing interface, and then
forwards the packet through the interface.
Configuration procedure
Normal Layer 2 forwarding is enabled by default.
Displaying and maintaining normal Layer 2 forwarding
Task Command
Remarks
Display normal and inline Layer 2
forwarding statistics.
display mac-forwarding statistics [ interface
interface-type interface-number ] [ | { begin |
exclude | include } regular-expression ]
Available in any view.
Clear all normal and inline Layer 2
forwarding statistics.
reset mac-forwarding statistics Available in user view.
Configuring inline Layer 2 forwarding
The inline Layer 2 forwarding feature is supported on the LB modules, and comprises the following types:
• Forward type—A packet coming from one interface goes out of another. The packet is forwarded
through the specified incoming and outgoing interfaces, rather than through looking up the MAC
address table. A complete configuration contains an ID, which uniquely identifies an inline Layer 2
forwarding entry, and two interfaces.
• Reflect type—A packet is forwarded through the interface that received the packet. A complete
configuration contains an ID, which uniquely identifies an inline Layer 2 forwarding entry, and one
interface.
• Blackhole type—A packet received on an interface is discarded. A complete configuration contains
an ID, which uniquely identifies an inline Layer 2 forwarding entry, and one interface.
The inline Layer 2 forwarding feature is supported on interfaces and subinterfaces.