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 V200R012(C00 and C20)

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 Server to Allocate Network Parameters Besides IP Addresses

(Optional) Configuring a DHCP Server to Allocate Network Parameters Besides IP Addresses

Context

DHCP servers can allocate other network parameters in addition to IP addresses to DHCP clients. These parameters include the IP address of a DNS server, startup configuration file, and self-defined options.

When network parameters, excluding IP addresses, are allocated to dynamic and static clients, configuration commands are the same if an interface address pool is used but are different if a global address pool is used. This is because:
  • Network parameters for dynamic clients are configured in the global address pool view.
  • Network parameters for static clients are configured in the global address pool and DHCP Option template views.

    Network parameters configured in the DHCP Option template view take effect only for static clients. If a network parameter is configured differently in the global address pool and DHCP Option template views, the configuration in the DHCP Option template view takes effect.

Configuring a Gateway Address for Clients

Context

When a DHCP client connects to a DHCP server or host outside the local network segment, data must be forwarded through an egress gateway. You can perform this task to configure an egress gateway address for the client. This task is required only when the global address pool is used. For the interface address pool, if a device functions as the gateway and the DHCP server, the IP address of the interface through which the DHCP server connects to the client is the egress gateway address of the client. In this case, you do not need to configure the egress gateway address. If different devices function as the gateway and the DHCP server respectively, you need to configure the egress gateway address.

NOTE:
  • For a global address pool:

    If a gateway address is configured on the DHCP server, a DHCP client obtains the gateway address from the DHCP server and automatically generates a default route to the gateway address.

    If you run the option121 command on the DHCP server to allocate classless static routes to DHCP clients, the DHCP client uses an allocated classless static route and does not automatically generate a default route to the gateway address.

  • For an interface address pool:

    The egress gateway address is the IP address of the interface connecting the DHCP server to the DHCP client. The DHCP client obtains the IP address as the gateway address and automatically generates a default route to the gateway address.

    If you run the dhcp server option121 command on the DHCP server to allocate classless static routes to DHCP clients, the DHCP client uses an allocated classless static route and does not automatically generate a default route to the gateway address.

Do not configure a gateway address for DHCP clients in the following scenarios:
  • When no DHCP relay agent is deployed, the gateway address is the IP address of the interface connecting the DHCP server to the DHCP client.
  • When a DHCP relay agent is deployed, the gateway address is the IP address of the interface connecting the DHCP relay agent to the client.

In a scenario where Virtual Router Redundancy Protocol (VRRP) and DHCP are deployed, if the VRRP group functions as the DHCP server, perform this task to configure the group virtual IP address as the gateway address.

To load balance traffic and improve network reliability, configure multiple egress gateways. Each address pool can be configured with a maximum of eight gateway addresses.

When a global address pool is used to allocate network parameters, configuration commands are different for dynamic and static clients. Network parameters for dynamic clients are configured in the global address pool view, and network parameters for static clients are configured in either the global address pool view or DHCP Option template view. The DHCP Option template must be configured when static clients require network parameters that are different from those of dynamic clients. Network parameters configured in the DHCP Option template view take effect only for static clients. If a network parameter is configured differently in the global address pool and DHCP Option template views, the configuration in the DHCP Option template view takes effect.

Procedure

  • In the interface address pool view:
    1. Run system-view

      The system view is displayed.

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

      The interface view or sub-interface view is displayed.

      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. Run dhcp server gateway-list ip-address &<1-8>

      A default gateway IP address that a DHCP server pre-allocates to DHCP clients is configured.

      By default, no egress gateway address is configured.

  • In the global address pool view:
    1. Run system-view

      The system view is displayed.

    2. Run ip pool ip-pool-name

      The global address pool view is displayed.

    3. Run gateway-list ip-address &<1-8>

      A gateway address for DHCP clients is configured.

      By default, no egress gateway address is configured.

  • In the DHCP Option template view:

    1. Run system-view

      The system view is displayed.

    2. Run dhcp option template template-name

      A DHCP Option template is created and its view is displayed.

      By default, no DHCP Option template is created on a device.

      To allocate network parameters (except IP addresses) to static clients, configure a DHCP Option template. Network parameters configured in the DHCP Option template view take effect only for static clients. If a network parameter is configured differently in the global address pool and DHCP Option template views, the configuration in the DHCP Option template view takes effect.

      To allocate IP addresses only to static clients (for details, see (Optional) Configuring a DHCP Server to Allocate Fixed IP Addresses to Specified Clients), you do not need to configure a DHCP Option template.

    3. Run gateway-list ip-address &<1-8>

      A gateway address for DHCP clients is configured.

      By default, no egress gateway address is configured.

      If you need to configure other items in the DHCP Option template view, complete them first before performing the following steps.

    4. (Optional) Run quit

      Return to the system view.

    5. (Optional) Run ip pool ip-pool-name

      The global address pool view is displayed.

    6. (Optional) Run static-bind ip-address ip-address mac-address mac-address [ option-template template-name | description description ]

      A DHCP Option template is bound to static clients.

