basinfo-insert

Function

The basinfo-insert cn-telecom command configures the device to insert the access-line-id information in the format defined by cn-telecom if the device does not trust the access-line-id information sent from the DHCP client.

The undo basinfo-insert cn-telecom command configures the device not to trust the access-line-id information sent from the DHCP client.

The basinfo-insert version2 command configures the device to insert the access-line-id information in the format defined by version2 if the device does not trust the access-line-id information sent from the DHCP client.

The undo basinfo-insert version2 command restores the default setting.

By default, the device does not trust the access-line-id information sent from a DHCP client or insert BAS information in the format defined by cn-telecom or version2 before the access-line-id information.

This command is supported only on the NetEngine 8000 F1A.

Format

basinfo-insert { cn-telecom | version2 }

undo basinfo-insert { cn-telecom | version2 }

Parameters

Parameter Description Value
cn-telecom

Inserts information about the BAS interface in the telecom format.

-

version2

Specifies encapsulating the access-line-id information into a DHCP packet in version2 format.

-

Views

BAS interface view (GE), BAS interface view (VE), BAS interface view (trunk)

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bras-control write

Usage Guidelines

Usage Scenario

After the basinfo-insert cn-telecom or basinfo-insert version2 command is configured, the device untrusts the access-line-id field or the PPPoE+ field contained in the DHCP sent by a client. Instead, the device creates an access-line-id field based on the physical location of the user that is determined through the user information such as the VLAN, and then inserts the access-line-id to the message before sending the message to the DHCP server, or RADIUS server.

If basinfo-insert cn-telecom is set, the device will insert the BAS information in the format defined by cn-telecom in one of the following formats:

BAS information in the format defined by cn-telecom + 0/0/0/0/0/0

  • Encapsulation format on a GE interface: <slot>/<subslot>/<port>/:<outer vlan>.<inner vlan>
  • Encapsulation format on a trunk interface: <slot>/<subslot>/<port>/:<outer vlan>.<inner vlan>

    For example, eth 0/1/13:4096.4 0/0/0/0/0/0

    If basinfo-insert version2 is set, the device will insert the BAS information in the format defined by version2 in one of the following formats:
  • Encapsulation format on a GE interface:<BNG-Hostname> eth <0>/<slot>/<subslot>/<port>:<outer vlan>.<inner vlan>

    For example, huawei eth 0/0/1/1:50.60
  • Encapsulation format on a trunk interface:<BNG-Hostname> trunk <0>/<0>/<slot>/<trunkid>:<outer vlan>.<inner vlan>

    For example, huawei trunk 0/0/2/11:200.100

Prerequisites

Before running this command, set the access type of the user by the access-type command.

Precautions

This command is supported only on the admin VS.

The basinfo-insert cn-telecom command is mutually exclusive with the following commands:

  • client-option82 basinfo-insert cn-telecom
  • access-line-id basinfo-insert cn-telecom
  • client-option82 version1
  • basinfo-insert version2

Example

# Configure the BAS interface GE 0/1/0 to untrust the DHCP access-line-id field reported by a client and insert the access-line-id information in the format defined by cn-telecom.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/0
[~HUAWEI-GigabitEthernet0/1/0] bas
[~HUAWEI-GigabitEthernet0/1/0-bas] access-type layer2-subscriber
[*HUAWEI-GigabitEthernet0/1/0-bas] commit
[~HUAWEI-GigabitEthernet0/1/0-bas] basinfo-insert cn-telecom
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >