IPv6: Manipulasi tabel Tetangga / Neighbor menggunakan perintah ip

From OnnoWiki
Revision as of 11:22, 22 May 2013 by Onnowpurbo (talk | contribs) (New page: 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-l...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

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

Example:

  1. 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:

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

Example:

  1. 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:

  1. 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.