Configuring DNS and the NetBIOS Service on DHCP Clients

Context

To enable DHCP clients to communicate with devices on other networks through host names, configure the DNS or NetBIOS service.

DNS, defined by RFC 1034 and provided by TCP/IP, translates host names into IP addresses.

NetBIOS, defined by IBM, is applicable to small LANs with dozens of PCs to provide the following services:

  • Host naming services on a network segment through UDP port 137
  • Data services (through UDP port 138), including data transmitting between programs, browser notification services, and network neighbor setup on users' desktop systems
  • Session services (through TCP port 139), including file sharing and printing

Clients running on Microsoft Windows use the NetBIOS protocol for communication. The Windows Internet Naming Service (WINS) server translates host names into IP addresses. Since NetBIOS is vulnerable to attacks, it is optional on Windows operating systems later than Windows 2000. Users can enable or disable NetBIOS as required.

When a DHCP client uses the NetBIOS protocol for communication, its host name must be mapped to an IP address. Based on the modes to obtain mapping, NetBIOS nodes are classified into the following types:
  • b-node: in broadcast mode

    This node obtains its mapping in broadcast mode.

  • p-node: in peer-to-peer mode

    This node obtains its mapping by communicating with the NetBIOS server in unicast mode.

  • m-node: in mixed mode

    An m-node is a p-node that has certain broadcast features. The node first sends broadcast packets to obtain its mapping. If no mapping is obtained, the node sends unicast packets.

  • h-node: in hybrid mode

    An h-node is a b-node enabled with an end-to-end communication mechanism. The node first sends unicast packets to obtain its mapping. If no mapping is obtained, the node sends broadcast packets.

NOTE:

When installing a Microsoft Windows operating system on a PC, you must define a host name. Otherwise, the system generates a host name at random. Host names are unique on a network.

When a global address pool is used to allocate network parameters, configuration commands are different for dynamic and static clients. Network parameters for dynamic clients are configured in the global address pool view, and network parameters for static clients are configured in either the global address pool view or DHCP Option template view. The DHCP Option template must be configured when static clients require network parameters that are different from those of dynamic clients. Network parameters configured in the DHCP Option template view take effect only for static clients. If a network parameter is configured differently in the global address pool and DHCP Option template views, the configuration in the DHCP Option template view takes effect.

