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
S1720, S2700, S5700, and S6720 V200R011C10

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).
(Optional) Configuring a DHCP Client to Dynamically Obtain Routing Information

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

Context

To allow a DHCP 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 DHCP 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 DHCP clients. On a device functioning as the DHCP client, you can set the priorities of routing entries allocated by the DHCP server so that the DHCP client can dynamically update its routing table.

Procedure

  1. Enter the system view.

    system-view

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

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

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

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

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

    Only the S5720EI, S5720HI, S6720EI, 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 S5720HI, S5720EI, S6720EI, 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 DHCP clients.

    dhcp client default-route preference preference-value

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

Translation
Download
Updated: 2020-02-26

Document ID: EDOC1000178170

Views: 274511

Downloads: 1029

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next