cancel
Showing results for 
Search instead for 
Did you mean: 

How can i write "ACL Description"?

How can i write "ACL Description"?

KD
New Contributor
Is there a way to add a description when creating an ACL with 1 line?

// Normal ACL Create
entry permit_1
{ if match all {
# 1F-A side Network
source-address 10.10.10.0/24 ;
destination-address 10.10.20.0/24 ;
protocol icmp ;
}
then {
permit ;
count count_pertmit_1 ;
}
}

// 1 line command acl
entry pertmit_1 {if {source-address 10.10.10.0/24 ; destination-address 10.10.20.0/24 ; protocol icmp ; } then {permit ; count count_pertmit_1 ; }}

I want to insert the description "# 1F-A side Network" as normal.
Do you know how to type in 1 Line command?
2 REPLIES 2

KD
New Contributor
Hi Brad.

i find it.

thanks your help.

BradP
Extreme Employee
Hi Kyeong,
Commenting should be allowed. In the ACL solutions guide (link:http://extrcdn.extremenetworks.com/wp-content/uploads/2014/10/ACL_Solutions_Guide.pdf) , they use examples where commenting starting with a # is allowed. If you have any doubt, you can use vi to create the policy file and then use the "check policy " and it will check the syntax of the policy file for you.

Hope this helps!

Thanks
Brad
GTM-P2G8KFN