beautypg.com

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

Page 168

background image

143

CAUTION:

An interface can only belong to one inline forwarding entry, and the last configured port
inline-interfaces

id command on an Ethernet interface takes effect.

Subinterfaces can be assigned to inline Layer 2 forwarding entries. To make these entries take effect, the
main 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 Layer 2 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.

Displaying and maintaining inline Layer 2 forwarding

Task Command

Remarks

Display inline Layer 2 forwarding
configuration.

display inline-interfaces [ | { begin |
exclude | include } regular-expression ]

Available in any view

Forward-type inline Layer 2 forwarding configuration example

at the CLI

Network requirements

Configure forward-type inline Layer 2 forwarding between GigabitEthernet 0/1 and GigabitEthernet

0/2. Then packets received on GigabitEthernet 0/1 can be forwarded through GigabitEthernet 0/2

directly, and vice versa.

Configuration procedure

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

system-view

[Sysname] inline-interfaces 1

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

[Sysname] interface GigabitEthernet 0/1

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

[Sysname-GigabitEthernet0/1] quit

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

[Sysname] interface GigabitEthernet 0/2

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