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.
traffic-pppoe { any | source-address } { any | destination-address }
undo traffic-pppoe { any | source-address } { any | destination-address }
Parameter |
Description |
Value |
---|---|---|
{ any | source-address } |
Indicates that an interface allows PPPoE packets with a specified source MAC address to pass through.
|
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.
|
The value of destination-address is in the format H-H-H. An H contains 1 to 4 hexadecimal digits. |
Ethernet interface view, GE interface view, XGE interface view, MultiGE interface view, 40GE interface view, port group view, Eth-Trunk interface view
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.
# 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