Procedure

  • Based on an interface address pool:

    • Configure a DNS service.

      1. Run system-view

        The system view is displayed.

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

        The interface view or sub-interface view is displayed.

        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. Run the following commands to configure the IP address of the DNS server and domain name for the DHCP clients.
        • Run dhcp server dns-list { ip-address &<1-8> | unnumbered interface interface-type interface-number }

          The IP address of the DNS server is configured for DHCP clients.

          By default, no DNS server IP address is configured in an address pool.

          Each address pool can be configured with a maximum of eight DNS server IP addresses.

        • Run dhcp server domain-name domain-name

          The domain name is allocated to DHCP clients.

          By default, no domain name is allocated.

    • Configure a NetBIOS service.

      1. Run system-view

        The system view is displayed.

      2. Run interface interface-type interface-number

        The interface view is displayed.

      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. Run the following commands to configure the IP address of the NetBIOS server and NetBIOS node type for the DHCP clients.
        • Run dhcp server nbns-list ip-address &<1-8>

          The IP address of the NetBIOS server is configured for DHCP clients.

          By default, no NetBIOS server IP address is configured in an address pool.

          Each address pool can be configured with a maximum of eight NetBIOS server IP addresses.

        • Run dhcp server netbios-type { b-node | h-node | m-node | p-node }

          The NetBIOS node type for DHCP clients is configured.

          By default, no NetBIOS node type is configured for DHCP clients.

  • Based on a global address pool:

    • In the global address pool view:

      • Configure a DNS service.

        1. Run system-view

          The system view is displayed.

        2. Run ip pool ip-pool-name

          The global address pool view is displayed.

        3. Run the following commands to configure the IP address of the DNS server and domain name suffix for the DHCP clients.
          • Run dns-list ip-address &<1-8>

            The IP address of the DNS server is configured for DHCP clients.

            By default, no DNS server IP address is configured in an address pool.

            Each address pool can be configured with a maximum of eight DNS server IP addresses.

          • Run domain-name domain-name

            The domain name suffix is allocated to DHCP clients.

            By default, no domain name suffix is allocated.

      • Configure a NetBIOS service.

        1. Run system-view

          The system view is displayed.

        2. Run ip pool ip-pool-name

          The global address pool view is displayed.

        3. Run the following commands to configure the IP address of the NetBIOS server and NetBIOS node type for the DHCP clients.
          • Run nbns-list ip-address &<1-8>

            The IP address of the NetBIOS server is configured for DHCP clients.

            By default, no NetBIOS server IP address is configured in an address pool.

            Each address pool can be configured with a maximum of eight NetBIOS server IP addresses.

          • Run netbios-type { b-node | h-node | m-node | p-node }

            The NetBIOS node type for DHCP clients is configured.

            By default, no NetBIOS node type is configured for DHCP clients.

    • In the DHCP Option template view:

      • Configure a DNS service.

        1. Run system-view

          The system view is displayed.

        2. Run dhcp option template template-name

          A DHCP Option template is created and its view is displayed.

          By default, no DHCP Option template is created on a device.

          To allocate network parameters (except IP addresses) to static clients, configure a DHCP Option template. Network parameters configured in the DHCP Option template view take effect only for static clients. If a network parameter is configured differently in the global address pool and DHCP Option template views, the configuration in the DHCP Option template view takes effect.

          To allocate IP addresses only to static clients (for details, see (Optional) Configuring a DHCP Server to Allocate Fixed IP Addresses to Specified Clients), you do not need to configure a DHCP Option template.

        3. Run the following commands to configure the IP address of the DNS server and domain name suffix for the DHCP clients.
          • Run dns-list ip-address &<1-8>

            The IP address of the DNS server is configured for DHCP clients.

            By default, no DNS server IP address is configured in an address pool.

            Each address pool can be configured with a maximum of eight DNS server IP addresses.

          • Run domain-name domain-name

            The domain name suffix is allocated to DHCP clients.

            By default, no domain name suffix is allocated.

          If you need to configure other items in the DHCP Option template view, complete them first before performing the following steps.

        4. (Optional) Run quit

          Return to the system view.

        5. (Optional) Run ip pool ip-pool-name

          The global address pool view is displayed.

        6. (Optional) Run static-bind ip-address ip-address mac-address mac-address [ option-template template-name | description description ]

          A DHCP Option template is bound to static clients.

      • Configure a NetBIOS service.

        1. Run system-view

          The system view is displayed.

        2. Run dhcp option template template-name

          A DHCP Option template is created and its view is displayed.

          By default, no DHCP Option template is created on a device.

          To allocate network parameters (except IP addresses) to static clients, configure a DHCP Option template. Network parameters configured in the DHCP Option template view take effect only for static clients. If a network parameter is configured differently in the global address pool and DHCP Option template views, the configuration in the DHCP Option template view takes effect.

          To allocate IP addresses only to static clients (for details, see (Optional) Configuring a DHCP Server to Allocate Fixed IP Addresses to Specified Clients), you do not need to configure a DHCP Option template.

        3. Run the following commands to configure the IP address of the NetBIOS server and NetBIOS node type for the DHCP clients.
          • Run nbns-list ip-address &<1-8>

            The IP address of the NetBIOS server is configured for DHCP clients.

            By default, no NetBIOS server IP address is configured in an address pool.

            Each address pool can be configured with a maximum of eight NetBIOS server IP addresses.

          • Run netbios-type { b-node | h-node | m-node | p-node }

            The NetBIOS node type for DHCP clients is configured.

            By default, no NetBIOS node type is configured for DHCP clients.

          To configure other items in the DHCP Option template view, do so and then perform the following steps when you have completed the other configurations.

        4. (Optional) Run quit

          Return to the system view.

        5. (Optional) Run ip pool ip-pool-name

          The global address pool view is displayed.

        6. (Optional) Run static-bind ip-address ip-address mac-address mac-address [ option-template template-name | description description ]

          A DHCP Option template is bound to static clients.

