
C613-50186-01 Rev B
Command Reference for AR2050V
2626
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
A
PPLICATION
AND
E
NTITY
C
OMMANDS
ICMP
-
CODE
icmp-code
Overview
Use this command to configure an ICMP message code for an application.
ICMP has many messages that are identified by a “type” field and many of these
ICMP types have a “code” field. Use the
type. For the full list of the ICMP code assignments, you can visit the Internet
Assigned Numbers Authority (IANA) Web site:
www.iana.org
.
Use the
no
variant of this command to restore the ICMP message code to its
default, which is any.
Syntax
icmp-code {<
code-number
>|any}
no icmp-code
Default
The default ICMP code number is any.
Mode
Application Mode
Usage
You should configure the ICMP code only for applications that use protocol ICMP.
To configure the application protocol, see the
You can specify only one ICMP message code for an application. The newly
specified code will replace the previous one.
Examples
To specify ICMP code
5
(redirect) for application
openVPN
, use the commands:
awplus#
configure terminal
awplus(config)#
application openVPN
awplus(config-application)#
icmp-code 5
To specify ICMP code as any code for application
openVPN
, use the commands: To
restore the ICMP message code to its default for application openVPN, use the
commands:
awplus#
configure terminal
awplus(config)#
application openVPN
awplus(config-application)#
icmp-code any
awplus#
configure terminal
awplus(config)#
application openVPN
awplus(config-application)#
no icmp-code
Validation
commands
Parameter
Description
<
code-number
>
Specify an ICMP message code number in the range of 0 to 255.
any
Any ICMP message code in the range of 0 to 255.