This article describes an issue in which an error message of "IP unreachable" is returned.
ICMP message type 3 is an "unreachable" message. Within this message type are a number of codes which define various types of messages. This table is from IANA and shows the various types:
Codes:
In Cisco implementation, no ip unreachable is a command that is enabled by default on an interface.
no ip unreachable
There is no knob available on Junos for "no ip unreachables".
By default when route lookups fail, ICMP packets are sent to the source. These packets are ICMP TypeDestination Unreachable (3) and ICMP Code=Network Unreachable (0). Following is an example:
R1-----R2
Where:
[edit]lab@R1# run show interfaces terse ge-0/0/2.0Interface Admin Link Proto Local Remotege-0/0/2.0 up up inet 100.1.1.2/24mplsmultiservice[edit]lab@R1#[edit]lab@R1# run show route 10.10.10.10inet.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)+ = Active Route, - = Last Active, * = Both10.10.10.10/32 *[Static/5] 00:06:34> to 100.1.1.1 via ge-0/0/2.0[edit]lab@R1#{MASTER}[edit]lab@R2# run show interfaces terse ge-4/1/0.0Interface Admin Link Proto Local Remotege-4/1/0.0 up up inet 100.1.1.1/24mplsmultiservice{MASTER}[edit]lab@R2# run show route 10.10.10.10
[edit]lab@R1# run ping 10.10.10.10PING 10.10.10.10 (10.10.10.10): 56 data bytes36 bytes from 100.1.1.1: Destination Net UnreachableVr HL TOS Len ID Flg off TTL Pro cks Src Dst4 5 00 0054 63d3 0 0000 40 01 597b 100.1.1.2 10.10.10.1036 bytes from 100.1.1.1: Destination Net UnreachableVr HL TOS Len ID Flg off TTL Pro cks Src Dst4 5 00 0054 6400 0 0000 40 01 594e 100.1.1.2 10.10.10.1036 bytes from 100.1.1.1: Destination Net UnreachableVr HL TOS Len ID Flg off TTL Pro cks Src Dst4 5 00 0054 641f 0 0000 40 01 592f 100.1.1.2 10.10.10.1036 bytes from 100.1.1.1: Destination Net UnreachableVr HL TOS Len ID Flg off TTL Pro cks Src Dst4 5 00 0054 643b 0 0000 40 01 5913 100.1.1.2 10.10.10.1036 bytes from 100.1.1.1: Destination Net UnreachableVr HL TOS Len ID Flg off TTL Pro cks Src Dst4 5 00 0054 645a 0 0000 40 01 58f4 100.1.1.2 10.10.10.10^C--- 10.10.10.10 ping statistics ---5 packets transmitted, 0 packets received, 100% packet loss
This is Junos default behavior and a firewall filter is required to block these packets.
[edit]lab@R1# show firewallfamily inet { filter test { term 1 { from { protocol icmp; icmp-type unreachable; } then { count unreach; log; reject; } } term 2 { then accept; } } }[edit]lab@R1# show interfaces ge-0/0/2.0Aug 04 11:40:28family inet { filter { input test; } address 100.1.1.2/24;}family mpls;lab@R1# run ping 10.10.10.10PING 10.10.10.10 (10.10.10.10): 56 data bytes^C--- 10.10.10.10 ping statistics ---4 packets transmitted, 0 packets received, 100% packet loss[edit]lab@R1#