Configuring a SIP Server IP Address Allocated to a DHCP Client

Context

When you configure a SIP server IP address in an address pool, the DHCP server specifies the SIP server IP address when allocating IP addresses to DHCP clients.

Procedure

  • Interface address pool:
    1. Run system-view

      The system view is displayed.

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

      The interface view or sub-interface view is displayed.

      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. Run dhcp server sip-server { ip-address ip-address &<1-2> | list domain-name &<1-2> }

      A SIP server IP address allocated to a DHCP client is configured.

      By default, the SIP server IP address is not configured.

  • Global address pool:
    1. Run system-view

      The system view is displayed.

    2. Run ip pool ip-pool-name

      The global address pool view is displayed.

    3. Run sip-server { ip-address ip-address &<1-2> | list domain-name &<1-2> }

      A SIP server IP address allocated to a DHCP client is configured.

      By default, the SIP server IP address is not configured.

Configuring a Configuration File for a DHCP Client

Context

Some clients require certain network parameters, in addition to IP addresses, to be configured before they can work normally. A DHCP server can allocate configuration information such as the startup configuration file to clients. Configuration files are usually saved on the DHCP server or a dedicated file server. The DHCP server can specify the address of the file server so that clients can easily obtain files from the file server.

When a global address pool is used to allocate network parameters, configuration commands are different for dynamic and static clients. Network parameters for dynamic clients are configured in the global address pool view, and network parameters for static clients are configured in either the global address pool view or DHCP Option template view. The DHCP Option template must be configured when static clients require network parameters that are different from those of dynamic clients. Network parameters configured in the DHCP Option template view take effect only for static clients. If a network parameter is configured differently in the global address pool and DHCP Option template views, the configuration in the DHCP Option template view takes effect.

NOTE:

If the startup configuration file is saved on a file server, the route between the DHCP client and file server must be reachable.

