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

From OnnoWiki
Jump to navigation Jump to search
(New page: 7.1. Displaying existing IPv6 routes First you should check, whether and which IPv6 addresses are already configured (perhaps auto-magically during auto-configuration). 7.1.1. Using "ip" ...)
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
7.1. Displaying existing IPv6 routes
+
Kita dapat men-cek apakah IPv6 sudah terkonfigurasi secara automatis.
  
First you should check, whether and which IPv6 addresses are already configured (perhaps auto-magically during auto-configuration).
+
==Menggunakan "ip"==
7.1.1. Using "ip"
 
  
Usage:
+
Penggunaan
  
# /sbin/ip -6 route show [dev <device>]
+
# /sbin/ip -6 route show [dev <device>]
  
Example:
+
Contoh
  
# /sbin/ip -6 route show dev eth0
+
# /sbin/ip -6 route show dev eth0
2001:0db8:0:f101::/64 proto kernel metric 256 mtu 1500 advmss 1440
+
2001:0db8:0:f101::/64 proto kernel metric 256 mtu 1500 advmss 1440
fe80::/10            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
+
ff00::/8              proto kernel metric 256 mtu 1500 advmss 1440
default              proto kernel metric 256 mtu 1500 advmss 1440
+
default              proto kernel metric 256 mtu 1500 advmss 1440
  
7.1.2. Using "route"
+
==Penggunaan "route"==
  
Usage:
+
Penggunaan
  
# /sbin/route -A inet6  
+
# /sbin/route -A inet6  
  
Example (output is filtered for interface eth0). Here you see different IPv6 routes for different addresses on a single interface.
+
Contoh (di filter untuk "eth0"):
  
# /sbin/route -A inet6 |grep -w "eth0"
+
# /sbin/route -A inet6 |grep -w "eth0"
2001:0db8:0:f101 ::/64 :: UA  256 0 0 eth0 <- Interface route for global
+
2001:0db8:0:f101 ::/64 :: UA  256 0 0 eth0 <- Interface route for global address
¬ address
+
fe80::/10        ::      UA  256 0 0 eth0 <- Interface route for link-local address
fe80::/10        ::      UA  256 0 0 eth0 <- Interface route for link-local
+
ff00::/8        ::      UA  256 0 0 eth0 <- Interface route for all multicast addresses
¬ address
+
::/0            ::      UDA 256 0 0 eth0 <- Automatic default route
ff00::/8        ::      UA  256 0 0 eth0 <- Interface route for all multicast
 
¬ addresses
 
::/0            ::      UDA 256 0 0 eth0 <- Automatic default route
 

Latest revision as of 07:46, 23 May 2013

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

Menggunakan "ip"

Penggunaan

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

Contoh

# /sbin/ip -6 route show dev eth0
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 

Contoh (di filter untuk "eth0"):

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