Support Support Downloads Knowledge Base Juniper Support Portal Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

How to enable debugging for IPv6 Neighbor Discovery packets

0

0

Article ID: KB37169 KB Last Updated: 21 Oct 2021Version: 1.0
Summary:

While troubleshooting IPv6 Neighbor Discovery (ND) issues, you may need to enable debugging via sysctl when analyzing the behavior based on PCAP and statistics on the RE is not enough.

Solution:
To enable IPv6 ND debugging:
  1. In RE shell (start shell user root):

    sysctl -w net.inet6.icmp6.nd6_debug=1
  2. Ensure that kernel logging is set to any:

    set system syslog file messages kernel any
  3. After enabling debugs, it shows additional log messages on how ND will be handled for exception packets:

    Jun 11 07:51:23  vmx105 kernel: if_rtb_default_ifl_bitmap_set() rtb ifl bitmap itable op 1 done. rtb id 0 ifl idx 362 iff 0xfffff80006323818.
    Jun 11 07:51:23  vmx105 kernel: ge-0/0/2: starting DAD for 2002:500::1
    Jun 11 07:51:23  vmx105 kernel: ge-0/0/2: starting DAD for fe80::5668:a3ff:fe1e:3c80

    Jun 11 07:51:34  vmx105 kernel: nd6_dad_timer: Setting ia->collision_cnt back to 0.
    Jun 11 07:51:34  vmx105 kernel: nd6_dad_timer: whole cc after zeroing: 0x0
    Jun 11 07:51:34  vmx105 kernel: nd6_dad_timer: Setting ia->collision_cnt back to 0.
    Jun 11 07:51:34  vmx105 kernel: nd6_dad_timer: whole cc after zeroing: 0x0
    < . . >
    Jun 11 07:57:23  vmx105 kernel: nd6_ns_input: NS packet from non-neighbor
    Jun 11 07:57:27  vmx105 kernel: nd6_ns_input: NS packet from non-neighbor
  4. Disabling the debug:

    sysctl -w net.inet6.icmp6.nd6_debug=0
Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search