The pppoe intermediate-agent information policy command configures the policy for all interfaces to process original fields in user-side PPPoE packets.
The undo pppoe intermediate-agent information policy command restores the policy for all interfaces to process original fields in user-side PPPoE packets.
By default, the policy configured on all interfaces 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 information fields in PPPoE packets according to the field format. |
- |
keep |
Reserves the content and format of original fields in PPPoE packets. If a PPPoE packet does not contain the fields, the device adds the fields to the packet according to the configuration. |
- |
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.
After the command is executed, the policy for processing PPPoE packets takes effect on all interfaces. To configure a policy on a specified interface, run the pppoe intermediate-agent information policy (interface view) 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.