CONFIG GLOBAL OBJECT HOST NEW

Level

globalobject+modify

History

Appears in 6 0 0

Description

Add global 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] [localfirst=0|1] [comment=<comment>] [update=<0|1|2>]
name=<rangename> [begin=<range first ip> end=<range last ip>] [beginv6=<range first ipv6> endv6=<range last ipv6>] [color=xxxxxx] [localfirst=0|1] [comment=<comment>] [update=<0|1|2>]

For single host at least one ip (v4 or v6) must be specified
For range at least one begin and end (v4 or v6) 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 GLOBAL OBJECT HOST NEW name=host4 ip=10 0 0 1 resolve=static comment="Global IPv4 only host" mac=11:22:33:44:55:66
CONFIG GLOBAL OBJECT HOST NEW name=host6 ipv6=fe80::1 resolve=static comment="Global IPv6 only host"
CONFIG GLOBAL OBJECT HOST NEW name=host46 ip=10 0 0 1 ipv6=fe80::1 resolve=static comment="Global IPv4v6 host"
CONFIG GLOBAL OBJECT HOST NEW name=range4 begin=10 0 0 1 end=10 0 0 10 comment="Global IPv4 only range"
CONFIG GLOBAL OBJECT HOST NEW name=range6 beginv6=fe80::1 endv6=fe80::10 comment="Global IPv6 only range"
CONFIG GLOBAL OBJECT HOST NEW name=range46 begin=10 0 0 1 end=10 0 0 10 beginv6=fe80::1 endv6=fe80::10 comment="Global IPv4v6 range" CACHE_CATEGORY objects