< Home

traffic-pppoe

Function

The traffic-pppoe command configures an interface to allow only PPPoE packets to pass through.

The undo traffic-pppoe command cancels the configuration.

By default, an interface allows all types of packets to pass through.

S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-HI, S6730-H, S6730S-H, S6730-S, and S6730S-S do not support the configuration.

Format

traffic-pppoe { any | source-address } { any | destination-address }

undo traffic-pppoe { any | source-address } { any | destination-address }

Parameters

Parameter

Description

Value

{ any | source-address }

Indicates that an interface allows PPPoE packets with a specified source MAC address to pass through.
  • any indicates that PPPoE packets with any source MAC address can pass through the interface.
  • source-address indicates that PPPoE packets with a specified source MAC address can pass through the interface.

The value of source-address is in the format H-H-H. An H contains 1 to 4 hexadecimal digits.

{ any | destination-address }

Indicates that an interface allows PPPoE packets with a specified destination MAC address to pass through.
  • any indicates that PPPoE packets with any destination MAC address can pass through the interface.
  • destination-address indicates that PPPoE packets with a specified destination MAC address can pass through the interface.

The value of destination-address is in the format H-H-H. An H contains 1 to 4 hexadecimal digits.

Views

Ethernet interface view, GE interface view, XGE interface view, MultiGE interface view, 40GE interface view, port group view, Eth-Trunk interface view

Default Level

2: Configuration level

Usage Guidelines

If you run the traffic-pppoe any any command on an interface, the interface allows only PPPoE packets to pass through and discards other packets.

Example

# Configure GE0/0/1 to allow only PPPoE packets to pass through.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] traffic-pppoe any any

# Configure GE0/0/1 to allow only PPPoE packets with source MAC address 1-1-1 to pass through.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] traffic-pppoe 1-1-1 any
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >