The pppoe intermediate-agent information format command configures the format of fields added to PPPoE packets.
The undo pppoe intermediate-agent information format command restores the format of fields added to PPPoE packets to default values.
By default, the format of fields circuit-id and remote-id added to PPPoE packets is common.
pppoe intermediate-agent information [ vlan vlan-id ] [ ce-vlan cevlan-id ] format { circuit-id | remote-id } { common | extend | user-defined text }
undo pppoe intermediate-agent information format all
undo pppoe intermediate-agent information [ vlan vlan-id ] [ ce-vlan cevlan-id ] format { circuit-id | remote-id }
Parameter |
Description |
Value |
---|---|---|
vlan vlan-id |
Indicates the outer VLAN ID. NOTE:
This parameter is not supported in the system view. |
The value is an integer that ranges from 1 to 4094. |
ce-vlan cevlan-id |
Indicates the end inner VLAN ID. NOTE:
This parameter is not supported in the system view. |
The value is an integer that ranges from 1 to 4094. |
circuit-id |
Indicates the circuit ID (CID). |
- |
remote-id |
Indicates the remote ID (RID). |
- |
common |
Indicates the standard fill format.
|
- |
extend |
Indicates the extended format.
In the format of the CID or RID, the values in parentheses without a unit are fixed values of the fields, and the values in parentheses with a unit indicate the length of the corresponding fields. |
- |
user-defined text |
Indicates the user-defined format. |
The text parameter specifies a user-defined format, and the value is a string of 1 to 127 characters. The details about the customized format string are provided in Precautions. |
all | Indicates the all format of fields. NOTE:
This parameter is not supported in the system view. |
- |
Usage Scenario
After PPPoE+ is enabled globally, the default policy for processing user-side PPPoE packets is replace. The device replaces original information fields in the PPPoE packets received at the user side with those in common format. You can run the pppoe intermediate-agent information format command to change the format of information fields.
When the policy for processing user-side PPPoE packets is replace and the pppoe intermediate-agent information format command is executed, all interfaces add fields in a specified format to received PPPoE packets in the system view.
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.
Fields in PPPoE Intermediate-Agent Information packets support the following formats: common, extend, and user-defined. The formats are the same as those of DHCP Option 82. For description of the three parameters, see dhcp option82 format.
Prerequisites
PPPoE+ has been enabled globally by running the pppoe intermediate-agent information enable command.
Precautions
Separators must be added between keywords; otherwise, they cannot be parsed. The separators cannot be numbers.
# Configure the extended format for the remote-id field added to PPPoE packets.
<HUAWEI> system-view [HUAWEI] pppoe intermediate-agent information enable [HUAWEI] pppoe intermediate-agent information format remote-id extend
# Configure the user-defined format for the circuit-id field added to PPPoE packets and encapsulate the port name, outer VLAN ID, inner VLAN ID, and host name in ASCII format.
<HUAWEI> system-view [HUAWEI] pppoe intermediate-agent information enable [HUAWEI] pppoe intermediate-agent information format circuit-id user-defined "%portname:%svlan.%cvlan %sysname"
# Configure the extended format for the remote-id field added to PPPoE packets on GE1/0/1.
<HUAWEI> system-view [HUAWEI] pppoe intermediate-agent information enable [HUAWEI] interface gigabitethernet 1/0/1 [HUAWEI-GigabitEthernet1/0/1] pppoe intermediate-agent information format remote-id extend