set host

In the R81.10.X releases, this command is available starting from the R81.10.00 version.

Description

Configures an existing host object configured with an IP address.

See:

Syntax

set host <name>

      [ name <new-name> ]

      [ ipv4-address <ipv4-address> ]

      [ ipv6-address <ipv6-address> ]

      [ dns-resolving {true | false} ]

      [ dhcp-exclude-ip-addr off ]

      [ dhcp-exclude-ip-addr on ]

            [ dhcp-reserve-ip-addr-to-mac { off | on [ mac-addr <mac-addr> ] ]

            [ mac-reserved-in-dhcp { off | on [ mac-addr <mac-addr> ] ]

Parameters

Parameter

Description

host

Specifies the host object name.

Press the TAB key to see the available options.

name

Configures the new object name.

A string that begins with a letter and contains up to 32 characters without spaces, of this set:

  • a-z (lower-case letters)

  • A-Z (upper-case letters)

  • 0-9 (digits)

  • '.' (period)

  • '-' (minus)

  • '_' (underscore)

dhcp-exclude-ip-addr

Controls whether to exclude (on) or not (off) the object's IP address(es) from the internal DHCP service.

dhcp-reserve-ip-addr- to-mac

Controls whether to reserve (on) or not (off) the association of the object's IP address and its MAC address in the internal DHCP service.

dns-resolving

Controls whether to add (true) or not (false) the name of this network object to the database of the internal DNS service

ipv4-address

Configures the IPv4 address.

ipv6-address

Configures the IPv6 address.

mac-addr

Configures the MAC address.

mac-reserved-in-dhcp

This parameter is deprecated.

Use the parameter "dhcp-reserve-ip-addr-to-mac".

reserve-mac-address

This parameter is deprecated.

Use the parameter "mac-addr".

Example Command

set host MyHost name MyNewHost ipv4-address 192.168.1.1 dns-resolving true dhcp-exclude-ip-addr on dhcp-reserve-ip-addr-to-mac on mac-addr 00:1C:7F:21:05:BE mac-reserved-in-dhcp on mac-addr 00:1C:7F:21:05:BE