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

From OnnoWiki
Jump to navigation Jump to search
 
Line 31: Line 31:
  
 
  # /sbin/route -n -A inet6  
 
  # /sbin/route -n -A inet6  
 +
# /sbin/route -F -n -A inet6
 +
# /sbin/route -C -n -A inet6
  
 
Contoh (di filter untuk "eth0"):  
 
Contoh (di filter untuk "eth0"):  

Latest revision as of 05:44, 11 June 2020

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"

Kita dapat melihat apakah IPv6 sudah terkonfigurasi dengan baik dengan mencek routing jaringan menggunakan perintah,

# /sbin/route -A inet6 

atau

# /sbin/route -n -A inet6 
# /sbin/route -F -n -A inet6
# /sbin/route -C -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

Contoh lain

# /sbin/route -n -A inet6
Kernel IPv6 routing table
Destination                    Next Hop                   Flag Met Ref Use If
::1/128                        ::                         U    256 2     0 lo
2001::/32                      ::                         U    256 5     0 teredo
fe80::/64                      ::                         U    100 1     0 enp3s0
fe80::/64                      ::                         U    256 1     0 teredo
::/0                           ::                         U    1029 5     0 teredo
::/0                           fe80::1                    UG   20100 2     0 enp3s0
::1/128                        ::                         Un   0   7     0 lo
2001:0:53aa:64c:202e:e0b1:98b1:9feb/128 ::                         Un   0   6     0 teredo
fe80::ffff:ffff:ffff/128       ::                         Un   0   2     0 teredo
fe80::b0a6:57e3:48ad:44ad/128  ::                         Un   0   7     0 enp3s0
fe80::d79f:a85c:41c9:ca7c/128  ::                         Un   0   2     0 teredo
ff00::/8                       ::                         U    256 5     0 enp3s0
ff00::/8                       ::                         U    256 1     0 teredo
::/0                           ::                         !n   -1  1     0 lo

Pranala Menarik