Chapter4define
Command
Illustration
Servicesareclassiīæedintodefaultservicesprovidedbysystem
andusercustomizedservices.Asfordefaultservices,usercannot
performadd,delete,modifyandsomeotheroperations.
ExampleT oaddoneservicehttp8080withprotocolnumbertobe6andport
idtobe8080,executethefollowingcommand:
#serviceaddnamehttp8080protocol6port8080
servicemodify
Command
Function
Thiscommandisusedtomodifyonecustomizedservice.
CommandFormatservicemodifyname<string1>[protocol<number1>][port
<number2>][port2<number3>][comment<string2>]
Parameter
Description
Parameter
Description
modifyThismodifiesoneservice.
name
Thisspecifiesthenameofservicetobe
modified.
<string1>
Thisisonestring,indicatingnameof
customizedservice.
protocolThissetsL3orL4protocolnumber.
<number1>Thisisonenumber,indicatingprotocol
number.
port
Thismodifiesthestartport,fromwhich
serviceisenabled.Incaseonlyoneportis
available,itonlyneedstosetstartportand
doesnātneedtosetendport.
<number2>
Thisisonenumber,indicatingidofstartport.
port2
Thismodifiesendportofservice.
<number3>
Thisisonenumber,indicatingidofendport.
comment
Thismodifiescontentofcomment.
<string2>
Thissonestring,indicatingthecontentof
comment.
ExampleT omodifyportidofservicehttp8080to8000,executethefollow-
ingcommand:
#servicemodifynamehttp8080port8000
servicerename
Command
Function
Thiscommandisusedtorenamecustomizedservice.
CommandFormatservicerenameoldname<string1>newname<string2>
ConfidentialandProprietaryInformationofZTECORPORATION55