No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Configuration Guide - IP Service

S2720, S5700, and S6720 V200R013C00

This document describes the configurations of IP Service, including IP address, ARP, DHCP, DHCP policy VLAN, DNS, mDNS gateway, mDNS relay, UDP Helper, IP performance optimization, IPv6, DHCPv6, IPv6 DNS, IPv6 over IPv4 tunnel, and IPv4 over IPv6 tunnel.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring a Device as a BOOTP Client

Configuring a Device as a BOOTP Client

Enabling the BOOTP Client Function

Context

Before a device can function as a BOOTP client, you must enable the BOOTP client function.

After an interface is enabled with the BOOTP client function, the interface can obtain network parameters including the IP address from the DHCP server. If the allocated IP address and IP addresses of other interfaces are on the same network segment, the interface does not use the allocated IP address and does not re-apply for an IP address. To allow the interface to re-apply for an IP address, run the shutdown and then the undo shutdown commands on the interface. Alternatively, run the undo ip address bootp-alloc and then the ip address bootp-alloc commands on the interface.

Procedure

  1. Enter the system view.

    system-view

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

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

    Only the S5720EI, S5720HI, S5730HI, S6720EI, S6720HI, and S6720S-EI support sub-interfaces.

  3. (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.
    NOTE:

    Only the S5720EI, S5720HI, S5730HI, S6720EI, S6720HI, and S6720S-EI support switching between Layer 2 and Layer 3 modes.

  4. Enable the BOOTP client function.

    ip address bootp-alloc

(Optional) Configuring Attributes

Context

Configuring attributes allows you to specify certain parameters for the BOOTP client.

Procedure

  1. Enter the system view.

    system-view

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

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

    Only the S5720EI, S5720HI, S5730HI, S6720EI, S6720HI, and S6720S-EI support sub-interfaces.

  3. (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.
    NOTE:

    Only the S5720EI, S5720HI, S5730HI, S6720EI, S6720HI, and S6720S-EI support switching between Layer 2 and Layer 3 modes.

  4. Configure a hostname for the BOOTP client.

    dhcp client hostname hostname

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

    A hostname allows access to a BOOTP client through a domain name. A domain name consists of a hostname and domain name suffix.

  5. Configure an identifier for the BOOTP client.

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

(Optional) Configuring Gateway Detection

Context

To enable a BOOTP client to detect the status of the gateway, enable the gateway detection function. A BOOTP client enabled with the gateway detection function sends an ARP Request packet to detect the gateway status after obtaining an IP address. If the BOOTP client receives no ARP Reply packet within the detection period, it considers the gateway address incorrect or the gateway device faulty, and then re-applies for an IP address.

Procedure

  1. Enter the system view.

    system-view

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

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

    Only the S5720EI, S5720HI, S5730HI, S6720EI, S6720HI, and S6720S-EI support sub-interfaces.

  3. (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.
    NOTE:

    Only the S5720EI, S5720HI, S5730HI, S6720EI, S6720HI, and S6720S-EI support switching between Layer 2 and Layer 3 modes.

  4. Configure the gateway detection function on the BOOTP client.

    dhcp client gateway-detect period period retransmit retransmit timeout time
    By default, the gateway detection function is not configured on a BOOTP client.

(Optional) Configuring a BOOTP Client to Dynamically Obtain Routing Information

Context

To allow a BOOTP client to communicate with other network devices, you need to configure a route in which the next hop address is the gateway address of the client. If the gateway address of the client is dynamically obtained from the DHCP server and the route is statically configured on the client, the static route must be manually modified when the gateway address changes. After the BOOTP client is configured to dynamically obtain routing entries through DHCP, the next hop address in the static route is automatically updated when the gateway address changes, lowering maintenance costs.

A DHCP server can allocate routing entries to BOOTP clients. On a device functioning as the BOOTP client, you can set the priorities of routing entries allocated by the DHCP server so that the BOOTP client can dynamically update its routing table.

Procedure

  1. Enter the system view.

    system-view

  2. Configure the BOOTP client to obtain routing entries through DHCP.

    ip route ip-address { mask | mask-length } interface-type interface-number dhcp [ preference-value  ]

    By default, a BOOTP client does not obtain routing entries through DHCP.

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

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

    Only the S5720EI, S5720HI, S5730HI, S6720EI, S6720HI, 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.
    NOTE:

    Only the S5720EI, S5720HI, S5730HI, S6720EI, S6720HI, and S6720S-EI support switching between Layer 2 and Layer 3 modes.

  5. Set the priority of routing entries allocated by the DHCP server to BOOTP clients.

    dhcp client default-route preference preference-value

    The default priority of routing entries allocated by the DHCP server to BOOTP clients is 60.

Verifying the DHCP Client Configuration

Procedure

  • On an interface enabled with the DHCP client function, run the display this command to view the configuration of the DHCP client.
  • Run the display dhcp client command to view the status of the DHCP client.
Translation
Download
Updated: 2019-04-20

Document ID: EDOC1100065678

Views: 36312

Downloads: 264

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next