< Home

Configuring the Policy for Processing User-Side PPPoE Packets

Context

After a policy for processing user-side PPPoE packets is configured, the Switch can add information about the interface connected to the PPPoE client. The user account and access interface can be authenticated, preventing user account embezzling.

You can configure a policy for processing original fields in user-side PPPoE packets in the system view or interface view. The configuration in the system view is valid for all interfaces. An interface preferentially uses the policy that is configured on the interface.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Configure a policy for processing original fields in user-side PPPoE packets.

    • Configuring a policy for processing original fields in user-side PPPoE packets in the system view

      Run pppoe intermediate-agent information policy { drop | keep | replace }

      A policy for all interfaces to process original fields in user-side PPPoE packets is configured.

      By default, the policy configured on an interface to process original fields in user-side PPPoE packets is replace.

    • Configuring the policy for processing original fields in user-side PPPoE packets in the interface view

      1. Run interface interface-type interface-number

        The Ethernet interface view is displayed.

      2. Run pppoe intermediate-agent information policy { drop | keep | replace }

        A policy for a specified interface to process original fields in user-side PPPoE packets is configured.

      3. (Optional) Run pppoe intermediate-agent information [ vlan vlan-id ] [ ce-vlan cevlan-id ] format { circuit-id | remote-id } { common | extend | user-defined text }

        The format of fields to be added to PPPoE packets is configured.

        By default, the format of fields circuit-id and remote-id added to PPPoE packets is common.

        If the pppoe intermediate-agent information format command is configured in both the interface and system views, the configuration in the interface view takes effect.

      4. Run quit

        The system view is displayed.

      By default, the policy configured on an interface to process original fields in user-side PPPoE packets is replace.

  3. (Optional) Configure the format and content of fields used to replace original fields when the policy for processing user-side PPPoE packets is replace.

    1. Run pppoe intermediate-agent information encapsulation { circuit-id | remote-id } *

      The content of fields to be added to PPPoE packets is configured.

    2. Run pppoe intermediate-agent information format { circuit-id | remote-id } { common | extend | user-defined text }

      The format of fields to be added to PPPoE packets is configured.

      By default, the format of fields circuit-id and remote-id added to PPPoE packets is common.

      If the pppoe intermediate-agent information format command is configured in both the interface and system views, the configuration in the interface view takes effect.

  4. (Optional) Run pppoe intermediate-agent information vendor-id vendor-id

    The vendor ID that the device adds to PPPoE packets is set.

    The default vendor ID that the device adds to PPPoE packets is 2011.

    A vendor ID identifies a vendor. After PPPoE+ is enabled, the device must negotiate with the PPPoE server using PPPoE packets containing the vendor ID. By default, the device adds vendor ID 2011 to PPPoE packets. If the device is connected to a non-Huawei PPPoE server, the vendor ID may not be 2011; for example, the vendor ID is 3561. In this case, run the pppoe intermediate-agent information vendor-id vendor-id command to set the vendor ID to be the same as that in PPPoE packets sent from the non-Huawei PPPoE server.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >