add host

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

Description

Adds a new host object specified by its IP address.

See:

Syntax

add host name <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

name

Configures the Network Object name.

A string that begins with a letter and contain 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)

ipv4-address

Configures the IPv4 address.

ipv6-address

Configures the IPv6 address.

dns-resolving

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

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.

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

add host name MyHost 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