How to create address object/group by CLI

Zyxel_Kevin
Zyxel_Kevin Posts: 892  Zyxel Employee
Zyxel Certified Network Administrator - Security Zyxel Certified Sales Associate 100 Answers 500 Comments

Question:

How to create object/group by CLI ?

Using CLI is very helpful if you have many spam addresses.

Answer:

usgflex200h> edit running ; enter config mode

usgflex200h running config# object address-object address spam1 type host 1.1.1.1

usgflex200h running config# object address-object address spam2 type host 1.1.1.2

usgflex200h running config# object address-object address spam3 type host 1.1.1.3

;Add addresses

usgflex200h running config# object address-object group SPAM address-list spam1

usgflex200h running config# object address-object group SPAM address-list spam2

usgflex200h running config# object address-object group SPAM address-list spam3

;Add addresses into group

Tagged: