Celestica Documentation Portal

Find your product documents here

show ndp

Displays the IPv6 neighbor cache. If the L3 interface that the neighbor entry is learnt is on a VLAN, it also displays the Egress L2 port through which the neighbor MAC is reachable, if not a "-". If the neighbor is not reachable or invalid, the MAC is displayed as "-".

Syntaxshow ndp [ vrf <vrfname>] [ <interfacename> | <ipv6address> ]
Command modeEXEC
Parameters
  • vrfname – Name of the VRF. Accepts a string of maximum 32 characters.

  • interfacename– Name of the L3 Interface, such as Ethernet0, PortChannel10, Loopback2, Vlan100 or Management0.

  • ipv6address – IPv6 Neighbor Address.

Usage
  • <vrfname> is optional. If <vrfname> is not given, all the VRFs Neighbor Cache is retrieved.

  • <interfacename> is optional. If <interfacename> is not given, all Neighbor Cache entries learnt on L3 Interfaces is retrieved.

  • <ipv6address> is optional. By default, all Neighbors are retrieved if not specified.

Supported Releases1.1.0 or later
Click command show ndp -if <interface> [<ipv6address>]
Example
sonic# show ndp vrf Vrf-101
Address                   MacAddress         Iface      Vlan  Status
------------------------  -----------------  -------  ------  --------
2023::b:2                 -                  -           101  FAILED
2023::6:2                 00:00:23:88:87:47  -           101  STALE
2023::1:2                 00:00:23:88:87:42  -           101  STALE
2023::8:2                 00:00:23:88:87:49  -           101  STALE
fe80::200:23ff:fe88:8738  00:00:23:88:87:38  -           101  STALE
2023::3:2                 00:00:23:88:87:44  -           101  STALE
2023::a:2                 00:00:23:88:87:4b  -           101  STALE
2023::5:2                 00:00:23:88:87:46  -           101  STALE
2023::7:2                 00:00:23:88:87:48  -           101  STALE
2023::2:2                 00:00:23:88:87:43  -           101  STALE
2023::9:2                 00:00:23:88:87:4a  -           101  STALE
2023::4:2                 00:00:23:88:87:45  -           101  STALE
Total number of entries 12

sonic# show ndp
Address                    MacAddress         Iface        Vlan    Status
-------------------------  -----------------  -----------  ------  ---------
fe80::e48:c6ff:fe85:ef5a   0c:48:c6:85:ef:5a  Management0  -       STALE
2023::b:2                  -                  -            101     FAILED
2023::6:2                  00:00:23:88:87:47  -            101     STALE
fe80::eab5:d0ff:fe82:894   e8:b5:d0:82:08:94  Management0  -       STALE
2023::1:2                  00:00:23:88:87:42  -            101     STALE
fe80::36ad:61ff:fef1:a4fa  34:ad:61:f1:a4:fa  Management0  -       STALE
2023::8:2                  00:00:23:88:87:49  -            101     STALE
fe80::200:23ff:fe88:8738   00:00:23:88:87:38  -            101     STALE
2023::3:2                  00:00:23:88:87:44  -            101     STALE
fe80::eab5:d0ff:fe81:ec94  e8:b5:d0:81:ec:94  Management0  -       REACHABLE
2010::2                    -                  Ethernet5    -       FAILED
fe80::eab5:d0ff:fe81:b694  e8:b5:d0:81:b6:94  Management0  -       REACHABLE
2023::a:2                  00:00:23:88:87:4b  -            101     STALE
2023::5:2                  00:00:23:88:87:46  -            101     STALE
2023::7:2                  00:00:23:88:87:48  -            101     STALE
2023::2:2                  00:00:23:88:87:43  -            101     STALE
2023::9:2                  00:00:23:88:87:4a  -            101     STALE
fe80::36ad:61ff:fef1:a56c  34:ad:61:f1:a5:6c  Ethernet5    -       STALE
2023::4:2                  00:00:23:88:87:45  -            101     STALE
fe80::eab5:d0ff:fe81:f794  e8:b5:d0:81:f7:94  Management0  -       STALE
Total number of entries 20
sonic#
sonic# show ndp Management0
Address                    MacAddress         Iface        Vlan    Status
-------------------------  -----------------  -----------  ------  ---------
fe80::e48:c6ff:fe85:ef5a   0c:48:c6:85:ef:5a  Management0  -       STALE
fe80::eab5:d0ff:fe82:894   e8:b5:d0:82:08:94  Management0  -       STALE
fe80::36ad:61ff:fef1:a4fa  34:ad:61:f1:a4:fa  Management0  -       STALE
fe80::eab5:d0ff:fe81:ec94  e8:b5:d0:81:ec:94  Management0  -       REACHABLE
fe80::eab5:d0ff:fe81:b694  e8:b5:d0:81:b6:94  Management0  -       REACHABLE
fe80::eab5:d0ff:fe81:f794  e8:b5:d0:81:f7:94  Management0  -       STALE
Total number of entries 6
sonic#
sonic# show ndp 2023::a:2
Address    MacAddress         Iface      Vlan  Status
---------  -----------------  -------  ------  --------
2023::a:2  00:00:23:88:87:4b  -           101  STALE
Total number of entries 1