Difference between revisions of "IPv6 Debugging: Contoh untuk tcpdump paket dump"

From OnnoWiki
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
14.2. Examples for tcpdump packet dumps
+
Berikut adalah beberapa contoh hasil capture paket,
 +
barangkali akan bermanfaat saat melakukan debugging.
  
Here some examples of captured packets are shown, perhaps useful for your own debugging...
 
  
...more coming next...
+
==Menemukan (discovery) Router==
  
==14.2.1. Router discovery==
+
===Router advertisement===
 
 
===14.2.1.1. Router advertisement===
 
  
 
  15:43:49.484751 fe80::212:34ff:fe12:3450 > ff02::1: icmp6: router
 
  15:43:49.484751 fe80::212:34ff:fe12:3450 > ff02::1: icmp6: router
Line 16: Line 14:
 
  ¬ 0:12:34:12:34:50) (len 88, hlim 255)
 
  ¬ 0:12:34:12:34:50) (len 88, hlim 255)
  
Router with link-local address “fe80::212:34ff:fe12:3450” send an advertisement to the all-node-on-link multicast address “ff02::1” containing two prefixes “2002:0102:0304:1::/64” (lifetime 30 s) and “2001:0db8:0:1::/64” (lifetime 2592000 s) including its own layer 2 MAC address “0:12:34:12:34:50”.
+
Router dengan link-local address “fe80::212:34ff:fe12:3450” mengirimkan advertisement ke all-node-on-link multicast address “ff02::1” berisi dua prefix “2002:0102:0304:1::/64” (lifetime 30 detik) dan “2001:0db8:0:1::/64” (lifetime 2592000 detik) termasuk including 2 MAC address-nya “0:12:34:12:34:50”.
  
===14.2.1.2. Router solicitation===
+
===Router solicitation===
  
 
  15:44:21.152646 fe80::212:34ff:fe12:3456 > ff02::2: icmp6: router solicitation
 
  15:44:21.152646 fe80::212:34ff:fe12:3456 > ff02::2: icmp6: router solicitation
 
  ¬ (src lladdr: 0:12:34:12:34:56) (len 16, hlim 255)
 
  ¬ (src lladdr: 0:12:34:12:34:56) (len 16, hlim 255)
  
Node with link-local address “fe80::212:34ff:fe12:3456” and layer 2 MAC address “0:12:34:12:34:56” is looking for a router on-link, therefore sending this solicitation to the all-router-on-link multicast address “ff02::2”.
+
Node dengan link-local address “fe80::212:34ff:fe12:3456” dan layer 2 MAC address “0:12:34:12:34:56” sedang mencari router on-link, oleh karenanya mengirimkan solicitation ke all-router-on-link multicast address “ff02::2”.
  
==14.2.2. Neighbor discovery==
+
==Penemuan (discovery) Neighbor==
  
===14.2.2.1. Neighbor discovery solicitation for duplicate address detection===
+
===Neighbor discovery solicitation untuk deteksi address ganda / duplikat===
  
Following packets are sent by a node with layer 2 MAC address “0:12:34:12:34:56” during autoconfiguration to check whether a potential address is already used by another node on the link sending this to the solicited-node link-local multicast address.
+
Paket berikut dikirim oleh sebuah node dengan layer 2 MAC address “0:12:34:12:34:56” saat autokonfigurasi untuk mencek apakah ada address yang sudah digunakan oleh node lain di jaringan. Hal ini dilakukan dengan mengirim ke solicited-node link-local multicast address.
  
    Node wants to configure its link-local address “fe80::212:34ff:fe12:3456”, checks for duplicate now
+
Node ingin mengkonfigurasi link-local address “fe80::212:34ff:fe12:3456”, cek apakah ada yang menggunakan
  
 
  15:44:17.712338 :: > ff02::1:ff12:3456: icmp6: neighbor sol: who has
 
  15:44:17.712338 :: > ff02::1:ff12:3456: icmp6: neighbor sol: who has
 
  ¬ fe80::212:34ff:fe12:3456(src lladdr: 0:12:34:12:34:56) (len 32, hlim 255)
 
  ¬ fe80::212:34ff:fe12:3456(src lladdr: 0:12:34:12:34:56) (len 32, hlim 255)
  
    Node wants to configure its global address “2002:0102:0304:1:212:34ff:fe12:3456” (after receiving advertisement shown above), checks for duplicate now
+
Node ingin mengkonfigurasi global addressnya “2002:0102:0304:1:212:34ff:fe12:3456” (setelah menerima advertisement di atas), cek apakah ada duplikasi
  
 
  15:44:21.905596 :: > ff02::1:ff12:3456: icmp6: neighbor sol: who has
 
  15:44:21.905596 :: > ff02::1:ff12:3456: icmp6: neighbor sol: who has
Line 42: Line 40:
 
  ¬ hlim 255)
 
  ¬ hlim 255)
  
    Node wants to configure its global address “2001:0db8:0:1:212:34ff:fe12:3456” (after receiving advertisement shown above), checks for duplicate now
+
Node ingin mengkonfigurasi global address “2001:0db8:0:1:212:34ff:fe12:3456” (setelah menerima advertisement di atas), cek apakah ada duplikasi
  
 
  15:44:22.304028 :: > ff02::1:ff12:3456: icmp6: neighbor sol: who has
 
  15:44:22.304028 :: > ff02::1:ff12:3456: icmp6: neighbor sol: who has
Line 48: Line 46:
 
  ¬ 255)
 
  ¬ 255)
  