Procedure

  • Configure a configuration file based on an interface address pool.
    1. Run system-view

      The system view is displayed.

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

      The interface view or sub-interface view is displayed.

      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. Run dhcp server bootfile bootfile

      The name of the startup configuration file for DHCP clients is configured.

      By default, the name is not configured.

    5. Run dhcp server sname sname

      The name of the server from which DHCP clients obtain the startup configuration file is configured.

      By default, the name of the server is not configured.

    6. (Optional) Run dhcp server next-server ip-address

      The IP address of the server is configured for the client after the client automatically obtains an IP address.

      By default, the server IP address is not configured.

      You can also specify an IP address for the file server by configuring user-defined options for clients.

  • Configure configuration files based on a global address pool.

    • In the global address pool view:

      1. Run system-view

        The system view is displayed.

      2. Run ip pool ip-pool-name

        The global address pool view is displayed.

      3. Run bootfile bootfile

        The name of the startup configuration file for DHCP clients is configured.

        By default, the name of the startup configuration file for DHCP clients is not configured.

      4. Run sname sname

        The name of the server from which DHCP clients obtain the startup configuration file is configured.

        By default, the name of the server from which a DHCP client obtains the startup configuration file is not configured.

      5. (Optional) Run next-server ip-address

        The IP address of a server is configured to provide the network service for the client after the client automatically obtains the IP address.

        By default, the server IP address is not configured for the client after the client automatically obtains the IP address.

        To obtain files from the file server, perform this step. To specify the IP address of the file server, configure user-defined options for clients.

    • In the DHCP Option template view:

      1. Run system-view

        The system view is displayed.

      2. Run dhcp option template template-name

        A DHCP Option template is created and its view is displayed.

        By default, no DHCP Option template is created on a device.

        To allocate network parameters (except IP addresses) to static clients, configure a DHCP Option template. Network parameters configured in the DHCP Option template view take effect only for static clients. If a network parameter is configured differently in the global address pool and DHCP Option template views, the configuration in the DHCP Option template view takes effect.

        To allocate IP addresses only to static clients (for details, see (Optional) Configuring a DHCP Server to Allocate Fixed IP Addresses to Specified Clients), you do not need to configure a DHCP Option template.

      3. Run bootfile bootfile

        The name of the startup configuration file for DHCP clients is configured.

        By default, the name of the startup configuration file for DHCP clients is not configured.

      4. Run sname sname

        The name of the server from which DHCP clients obtain the startup configuration file is configured.

        By default, the name of the server from which a DHCP client obtains the startup configuration file is not configured.

      5. (Optional) Run next-server ip-address

        The IP address of a server is configured to provide the network service for the client after the client automatically obtains the IP address.

        By default, the server IP address is not configured for the client after the client automatically obtains the IP address.

        To obtain files from the file server, perform this step. To specify the IP address of the file server, configure user-defined options for clients.

        To configure other items in the DHCP Option template view, do so and then perform the following steps when you have completed the other configurations.

      6. (Optional) Run quit

        Return to the system view.

      7. (Optional) Run ip pool ip-pool-name

        The global address pool view is displayed.

      8. (Optional) Run static-bind ip-address ip-address mac-address mac-address [ option-template template-name | description description ]

        A DHCP Option template is bound to static clients.

Configuring User-defined Options for Clients

Context

Vendors can define DHCP options. A device functioning as a DHCP server can allocate vendor-defined network parameters to clients using the following methods:
  • Based on the options in DHCP Discovery messages:

    Options are configured using the dhcp server option (based on an interface address pool) or option (based on a global address pool) command. The device provides options only when requested by clients.

  • By forcibly appending the Options field:

    Options are configured using the dhcp server force insert option (based on an interface address pool) or force insert option (based on a global address pool) command. The device inserts the Options field to DHCP Response message, regardless of whether the options are requested by clients.

When a global address pool is used to allocate network parameters, configuration commands are different for dynamic and static clients. Network parameters for dynamic clients are configured in the global address pool view, and network parameters for static clients are configured in either the global address pool view or DHCP Option template view. The DHCP Option template must be configured when static clients require network parameters that are different from those of dynamic clients. Network parameters configured in the DHCP Option template view take effect only for static clients. If a network parameter is configured differently in the global address pool and DHCP Option template views, the configuration in the DHCP Option template view takes effect.

