Difference between revisions of "IPv6: Manipulasi tabel Tetangga / Neighbor menggunakan perintah ip"
Jump to navigation
Jump to search
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...) |
Onnowpurbo (talk | contribs) |
||
Line 4: | Line 4: | ||
With following command you are able to 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> | + | # ip -6 neigh add <IPv6 address> lladdr <link-layer address> dev <device> |
Example: | Example: | ||
− | # ip -6 neigh add fec0::1 lladdr 02:01:02:03:04:05 dev eth0 | + | # ip -6 neigh add fec0::1 lladdr 02:01:02:03:04:05 dev eth0 |
8.2.2. Manually delete an entry | 8.2.2. Manually delete an entry | ||
Line 14: | Line 14: | ||
Like adding also an entry can be deleted: | Like adding also an entry can be deleted: | ||
− | # ip -6 neigh del <IPv6 address> lladdr <link-layer address> dev <device> | + | # ip -6 neigh del <IPv6 address> lladdr <link-layer address> dev <device> |
Example: | Example: | ||
− | # ip -6 neigh del fec0::1 lladdr 02:01:02:03:04:05 dev eth0 | + | # ip -6 neigh del fec0::1 lladdr 02:01:02:03:04:05 dev eth0 |
8.2.3. More advanced settings | 8.2.3. More advanced settings | ||
Line 24: | Line 24: | ||
The tool “ip” is less documentated, but very strong. See online “help” for more: | The tool “ip” is less documentated, but very strong. See online “help” for more: | ||
− | # ip -6 neigh help | + | # ip -6 neigh help |
− | Usage: ip neigh { add | del | change | replace } { ADDR [ lladdr LLADDR ] | + | |
− | + | 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. | Looks like some options are only for IPv4...if you can contribute information about flags and advanced usage, pls. send. |
Revision as of 08:43, 23 May 2013
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.