< Home

(Optional) Configuring Attributes

Context

Configuring attributes allows you to specify certain parameters for the DHCP client. You can configure the Option 60 field in either the system view or the interface view. The configuration in the interface view has a higher priority and overrides the configuration in the system view.

Procedure

  1. Enter the system view.

    system-view

  2. Configure the DHCP client to send DHCP Discover messages that carry the Option 60 field.

    dhcp client class-id class-id

    By default, the value of the Option 60 field is in the format of "huawei-device model".

  3. Enter the interface view or sub-interface view.

    interface interface-type interface-number [.subinterface-number ]

    Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731S-H, S5731-S, S5731S-S, S6720-HI, S5732-H, S6730-H, S6730S-H, S6730-S, S6730S-S, S6720-EI, and S6720S-EI support sub-interfaces.

  4. (Optional) On an Ethernet interface, run undo portswitch

    The interface is switched to Layer 3 mode.

    By default, an Ethernet interface works in Layer 2 mode.

    Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support switching between Layer 2 and Layer 3 modes.

  5. Configure a hostname for the DHCP client.

    dhcp client hostname hostname

    By default, no hostname is configured for a DHCP client.

    Client hostname is entered in the Option 12 field. A hostname allows access to a DHCP client through a domain name. A domain name consists of a hostname and domain name suffix.

  6. Configure an identifier for the DHCP client.

    dhcp client client-id client-id

    By default, a client's MAC address is used as its identifier.

    Client identifier information is entered in the Option 61 field to uniquely identify the DHCP client.

  7. Configure the DHCP client to send DHCP Discover messages that carry the Option 60 field.

    dhcp client class-id class-id

    By default, the Option 60 field is not configured.

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