===14.2.2.2. Neighbor discovery solicitation for looking for host or gateway===
+
===Neighbor discovery solicitation untuk mencari for host atau gateway===
  
Node wants to send packages to “2001:0db8:0:1::10” but has no layer 2 MAC address to send packet, so send solicitation now
+
Node ingin mengirim paket ke “2001:0db8:0:1::10” tapi tidak punya layer 2 MAC address untuk mengirimkan paket, oleh karenanya mengirimkan solicitation
  
 
  13:07:47.664538 2002:0102:0304:1:2e0:18ff:fe90:9205 > ff02::1:ff00:10: icmp6:
 
  13:07:47.664538 2002:0102:0304:1:2e0:18ff:fe90:9205 > ff02::1:ff00:10: icmp6:
Line 56: Line 54:
 
  ¬ hlim 255)
 
  ¬ hlim 255)
  
Node looks for “fe80::10” now
+
Node mencari “fe80::10”
  
 
  13:11:20.870070 fe80::2e0:18ff:fe90:9205 > ff02::1:ff00:10: icmp6: neighbor
 
  13:11:20.870070 fe80::2e0:18ff:fe90:9205 > ff02::1:ff00:10: icmp6: neighbor
 
  ¬ sol: who has fe80::10(src lladdr: 0:e0:18:90:92:5) (len 32, hlim 255)
 
  ¬ sol: who has fe80::10(src lladdr: 0:e0:18:90:92:5) (len 32, hlim 255)

Latest revision as of 09:52, 9 July 2013

Berikut adalah beberapa contoh hasil capture paket, barangkali akan bermanfaat saat melakukan debugging.


Menemukan (discovery) Router

Router advertisement

15:43:49.484751 fe80::212:34ff:fe12:3450 > ff02::1: icmp6: router
¬ advertisement(chlim=64, router_ltime=30, reachable_time=0,
¬ retrans_time=0)(prefix info: AR valid_ltime=30, preffered_ltime=20,
¬ prefix=2002:0102:0304:1::/64)(prefix info: LAR valid_ltime=2592000,
¬ preffered_ltime=604800, prefix=2001:0db8:0:1::/64)(src lladdr:
¬ 0:12:34:12:34:50) (len 88, hlim 255)

Router dengan link-local address “fe80::212:34ff:fe12:3450” mengirimkan advertisement ke all-node-on-link multicast address “ff02::1” berisi dua prefix “2002:0102:0304:1::/64” (lifetime 30 detik) dan “2001:0db8:0:1::/64” (lifetime 2592000 detik) termasuk including 2 MAC address-nya “0:12:34:12:34:50”.

Router solicitation

15:44:21.152646 fe80::212:34ff:fe12:3456 > ff02::2: icmp6: router solicitation
¬ (src lladdr: 0:12:34:12:34:56) (len 16, hlim 255)

Node dengan link-local address “fe80::212:34ff:fe12:3456” dan layer 2 MAC address “0:12:34:12:34:56” sedang mencari router on-link, oleh karenanya mengirimkan solicitation ke all-router-on-link multicast address “ff02::2”.

Penemuan (discovery) Neighbor

Neighbor discovery solicitation untuk deteksi address ganda / duplikat

Paket berikut dikirim oleh sebuah node dengan layer 2 MAC address “0:12:34:12:34:56” saat autokonfigurasi untuk mencek apakah ada address yang sudah digunakan oleh node lain di jaringan. Hal ini dilakukan dengan mengirim ke solicited-node link-local multicast address.

Node ingin mengkonfigurasi link-local address “fe80::212:34ff:fe12:3456”, cek apakah ada yang menggunakan

15:44:17.712338 :: > ff02::1:ff12:3456: icmp6: neighbor sol: who has
¬ fe80::212:34ff:fe12:3456(src lladdr: 0:12:34:12:34:56) (len 32, hlim 255)

Node ingin mengkonfigurasi global addressnya “2002:0102:0304:1:212:34ff:fe12:3456” (setelah menerima advertisement di atas), cek apakah ada duplikasi

15:44:21.905596 :: > ff02::1:ff12:3456: icmp6: neighbor sol: who has
¬ 2002:0102:0304:1:212:34ff:fe12:3456(src lladdr: 0:12:34:12:34:56) (len 32,
¬ hlim 255)

Node ingin mengkonfigurasi global address “2001:0db8:0:1:212:34ff:fe12:3456” (setelah menerima advertisement di atas), cek apakah ada duplikasi

15:44:22.304028 :: > ff02::1:ff12:3456: icmp6: neighbor sol: who has
¬ 2001:0db8:0:1:212:34ff:fe12:3456(src lladdr: 0:12:34:12:34:56) (len 32, hlim
¬ 255)

Neighbor discovery solicitation untuk mencari for host atau gateway

Node ingin mengirim paket ke “2001:0db8:0:1::10” tapi tidak punya layer 2 MAC address untuk mengirimkan paket, oleh karenanya mengirimkan solicitation

13:07:47.664538 2002:0102:0304:1:2e0:18ff:fe90:9205 > ff02::1:ff00:10: icmp6:
¬ neighbor sol: who has 2001:0db8:0:1::10(src lladdr: 0:e0:18:90:92:5) (len 32,
¬ hlim 255)

Node mencari “fe80::10”

13:11:20.870070 fe80::2e0:18ff:fe90:9205 > ff02::1:ff00:10: icmp6: neighbor
¬ sol: who has fe80::10(src lladdr: 0:e0:18:90:92:5) (len 32, hlim 255)