beautypg.com

Network requirements, Configuration procedure, Configuration guidelines – H3C Technologies H3C SecPath F1000-E User Manual

Page 169: Viewing frame forwarding statistics, Overview

background image

144

Blackhole-type inline Layer 2 forwarding configuration

example at the CLI

Network requirements

Configure blackhole-type inline Layer 2 forwarding on GigabitEthernet 0/1. Then packets received on
GigabitEthernet 0/1 are directly dropped.

Configuration procedure

# Create blackhole-type inline Layer 2 forwarding entry 1.

system-view

[Sysname] inline-interfaces 1 blackhole

# Assign GigabitEthernet 0/1 to blackhole-type inline Layer 2 forwarding entry 1.

[Sysname] interface GigabitEthernet 0/1

[Sysname-GigabitEthernet0/1] port inline-interfaces 1

Configuration guidelines

When you configure inline forwarding, follow these guidelines:

Inline forwarding is applicable to Layer 2 Ethernet interfaces and subinterfaces.

If you assign a subinterface to an inline forwarding entry, note the following:

{

To make the entry take effect, the interface must be assigned to the VLAN of which the ID is used
as the subinterface number. For example, if the subinterface GigabitEthernet 0/1.2 is assigned

to an inline forwarding entry, the interface GigabitEthernet 0/1 must be assigned to VLAN 2 so
that the inline forwarding can be implemented.

{

If an interface and its subinterface are assigned to different inline forwarding entries, the
forwarding entry with the main interface takes precedence. For example, the interfaces

GigabitEthernet 0/1 and GigabitEthernet 0/2 are assigned to one inline forwarding entry,

and the subinterfaces GigabitEthernet 0/1.2 and GigabitEthernet 0/2.3 are assigned to

another forwarding entry; then the data received from GigabitEthernet 0/1 is forwarded
through the interface GigabitEthernet 0/2, and vise versa.

Viewing frame forwarding statistics

Overview

The frame forwarding statistics module allows you to display the frame forwarding statistics of all the

Layer 2 interfaces on the firewall.

Configuration procedure

Select Network > Statistics > L2 Statistics from the navigation tree to enter the page for displaying frame

forwarding statistics, as shown in

Figure 78

.