Add network to address group via CLI?

cancel
Showing results for 
Search instead for 
Did you mean: 

Add network to address group via CLI?

L0 Member

I am trying to add a network to an address group via CLI on PAN OS 9.1.X

 

# set vsys vsys2 address-group XXXXXXXX static 108.61.41.0/24

 

Server error :  static '108.61.41.0/24' is not a valid reference

 

What is the valid syntax?

1 REPLY 1

Cyber Elite
Cyber Elite

@jsogla,

So an address-group is just a list of address objects. You need to create an address object for that ip-netmask prior to including it in the address-group. 

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!