How can i write "ACL Description"?


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

Userlevel 7
Test. Please disregard this post.
Userlevel 5
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
Hi Brad.

i find it.

thanks your help.

Reply