Difference between revisions of "IPv6: Menambahkan IPv6 Address"

From OnnoWiki
Jump to navigation Jump to search
(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 <...)
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
6.2. Add an IPv6 address
+
Menambahkan address IPv6 sama dengan mekanisme address "IP ALIAS" di Linux IPv4 interface.
  
Adding an IPv6 address is similar to the mechanism of "IP ALIAS" addresses in Linux IPv4 addressed interfaces.
 
6.2.1. Using "ip"
 
  
Usage:
+
==Menggunakan "ip"==
  
# /sbin/ip -6 addr add <ipv6address>/<prefixlength> dev <interface>
+
Penggunaan:
  
Example:
+
# /sbin/ip -6 addr add <ipv6address>/<prefixlength> dev <interface>
  
# /sbin/ip -6 addr add 2001:0db8:0:f101::1/64 dev eth0
+
Contoh:
  
6.2.2. Using "ifconfig"
+
# /sbin/ip -6 addr add 2001:0db8:0:f101::1/64 dev eth0
  
Usage:
+
==Menggunakan "ifconfig"==
  
# /sbin/ifconfig <interface> inet6 add <ipv6address>/<prefixlength>
+
Penggunaan:
  
Example:
+
# /sbin/ifconfig <interface> inet6 add <ipv6address>/<prefixlength>
  
# /sbin/ifconfig eth0 inet6 add 2001:0db8:0:f101::1/64
+
Contoh
 +
 
 +
# /sbin/ifconfig eth0 inet6 add 2001:0db8:0:f101::1/64
 +
 
 +
==Mengedit /etc/network/interfaces==
 +
 
 +
Edit
 +
 
 +
vi /etc/network/interfaces
 +
 
 +
Format kira-kira
 +
 
 +
  iface eth0 inet6 static
 +
        address 2001:db8::c0ca:1eaf
 +
        netmask 64
 +
        gateway 2001:db8::1ead:ed:beef

Latest revision as of 10:32, 9 August 2015

Menambahkan address IPv6 sama dengan mekanisme address "IP ALIAS" di Linux IPv4 interface.


Menggunakan "ip"

Penggunaan:

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

Contoh:

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

Menggunakan "ifconfig"

Penggunaan:

# /sbin/ifconfig <interface> inet6 add <ipv6address>/<prefixlength>

Contoh

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

Mengedit /etc/network/interfaces

Edit

vi /etc/network/interfaces

Format kira-kira

  iface eth0 inet6 static
       address 2001:db8::c0ca:1eaf
       netmask 64
       gateway 2001:db8::1ead:ed:beef