The pppoe intermediate-agent information policy command configures the policy for a specified interface to process original fields in user-side PPPoE packets.
The undo pppoe intermediate-agent information policy command restores the default policy for a specified interface to process original fields in user-side PPPoE packets.
By default, the policy configured on an interface to process original fields in user-side PPPoE packets is replace.
pppoe intermediate-agent information policy { drop | replace | keep }
undo pppoe intermediate-agent information policy
Parameter |
Description |
Value |
---|---|---|
drop |
Removes the original fields from PPPoE packets. |
- |
replace |
Replaces original fields in PPPoE packets according to the field format. |
- |
keep |
Reserves the content and format of original fields in PPPoE packets. |
- |
Ethernet interface view, GE interface view, XGE interface view, 25GE interface view, MultiGE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view
Usage Scenario
After the policy for processing original fields in user-side PPPoE packets is configured, the device can add information about the interface connected to the PPPoE client such as the slot ID/subcard ID/interface number, VLAN ID, and MAC address to PPPoE packets. The user account and access interface information are both authenticated, preventing user account embezzling. If received PPPoE packets contain fields related to the interface that connected to the PPPoE client, the device removes or reserves original fields as required.
You can run the pppoe intermediate-agent information policy (system view) command to configure the PPPoE packet processing policy for all interfaces in the system view. To use a different policy on a specified interface, run the pppoe intermediate-agent information policy command. In this case, the policy for processing PPPoE packets on the interface depends on the interface configuration.
Prerequisites
PPPoE+ has been enabled globally by running the pppoe intermediate-agent information enable command.
# Configure GE0/0/1 to replace original fields in the received PPPoE packets with the circuit ID and remote ID of the local device.
<HUAWEI> system-view [HUAWEI] pppoe intermediate-agent information enable [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] pppoe intermediate-agent information policy replace