CONFIG OBJECT NETWORK NEW

Level

object,modify

History

Appears in Netasq 6.0.0

Description

Add network object

Usage

name=<netname> [ip=<network IPV4 address> mask=<netmask>|prefixlen=<prefixlen>] [ipv6=<network IPv6 address> prefixlenv6=<prefixlen>] [color=xxxxxx] [comment=<comment>] [update=<0|1|2>]

Remark

at least one ip (v4 or v6) must be specified
Without update parameter, command will return an error if an object with the same name exists.
0.0.0.0 and 255.255.255.255 IPv4 netmasks are not allowed
/0 and /32 IPv4 prefix len are not allowed
/0 and /128 IPv6 prefix len are not allowed
With update=2, modules which use the object are not reloaded.

Example

CONFIG OBJECT NETWORK NEW name=net0 ip=10.0.0.0 prefixlen=16 comment="IPv4 only network"
CONFIG OBJECT NETWORK NEW name=net1 ip=10.0.0.0 mask=255.0.0.0 comment="IPv4 only network"
CONFIG OBJECT NETWORK NEW name=net2 ipv6=fe80:: prefixlenv6=64 comment="IPv6 only network"
CONFIG OBJECT NETWORK NEW name=net3 ip=10.0.0.0 mask=255.0.0.0 ipv6=fe80:: prefixlenv6=64 comment="IPv4v6 network"

Cache category

objects