jumation / neigh

Show IPv6 neighbor cache information in Junos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Show IPv6 neighbor cache information in Junos

Neigh.slax is a Junos op script which improves and extends the Junos show ipv6 neighbors command.

Overview

Junos show ipv6 neighbors command provides limited options and often displays IPv6 address and rest of the information on separate lines which makes the output difficult to match:

output of "show ipv6 neighbors"

Neigh.slax makes sure, that information associated with IPv6 address is on the same line:

output of "op neigh"

As seen above, additional column Interface Description is shown. Also, neigh allows to search by the interface:

output of "op neigh interface"

..by MAC address using different notations:

output of "op neigh mac"

..and by IPv6 address:

output of "op neigh ip"

All those options can be combined. In addition, neigh.slax has a resolve option, which shows the name of the range of IP address space from RIR databases and vendor name according to MAC address OUI:

op neigh resolve

Installation

Copy(for example, using scp) the neigh.slax to /var/db/scripts/op/ directory and enable the script file under [edit system scripts op]:

root@vmx1> file list detail /var/db/scripts/op/neigh.slax 
-rw-r--r--  1 root  wheel      12717 Oct 27 10:44 /var/db/scripts/op/neigh.slax
total files: 1

root@vmx1> show configuration system scripts | display inheritance no-comments 
op {
    file neigh.slax {
        description "Show IPv6 neighbor cache information";
        /* verify the integrity of an op script before running the script */
        checksum sha-256 5be02ca9f8874c754e4cb4527b9b7ae894ed0eecdca5c5b1a76c475aba00bb64;
    }
    no-allow-url;
}
synchronize;

root@vmx1> 

In case of two routing engines, the script needs to be copied to the /var/db/scripts/op/ directory on both routing engines. In addition, resolve argument requires a CGI script or special-purpose small httpd in management server:

output of "systemctl status resolver"

License

GNU General Public License v3.0

About

Show IPv6 neighbor cache information in Junos

License:GNU General Public License v3.0


Languages

Language:Python 100.0%