Neigh.slax is a Junos op script which improves and extends the Junos show ipv6 neighbors
command.
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
:
Neigh.slax makes sure, that information associated with IPv6 address is on the same line:
As seen above, additional column Interface Description
is shown. Also, neigh
allows to search by the interface:
..by MAC address using different notations:
..and by IPv6 address:
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:
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: