CONFIG OBJECT HOST NEW

Level

object,modify

History

Appears in Netasq 6.0.0 mac range appears in 4.1.0

Description

Add host object

Usage

name=<hostname> [ip=<ipaddress>] [ipv6=<ipv6address>] [type=router|server|host] [resolve=static|dynamic|manual] [mac=xx:xx:xx:xx:xx:xx] [color=xxxxxx] [comment=<comment>] [update=<0|1|2>]
name=<rangename> [begin=<range first ip> end=<range last ip>] [beginv6=<range first ipv6> endv6=<range last ipv6>] [beginmac=<range first mac> endmac=<range last mac>] [color=xxxxxx] [comment=<comment>] [update=<0|1|2>]

For single host at least one address (ipv4 or ipv6 or mac) must be specified
For range at least one begin and end (v4 or v6 or mac) must be specified

Remark

Without update parameter, command will return an error if an object with the same name exists.
With update=2, modules which use the object are not reloaded.

Example

CONFIG OBJECT HOST NEW name=host4 ip=10.0.0.1 resolve=static comment="IPv4 only host" mac=11:22:33:44:55:66
CONFIG OBJECT HOST NEW name=host6 ipv6=fe80::1 resolve=static comment="IPv6 only host"
CONFIG OBJECT HOST NEW name=host46 ip=10.0.0.1 ipv6=fe80::1 resolve=static comment="IPv4v6 host"
CONFIG OBJECT HOST NEW name=range4 begin=10.0.0.1 end=10.0.0.10 comment="IPv4 only range"
CONFIG OBJECT HOST NEW name=range6 beginv6=fe80::1 endv6=fe80::10 comment="IPv6 only range"
CONFIG OBJECT HOST NEW name=range46 begin=10.0.0.1 end=10.0.0.10 beginv6=fe80::1 endv6=fe80::10 comment="IPv4v6 range"
CONFIG OBJECT HOST NEW name=rangemac beginmac=11:22:33:44:55:60 endmac=11:22:33:44:55:70 comment="mac range"
CONFIG OBJECT HOST NEW name=hostmac mac=11:22:33:44:55:66 comment="mac only host"

Cache category

objects