Procedure

  • Configure user-defined options for clients based on an interface address pool.
    1. Run system-view

      The system view is displayed.

    2. (Optional) Run dhcp server trust option82

      The DHCP server is enabled to trust Option 82.

      By default, the device is enabled to trust Option 82.

      The Option 82 field is called the DHCP relay agent information field. It records the location of a DHCP client, based on which a DHCP server can select address allocation policies including IP addresses and other network parameters. Vendors can define Option 82 based on their requirements. Currently, a device functioning as the DHCP server cannot allocate network parameters to clients based on policies. After the device is enabled to trust Option 82, the device normally allocates IP addresses to clients. If the device is disabled from trusting Option 82, the device discards received messages carrying Option 82.

    3. (Optional) Run dhcp anti-attack check duplicate option [ option-start [ to option-end ] ] &<1-254>

      The device is enabled to check and discard DHCP messages with duplicate options.

      By default, a device does not check and discard DHCP messages with duplicate options.

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

      The interface view or sub-interface view is displayed.

      NOTE:

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

    5. (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.

    6. (Optional) Run dhcp server force insert option code &<1-254>

      The DHCP server is configured to forcibly insert an Option field to DHCP Reply messages sent to DHCP clients.

      By default, the DHCP server does not forcibly insert an Option field to DHCP Reply messages.

      After this function is configured, the device inserts an Option field to a DHCP Reply message regardless of whether the option has been requested.

    7. Run dhcp server option code [ sub-option sub-code ] { ascii ascii-string | hex hex-string | cipher cipher-string | ip-address ip-address &<1-8> }

      DHCP options are configured.

      By default, no option is configured.

      NOTE:

      If an option carries a password, using ascii or hex is insecure. Using cipher is recommended. For security purposes, the password must be at least six characters long and contain at least two of the following: digits, lowercase letters, uppercase letters, and special characters.

      After an option is configured, the device provides this option only when requested by clients.

      Some options are configured using other commands, as described in the following table.
      Table 3-10  Commands for configuring options

      Option

      Configuration Command

      Description

      Option1 Mask-length in the ip address ip-address { mask | mask-length } command. Subnet mask
      Option3 Ip-address in the ip address ip-address { mask | mask-length } command. Gateway address
      Option6 dhcp server dns-list ip-address &<1-8> DNS server IP address
      Option15 dhcp server domain-name (interface view) domain-name Domain name
      Option44 dhcp server nbns-list ip-address &<1-8> NetBIOS server IP address
      Option46 dhcp server netbios-type { b-node | h-node | m-node | p-node } NetBIOS node type
      Option50 N/A Requested IP address
      Option51 dhcp server lease { day day [ hour hour [ minute minute ] ] | unlimited } IP address lease
      Option52 N/A Additional option
      Option53 N/A DHCP message type
      Option54 N/A Server identifier
      Option55 N/A Parameter request list
      Option57 N/A Maximum length of a DHCP message
      Option58 N/A Lease renewal time (T1), which is 50% of the lease time
      Option59 N/A Lease renewal time (T2), which is 87.5% of the lease time
      Option61 N/A Client identifier
      Option82 N/A Relay agent information
      Option121 dhcp server option121 ip-address { ip-address mask-length gateway-address } &<1-8> A group of classless routes
      Option184 dhcp server option184 { as-ip ip-address | fail-over ip-address dialer-string | ncp-ip ip-address | voice-vlan vlan-id } Voice parameters

    8. Run dhcp server option121 ip-address { ip-address mask-length gateway-address } &<1-8>

      A classless static route allocated to a DHCP client is configured.

      By default, no classless static route allocated to DHCP clients is configured.

    9. Run dhcp server option184 { as-ip ip-address | fail-over ip-address dialer-string | ncp-ip ip-address | voice-vlan vlan-id }

      Option 184 allocated to DHCP clients is configured.

      By default, the Option 184 field is not configured.

  • Configure user-defined options for clients based on a global address pool.

    • In the global address pool view:

      1. Run system-view

        The system view is displayed.

      2. (Optional) Run dhcp server trust option82

        The DHCP server is enabled to trust Option 82.

        By default, the device is enabled to trust Option 82.

        The Option 82 field is called the DHCP relay agent information field. It records the location of a DHCP client, based on which a DHCP server can select address allocation policies including IP addresses and other network parameters. Vendors can define Option 82 based on their requirements. Currently, a device functioning as the DHCP server cannot allocate network parameters to clients based on policies. After the device is enabled to trust Option 82, the device normally allocates IP addresses to clients. If the device is disabled from trusting Option 82, the device discards received messages carrying Option 82.

      3. Run ip pool ip-pool-name

        The global address pool view is displayed.

      4. (Optional) Run force insert option code &<1-254>

        The DHCP server is configured to forcibly insert an Option field to DHCP Reply messages sent to DHCP clients.

        By default, the DHCP server does not forcibly insert an Option field to DHCP Reply messages.

      5. Run option code [ sub-option sub-code ] { ascii ascii-string | hex hex-string | cipher cipher-string | ip-address ip-address &<1-8> }

        DHCP options are configured.

        By default, no option is configured.

        NOTE:

        If an option carries a password, using ascii or hex is insecure. Using cipher is recommended. For security purposes, the password must be at least six characters long and contain at least two of the following: digits, lowercase letters, uppercase letters, and special characters.

        Some options are configured using other commands, as described in the following table.
        Table 3-11  Commands for configuring options

        Option

        Configuration Command

        Description

        Option1 mask-length in the network (IP address pool view) ip-address [ mask { mask | mask-length } ] command Subnet mask
        Option3 gateway-list ip-address &<1-8> Gateway address
        Option6 dns-list ip-address &<1-8> DNS server IP address
        Option15 domain-name domain-name Domain name
        Option44 nbns-list ip-address &<1-8> NetBIOS server IP address
        Option46 netbios-type { b-node | h-node | m-node | p-node } NetBIOS node type
        Option50 N/A Requested IP address
        Option51 lease { day day [ hour hour [ minute minute ] ] | unlimited } IP address lease
        Option52 N/A Additional option
        Option53 N/A DHCP message type
        Option54 N/A Server identifier
        Option55 N/A Parameter request list
        Option57 N/A Maximum length of a DHCP message
        Option58 N/A Renewal time (T1), which is 50% of the lease time
        Option59 N/A Lease renewal time (T2), which is 87.5% of the lease time
        Option61 N/A Client identifier
        Option82 N/A Relay agent information
        Option121 option121 ip-address { ip-address mask-length gateway-address } &<1-8> A group of classless routes
        Option184 option184 { as-ip ip-address | fail-over ip-address dialer-string | ncp-ip ip-address | voice-vlan vlan-id } Voice parameters
      6. Run option121 ip-address { ip-address mask-length gateway-address } &<1-8>

        A classless static route allocated to a DHCP client is configured.

        By default, no classless static route allocated to DHCP clients is configured.

      7. Run option184 { as-ip ip-address | fail-over ip-address dialer-string | ncp-ip ip-address | voice-vlan vlan-id }

        Option 184 allocated to DHCP clients is configured.

        By default, the Option 184 field is not configured.

    • In the DHCP Option template view:

      1. Run system-view

        The system view is displayed.

      2. Run dhcp option template template-name

        A DHCP Option template is created and its view is displayed.

        By default, no DHCP Option template is created on a device.

        To allocate network parameters (except IP addresses) to static clients, configure a DHCP Option template. Network parameters configured in the DHCP Option template view take effect only for static clients. If a network parameter is configured differently in the global address pool and DHCP Option template views, the configuration in the DHCP Option template view takes effect.

        To allocate IP addresses only to static clients (for details, see (Optional) Configuring a DHCP Server to Allocate Fixed IP Addresses to Specified Clients), you do not need to configure a DHCP Option template.

      3. (Optional) Run force insert option code &<1-254>

        The DHCP server is configured to forcibly insert an Option field to DHCP Reply messages sent to DHCP clients.

        By default, the DHCP server does not forcibly insert an Option field to DHCP Reply messages.

      4. Run option code [ sub-option sub-code ] { ascii ascii-string | hex hex-string | cipher cipher-string | ip-address ip-address &<1-8> }

        DHCP options are configured.

        By default, no option is configured.

        NOTE:

        If an option carries a password, using ascii or hex is insecure. Using cipher is recommended. For security purposes, the password must be at least six characters long and contain at least two of the following: digits, lowercase letters, uppercase letters, and special characters.

        Some options are configured using commands, as described in Table 3-11.

      5. Run option121 ip-address { ip-address mask-length gateway-address } &<1-8>

        A classless static route allocated to a DHCP client is configured.

        By default, no classless static route allocated to DHCP clients is configured.

      6. Run option184 { as-ip ip-address | fail-over ip-address dialer-string | ncp-ip ip-address | voice-vlan vlan-id }

        Option 184 allocated to DHCP clients is configured.

        By default, the Option 184 field is not configured.

        If you need to configure other items in the DHCP Option template view, complete them first before performing the following steps.

      7. (Optional) Run quit

        Return to the system view.

      8. (Optional) Run ip pool ip-pool-name

        The global address pool view is displayed.

      9. (Optional) Run static-bind ip-address ip-address mac-address mac-address [ option-template template-name | description description ]

        A DHCP Option template is bound to static clients.

Translation
Download
Updated: 2018-12-24

Document ID: EDOC1100038342

Views: 86224

Downloads: 283

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