859service-portUse service-port to specify a port number or a port range as a match criterion in a user-definedNBAR rule.Use undo service-port to restore the default.Syntaxservice-port { port-num | range start-port end-port }undo service-portDefaultA user-defined NBAR rule matches packets of all port numbers.ViewsNBAR rule viewPredefined user rolesnetwork-adminParametersport-num: Specifies the port number in the range of 0 to 65535.range: Specifies a port range.start-port: Specifies the start port number for the port range, in the range of 0 to 65535.end-port: Specifies the end port number for the port range, in the range of 0 to 65535. The end portnumber cannot be smaller than the start port number.Usage guidelinesThe following matrix shows the command and hardware compatibility:Hardware Command compatibilityMSR810/810-W/810-W-DB/810-LM/810-W-LM/810-10-PoE/810-LM-HK/810-W-LM-HK YesMSR810-LMS/810-LUS NoMSR2600-10-X1 YesMSR 2630 YesMSR3600-28/3600-51 YesMSR3600-28-SI/3600-51-SI NoMSR3610-X1/3610-X1-DP/3610-X1-DC/3610-X1-DP-DC YesMSR 3610/3620/3620-DP/3640/3660 YesMSR5620/5660/5680 YesThe specified port number or port range is used to match the packets' destination ports first. If nomatch is found for a packet, the device continues to match its source port. A packet is determined asa matching packet as long as one of the ports is matched.If you execute this command multiple times for the same NBAR rule, the most recent configurationtakes effect.Examples# Configure user-defined NBAR rule abcd to match packets with port numbers 2001 through 2004.