Difference between revisions of "IPv6: Menampilkan Route IPv6 yang ada"

From OnnoWiki
Jump to navigation Jump to search
Line 27: Line 27:
  
 
  # /sbin/route -A inet6  
 
  # /sbin/route -A inet6  
 +
 +
atau
 +
 +
# /sbin/route -n -A inet6
  
 
Contoh (di filter untuk "eth0"):  
 
Contoh (di filter untuk "eth0"):  
Line 35: Line 39:
 
  fe80::/10        ::      UA  256 0 0 eth0 <- Route link-local address  
 
  fe80::/10        ::      UA  256 0 0 eth0 <- Route link-local address  
 
  ff00::/8        ::      UA  256 0 0 eth0 <- Route multicast address
 
  ff00::/8        ::      UA  256 0 0 eth0 <- Route multicast address
  ::/0            ::      UDA 256 0 0 eth0 <- Automatic default route
+
  ::/0            ::      UDA 256 0 0 eth0 <- Automatic default route
 
 
  
 
==Pranala Menarik==
 
==Pranala Menarik==
  
 
* [[IPv6]]
 
* [[IPv6]]

Revision as of 05:18, 3 February 2019

Kita dapat men-cek apakah IPv6 sudah terkonfigurasi secara automatis.

Install net-tools

apt install net-tools

Menggunakan "ip"

Penggunaan

# /sbin/ip -6 route show [dev <device>] 

Contoh

# /sbin/ip -6 route show dev eth0 

Hasilnya kira-kira:

2001:0db8:0:f101::/64 proto kernel metric 256 mtu 1500 advmss 1440 
fe80::/10             proto kernel metric 256 mtu 1500 advmss 1440 
ff00::/8              proto kernel metric 256 mtu 1500 advmss 1440 
default               proto kernel metric 256 mtu 1500 advmss 1440 

Penggunaan "route"

Penggunaan

# /sbin/route -A inet6 

atau

# /sbin/route -n -A inet6 

Contoh (di filter untuk "eth0"):

# /sbin/route -A inet6 |grep -w "eth0" 
2001:0db8:0:f101 ::/64 :: UA  256 0 0 eth0 <- Route global address 
fe80::/10        ::       UA  256 0 0 eth0 <- Route link-local address 
ff00::/8         ::       UA  256 0 0 eth0 <- Route multicast address
::/0             ::       UDA 256 0 0 eth0 <- Automatic default route

Pranala Menarik