IPv6: Menambahkan IPv6 Address

From OnnoWiki
Revision as of 10:51, 22 May 2013 by Onnowpurbo (talk | contribs) (New page: 6.2. Add an IPv6 address Adding an IPv6 address is similar to the mechanism of "IP ALIAS" addresses in Linux IPv4 addressed interfaces. 6.2.1. Using "ip" Usage: # /sbin/ip -6 addr add <...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

6.2. Add an IPv6 address

Adding an IPv6 address is similar to the mechanism of "IP ALIAS" addresses in Linux IPv4 addressed interfaces. 6.2.1. Using "ip"

Usage:

  1. /sbin/ip -6 addr add <ipv6address>/<prefixlength> dev <interface>

Example:

  1. /sbin/ip -6 addr add 2001:0db8:0:f101::1/64 dev eth0

6.2.2. Using "ifconfig"

Usage:

  1. /sbin/ifconfig <interface> inet6 add <ipv6address>/<prefixlength>

Example:

  1. /sbin/ifconfig eth0 inet6 add 2001:0db8:0:f101::1/64