[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]

Example: Defining a Custom Internet Control Message Protocol Application

JUNOS Software supports Internet Control Message Protocol (ICMP)—as well as several ICMP messages—as predefined or custom applications. When configuring a custom ICMP application, you must define a type and code.

Before You Begin

  1. Establish basic connectivity. (See the Getting Started Guide for your device.)
  2. For background information, read:

There are different message types within ICMP. For example:

An ICMP message type can also have a message code. The code provides more specific information about the message, as shown in Table 33.

Table 33: Message Descriptions

Message Type

Message Code

5 = Redirect

0 = Redirect datagram for the network (or subnet)

 

1 = Redirect datagram for the host

 

2 = Redirect datagram for the type of application and network

 

3 = Redirect datagram for the type of application and host

 

 

11 = Time Exceeded Codes

0 =Time to live exceeded in transit

 

1 = Fragment reassembly time exceeded

JUNOS Software supports any type or code within the 0—255 range.

To define a Custom Internet Control Message Protocol application (ICMP) as the transport protocol, use either J-Web or the CLI configuration editor.

In this example, you define a custom application named “ host-unreachable” using ICMP as the transport protocol. The type is 3 (for destination unreachable) and the code is 1 (for host unreachable). You set the timeout value at 4 minutes.

This topic covers:

J-Web Configuration

  1. Select Configure>CLI Tools>Point and Click CLI.
  2. Next to Applications, click Configure or Edit.
  3. Next to Application, click Configure or Edit.
  4. In the Application name box, type host-unreachable.
  5. From the ICMP type list, select Enter specific value.
  6. In the Number box, type 5.
  7. From the ICMP code list, select Enter specific value.
  8. In the Number box, type 0 and click OK.
  9. In the Inactivity timeout box, type 4 and click OK.
  10. If you are finished configuring the device, commit the configuration.

CLI Configuration

user@host# set applications application host-unreachable icmp-type 5 icmp-code 0
user@host# set applications application host-unreachable inactivity-timeout 4

If you are finished configuring the device, commit the configuration.

Related Topics


[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]