8.2. Manipulating neighbors table using ”ip”

8.2.1. Manually add an entry

With following command you are able to manually add an entry

# ip -6 neigh add <IPv6 address> lladdr <link-layer address> dev <device>

Example:

# ip -6 neigh add fec0::1 lladdr 02:01:02:03:04:05 dev eth0

8.2.2. Manually delete an entry

Like adding also an entry can be deleted:

# ip -6 neigh del <IPv6 address> lladdr <link-layer address> dev <device>

Example:

# ip -6 neigh del fec0::1 lladdr 02:01:02:03:04:05 dev eth0

8.2.3. More advanced settings

The tool ”ip” is less documentated, but very strong. See online ”help” for more:

# ip -6 neigh help
Usage: ip neigh { add | del | change | replace } { ADDR [ lladdr LLADDR ] 
          [ nud { permanent | noarp | stale | reachable } ] 
          | proxy ADDR } [ dev DEV ] 
       ip neigh {show|flush} [ to PREFIX ] [ dev DEV ] [ nud STATE ]

Looks like some options are only for IPv4...if you can contribute information about flags and advanced usage, pls. send.


Your connection is via: IPv4
Your address: 18.117.106.23
mirrors.bieringer.de
is maintained by
webmaster at bieringer dot de
(Impressum)
powered by Apache HTTP server powered by Linux