Chapter7ServiceConguration
FIGURE68ACLCONFIGURATIONEXAMPLE
Congurationofswitch:
zte(cfg)#configaclhybridnumber300
zte(hybrid-acl-group)#rule1denyipany192.168.0.1255.255.255.255
zte(hybrid-acl-group)#exit
zte(cfg)#setport1-24acl300enable
zte(cfg)#settime-rangeworktimerangeperiod09:00to18:00daily
zte(cfg)#settime-rangeworktimeacl300rule1enable
Congurationdetection:
/*afterfinishingtheconfiguration,viewACLbinding
statethatalltheportsarebindingwithACL300.*/
zte(cfg)#showaclbindingall
IdPortTypeAclNo
---------------------
1PhyPort300
2PhyPort300
3PhyPort300
4PhyPort300
...
...
...
22PhyPort300
23PhyPort300
24PhyPort300
1.ACLisnotavailableinthetime-rangeof18:00-24:00and
0:00-9:00.
zte(cfg)#showtime-range
/*showtime-rangeconfiguration.Thetimerangeactivityispassive*/
Supportedtime-rangenumber:32
Configuredtime-rangenumber:1
nameactivitytyperange
------------------------------------------------------------
worktimepassiveperiod09:00to18:00daily
zte(cfg)#showaclconfig300
/*showthedetailedconfigurationofACL300.TheACLstate
bindingwithtime-rangeispassive.*/
AclNo:300
AclName:
AclType:hybrid
RuleNumber:1
-----------------------------------------------------------------
RuleId:1
CondentialandProprietaryInformationofZTECORPORATION155