Difference between revisions of "IPv6: Display IPv6 Address yang ada"

From OnnoWiki
Jump to navigation Jump to search
(New page: 6.1. Displaying existing IPv6 addresses First you should check, whether and which IPv6 addresses are already configured (perhaps auto-magically during stateless auto-configuration). 6.1.1...)
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
6.1. Displaying existing IPv6 addresses
+
Kita dapat mencek, apakah IPv6 address sudah dikonfigurasi secara automatic saat stateless auto-configuration.
  
First you should check, whether and which IPv6 addresses are already configured (perhaps auto-magically during stateless auto-configuration).
+
==Menggunakan "ip"==
6.1.1. Using "ip"
 
  
Usage:
+
Penggunaan
  
# /sbin/ip -6 addr show dev <interface>
+
# /sbin/ip -6 addr show dev <interface>
  
Example for a static configured host:
+
Contoh untuk host dengan statik konfigurasi
  
# /sbin/ip -6 addr show dev eth0
+
# /sbin/ip -6 addr show dev eth0
2: eth0: <BROADCAST,MULTICAST,UP&gt; mtu 1500 qdisc pfifo_ fast qlen 100
 
inet6 fe80::210:a4ff:fee3:9566/10 scope link
 
inet6 2001:0db8:0:f101::1/64 scope global
 
inet6 fec0:0:0:f101::1/64 scope site
 
  
Example for a host which is auto-configured
+
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qlen 1000
 +
    inet6 2001:470:36:ab6::4f0/128 scope global
 +
    inet6 2001:470:36:ab6:e47e:a439:2e5d:44a4/64 scope global temporary dynamic
 +
    inet6 2001:470:36:ab6:62a4:4cff:fe75:a6a0/64 scope global dynamic
 +
    inet6 fe80::62a4:4cff:fe75:a6a0/64 scope link
  
Here you see some auto-magically configured IPv6 addresses and their lifetime.
+
Sementara untuk host yang secara automatic di konfigurasi IPv6 dan ada lifetime-nya
  
# /sbin/ip -6 addr show dev eth0  
+
# /sbin/ip -6 addr show dev eth0  
3: eth0: <BROADCAST,MULTICAST,PROMISC,UP&gt; mtu 1500 qdisc pfifo_fast qlen
 
¬ 100
 
inet6 2002:d950:f5f8:f101:2e0:18ff:fe90:9205/64 scope global dynamic
 
valid_lft 16sec preferred_lft 6sec
 
inet6 3ffe:400:100:f101:2e0:18ff:fe90:9205/64 scope global dynamic
 
valid_lft 2591997sec preferred_lft 604797sec inet6 fe80::2e0:18ff:fe90:9205/10
 
¬ scope link
 
  
6.1.2. Using "ifconfig"
+
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qlen 1000
 +
    inet6 2001:470:36:ab6::4f0/128 scope global
 +
        valid_lft forever preferred_lft forever
 +
    inet6 2001:470:36:ab6:e47e:a439:2e5d:44a4/64 scope global temporary dynamic
 +
        valid_lft 6974sec preferred_lft 1574sec
 +
    inet6 2001:470:36:ab6:62a4:4cff:fe75:a6a0/64 scope global dynamic
 +
        valid_lft 6974sec preferred_lft 1574sec
 +
    inet6 fe80::62a4:4cff:fe75:a6a0/64 scope link
 +
        valid_lft forever preferred_lft forever
  
Usage:
+
==Penggunaan "ifconfig"==
  
# /sbin/ifconfig <interface>
+
Penggunaan:
  
Example (output filtered with grep to display only IPv6 addresses). Here you see different IPv6 addresses with different scopes.
+
# /sbin/ifconfig <interface>
  
# /sbin/ifconfig eth0 |grep "inet6 addr:"
+
Contoh (output di filter menggunakan grep untuk menampilkan hanya address IPv6 saja).
inet6 addr: fe80::210:a4ff:fee3:9566/10 Scope:Link
+
Disini kita bisa melihat IPv6 yang berbeda mempunyai scope yang berbeda.
inet6 addr: 2001:0db8:0:f101::1/64 Scope:Global
+
 
inet6 addr: fec0:0:0:f101::1/64 Scope:Site
+
# /sbin/ifconfig eth0 |grep "inet6 addr:"
 +
 
 +
inet6 addr: 2001:470:36:ab6:62a4:4cff:fe75:a6a0/64 Scope:Global
 +
inet6 addr: 2001:470:36:ab6:e47e:a439:2e5d:44a4/64 Scope:Global
 +
inet6 addr: fe80::62a4:4cff:fe75:a6a0/64 Scope:Link
 +
inet6 addr: 2001:470:36:ab6::4f0/128 Scope:Global

Latest revision as of 10:05, 26 June 2013

Kita dapat mencek, apakah IPv6 address sudah dikonfigurasi secara automatic saat stateless auto-configuration.

Menggunakan "ip"

Penggunaan

# /sbin/ip -6 addr show dev <interface>

Contoh untuk host dengan statik konfigurasi

# /sbin/ip -6 addr show dev eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qlen 1000
    inet6 2001:470:36:ab6::4f0/128 scope global 
    inet6 2001:470:36:ab6:e47e:a439:2e5d:44a4/64 scope global temporary dynamic 
    inet6 2001:470:36:ab6:62a4:4cff:fe75:a6a0/64 scope global dynamic 
    inet6 fe80::62a4:4cff:fe75:a6a0/64 scope link 

Sementara untuk host yang secara automatic di konfigurasi IPv6 dan ada lifetime-nya

# /sbin/ip -6 addr show dev eth0 
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qlen 1000
    inet6 2001:470:36:ab6::4f0/128 scope global 
       valid_lft forever preferred_lft forever
    inet6 2001:470:36:ab6:e47e:a439:2e5d:44a4/64 scope global temporary dynamic 
       valid_lft 6974sec preferred_lft 1574sec
    inet6 2001:470:36:ab6:62a4:4cff:fe75:a6a0/64 scope global dynamic 
       valid_lft 6974sec preferred_lft 1574sec
    inet6 fe80::62a4:4cff:fe75:a6a0/64 scope link 
       valid_lft forever preferred_lft forever

Penggunaan "ifconfig"

Penggunaan:

# /sbin/ifconfig <interface>

Contoh (output di filter menggunakan grep untuk menampilkan hanya address IPv6 saja). Disini kita bisa melihat IPv6 yang berbeda mempunyai scope yang berbeda.

# /sbin/ifconfig eth0 |grep "inet6 addr:"
inet6 addr: 2001:470:36:ab6:62a4:4cff:fe75:a6a0/64 Scope:Global
inet6 addr: 2001:470:36:ab6:e47e:a439:2e5d:44a4/64 Scope:Global
inet6 addr: fe80::62a4:4cff:fe75:a6a0/64 Scope:Link
inet6 addr: 2001:470:36:ab6::4f0/128 Scope:Global