Overview
Cisco IOS の IPv6 Neighbor Discovery の動作を確認する。
Reference
- IPv6 ( wikipedia )
- Internet Control Message Protocol for IPv6 ( wikipedia )
- IPv6 アドレッシングおよび基本的な接続のコンフィギュレーション ガイド、Cisco IOS XE Release 3S ( Cisco )
- NDisc6 : IPv6 diagnostic tools for Linux and BSD
RFC’s
Environment
Router01
RT01#show ver Cisco IOS Software, C181X Software (C181X-ADVIPSERVICESK9-M), Version 15.1(4)M12a, RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2016 by Cisco Systems, Inc. Compiled Tue 04-Oct-16 02:58 by prod_rel_team ROM: System Bootstrap, Version 12.3(8r)YH13, RELEASE SOFTWARE (fc1) RT01 uptime is 2 hours, 51 minutes System returned to ROM by power-on System image file is "flash:c181x-advipservicesk9-mz.151-4.M12a.bin" Last reload type: Normal Reload This product contains cryptographic features and is subject to United States and local country laws governing import, export, transfer and use. Delivery of Cisco cryptographic products does not imply third-party authority to import, export, distribute or use encryption. Importers, exporters, distributors and users are responsible for compliance with U.S. and local country laws. By using this product you agree to comply with applicable laws and regulations. If you are unable to comply with U.S. and local laws, return this product immediately. A summary of U.S. laws governing Cisco cryptographic products may be found at: http://www.cisco.com/wwl/export/crypto/tool/stqrg.html If you require further assistance please contact us by sending email to export@cisco.com. Cisco 1812-J (MPC8500) processor (revision 0x400) with 236544K/25600K bytes of memory. Processor board ID FGL1520247S, with hardware revision 0000 10 FastEthernet interfaces 1 ISDN Basic Rate interface 1 Virtual Private Network (VPN) Module 62720K bytes of ATA CompactFlash (Read/Write) License Info: License UDI: ------------------------------------------------- Device# PID SN ------------------------------------------------- *0 CISCO1812-J/K9 FGL1520247S Configuration register is 0x2102 RT01#
Router02
RT02#show version Cisco IOS Software, C181X Software (C181X-ADVIPSERVICESK9-M), Version 15.1(4)M12a, RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2016 by Cisco Systems, Inc. Compiled Tue 04-Oct-16 02:58 by prod_rel_team ROM: System Bootstrap, Version 12.3(8r)YH13, RELEASE SOFTWARE (fc1) RT02 uptime is 2 hours, 41 minutes System returned to ROM by reload at 03:34:56 UTC Sat Sep 26 2020 System image file is "flash:c181x-advipservicesk9-mz.151-4.M12a.bin" Last reload type: Normal Reload This product contains cryptographic features and is subject to United States and local country laws governing import, export, transfer and use. Delivery of Cisco cryptographic products does not imply third-party authority to import, export, distribute or use encryption. Importers, exporters, distributors and users are responsible for compliance with U.S. and local country laws. By using this product you agree to comply with applicable laws and regulations. If you are unable to comply with U.S. and local laws, return this product immediately. A summary of U.S. laws governing Cisco cryptographic products may be found at: http://www.cisco.com/wwl/export/crypto/tool/stqrg.html If you require further assistance please contact us by sending email to export@cisco.com. Cisco 1812-J (MPC8500) processor (revision 0x400) with 236544K/25600K bytes of memory. Processor board ID FGL151020VL, with hardware revision 0000 10 FastEthernet interfaces 1 ISDN Basic Rate interface 1 Virtual Private Network (VPN) Module 62720K bytes of ATA CompactFlash (Read/Write) License Info: License UDI: ------------------------------------------------- Device# PID SN ------------------------------------------------- *0 CISCO1812-J/K9 FGL151020VL Configuration register is 0x2102 RT02#
Configuration
Router01
RT01#show running-config interface FastEthernet 0 Building configuration... Current configuration : 156 bytes ! interface FastEthernet0 ip address 172.16.31.1 255.255.255.0 duplex auto speed auto ipv6 address FE80::1 link-local ipv6 address 2001:DB8::1/64 end RT01#
Router02
RT02#sh running-config interface FastEthernet 0 Building configuration... Current configuration : 156 bytes ! interface FastEthernet0 ip address 172.16.31.2 255.255.255.0 duplex auto speed auto ipv6 address FE80::2 link-local ipv6 address 2001:DB8::2/64 end RT02#
Debug & Operation
Debug
RT01#show debugging ICMP Neighbor Discovery events debugging is on RT01#
Operation
RT01# RT01#clear ipv6 neighbors RT01# *Sep 26 05:24:34.703: ICMPv6-ND: STALE -> DELETE: FE80::2 *Sep 26 05:24:34.703: ICMPv6-ND: STALE -> DELETE: 2001:DB8::2 RT01# RT01# RT01#ping 2001:db8::2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 2001:DB8::2, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 0/1/8 ms RT01# *Sep 26 05:24:55.387: ICMPv6-ND: DELETE -> INCMP: 2001:DB8::2 *Sep 26 05:24:55.387: ICMPv6-ND: Sending NS for 2001:DB8::2 on FastEthernet0 *Sep 26 05:24:55.387: ICMPv6-ND: Resolving next hop 2001:DB8::2 on interface FastEthernet0 *Sep 26 05:24:55.395: ICMPv6-ND: Received NA for 2001:DB8::2 on FastEthernet0 from 2001:DB8::2 *Sep 26 05:24:55.395: ICMPv6-ND: Neighbour 2001:DB8::2 on FastEthernet0 : LLA c89c.1d24.2ae2 *Sep 26 05:24:55.395: ICMPv6-ND: INCMP -> REACH: 2001:DB8::2 *Sep 26 05:25:00.455: ICMPv6-ND: Received NS for 2001:DB8::1 on FastEthernet0 from FE80::2 *Sep 26 05:25:00.455: ICMPv6-ND: Glean FE80::2 on FastEthernet0 *Sep 26 05:25:00.455: ICMPv6-ND: Neighbour FE80::2 on FastEthernet0 : LLA c89c.1d24.2ae2 *Sep 26 05:25:00.455: ICMPv6-ND: INCMP -> STALE: FE80::2 *Sep 26 05:25:00.455: ICMPv6-ND: Sending NA for 2001:DB8::1 on FastEthernet0 *Sep 26 05:25:00.459: ICMPv6-ND: STALE -> DELAY: FE80::2 *Sep 26 05:25:05.519: ICMPv6-ND: DELAY -> PROBE: FE80::2 *Sep 26 05:25:05.519: ICMPv6-ND: Sending NS for FE80::2 on FastEthernet0 *Sep 26 05:25:05.527: ICMPv6-ND: Received NA for FE80::2 on FastEthernet0 from FE80::2 *Sep 26 05:25:05.527: ICMPv6-ND: PROBE -> REACH: FE80::2 *Sep 26 05:25:10.587: ICMPv6-ND: Received NS for FE80::1 on FastEthernet0 from FE80::2 *Sep 26 05:25:10.587: ICMPv6-ND: Sending NA for FE80::1 on FastEthernet0 *Sep 26 05:25:25.463: ICMPv6-ND: REACH -> STALE: 2001:DB8::2 RT01# RT01#undeb all All possible debugging has been turned off RT01# *Sep 26 05:25:35.603: ICMPv6-ND: REACH -> STALE: FE80::2 RT01#
RT01#show ipv6 neighbors IPv6 Address Age Link-layer Addr State Interface FE80::2 1 c89c.1d24.2ae2 STALE Fa0 2001:DB8::2 2 c89c.1d24.2ae2 STALE Fa0 RT01#
Packet
Packets
No. Time Source Destination Protocol Length Info
20 31.667727481 2001:db8::1 ff02::1:ff00:2 ICMPv6 86 Neighbor Solicitation for 2001:db8::2 from e8:b7:48:67:9c:4e
21 31.672033472 2001:db8::2 2001:db8::1 ICMPv6 86 Neighbor Advertisement 2001:db8::2 (sol, ovr) is at c8:9c:1d:24:2a:e2
22 31.672817567 2001:db8::1 2001:db8::2 ICMPv6 114 Echo (ping) request id=0x20b6, seq=0, hop limit=64 (reply in 23)
23 31.673176486 2001:db8::2 2001:db8::1 ICMPv6 114 Echo (ping) reply id=0x20b6, seq=0, hop limit=64 (request in 22)
24 31.673765807 2001:db8::1 2001:db8::2 ICMPv6 114 Echo (ping) request id=0x20b6, seq=1, hop limit=64 (reply in 25)
25 31.674258443 2001:db8::2 2001:db8::1 ICMPv6 114 Echo (ping) reply id=0x20b6, seq=1, hop limit=64 (request in 24)
26 31.674781148 2001:db8::1 2001:db8::2 ICMPv6 114 Echo (ping) request id=0x20b6, seq=2, hop limit=64 (reply in 27)
27 31.675136640 2001:db8::2 2001:db8::1 ICMPv6 114 Echo (ping) reply id=0x20b6, seq=2, hop limit=64 (request in 26)
28 31.675694197 2001:db8::1 2001:db8::2 ICMPv6 114 Echo (ping) request id=0x20b6, seq=3, hop limit=64 (reply in 29)
29 31.676120777 2001:db8::2 2001:db8::1 ICMPv6 114 Echo (ping) reply id=0x20b6, seq=3, hop limit=64 (request in 28)
30 31.676678836 2001:db8::1 2001:db8::2 ICMPv6 114 Echo (ping) request id=0x20b6, seq=4, hop limit=64 (reply in 31)
31 31.677033280 2001:db8::2 2001:db8::1 ICMPv6 114 Echo (ping) reply id=0x20b6, seq=4, hop limit=64 (request in 30)
36 36.732215095 fe80::2 2001:db8::1 ICMPv6 86 Neighbor Solicitation for 2001:db8::1 from c8:9c:1d:24:2a:e2
37 36.736071218 2001:db8::1 fe80::2 ICMPv6 78 Neighbor Advertisement 2001:db8::1 (rtr, sol)
41 41.799987967 fe80::1 fe80::2 ICMPv6 86 Neighbor Solicitation for fe80::2 from e8:b7:48:67:9c:4e
42 41.804294669 fe80::2 fe80::1 ICMPv6 78 Neighbor Advertisement fe80::2 (sol)
47 46.864399598 fe80::2 fe80::1 ICMPv6 86 Neighbor Solicitation for fe80::1 from c8:9c:1d:24:2a:e2
48 46.868148614 fe80::1 fe80::2 ICMPv6 78 Neighbor Advertisement fe80::1 (rtr, sol)
49 47.861879477 fe80::21f:67ff:fee1:4bc0 ff02::1 ICMPv6 90 Multicast Listener Query
54 53.632005830 fe80::2f69:5ab3:b79f:fb25 ff02::16 ICMPv6 130 Multicast Listener Report Message v2
Router01
ICMPv6 Type 135 (Neighbor Solicitation)
No. Time Source Destination Protocol Length Info
20 31.667727481 2001:db8::1 ff02::1:ff00:2 ICMPv6 86 Neighbor Solicitation for 2001:db8::2 from e8:b7:48:67:9c:4e
Ethernet II, Src: Cisco_67:9c:4e (e8:b7:48:67:9c:4e), Dst: IPv6mcast_ff:00:00:02 (33:33:ff:00:00:02)
Destination: IPv6mcast_ff:00:00:02 (33:33:ff:00:00:02)
Source: Cisco_67:9c:4e (e8:b7:48:67:9c:4e)
Type: IPv6 (0x86dd)
Internet Protocol Version 6, Src: 2001:db8::1, Dst: ff02::1:ff00:2
0110 .... = Version: 6
.... 1110 0000 .... .... .... .... .... = Traffic Class: 0xe0 (DSCP: CS7, ECN: Not-ECT)
.... .... .... 0000 0000 0000 0000 0000 = Flow Label: 0x00000
Payload Length: 32
Next Header: ICMPv6 (58)
Hop Limit: 255
Source: 2001:db8::1
Destination: ff02::1:ff00:2
Internet Control Message Protocol v6
Type: Neighbor Solicitation (135)
Code: 0
Checksum: 0x50ba [correct]
[Checksum Status: Good]
Reserved: 00000000
Target Address: 2001:db8::2
ICMPv6 Option (Source link-layer address : e8:b7:48:67:9c:4e)
Type: Source link-layer address (1)
Length: 1 (8 bytes)
Link-layer address: Cisco_67:9c:4e (e8:b7:48:67:9c:4e)
0000 33 33 ff 00 00 02 e8 b7 48 67 9c 4e 86 dd 6e 00 33......Hg.N..n.
0010 00 00 00 20 3a ff 20 01 0d b8 00 00 00 00 00 00 ... :. .........
0020 00 00 00 00 00 01 ff 02 00 00 00 00 00 00 00 00 ................
0030 00 01 ff 00 00 02 87 00 50 ba 00 00 00 00 20 01 ........P..... .
0040 0d b8 00 00 00 00 00 00 00 00 00 00 00 02 01 01 ................
0050 e8 b7 48 67 9c 4e ..Hg.N
ICMPv6 Type 136 (Neighbor Advertisement)
No. Time Source Destination Protocol Length Info
21 31.672033472 2001:db8::2 2001:db8::1 ICMPv6 86 Neighbor Advertisement 2001:db8::2 (sol, ovr) is at c8:9c:1d:24:2a:e2
Ethernet II, Src: Cisco_24:2a:e2 (c8:9c:1d:24:2a:e2), Dst: Cisco_67:9c:4e (e8:b7:48:67:9c:4e)
Destination: Cisco_67:9c:4e (e8:b7:48:67:9c:4e)
Source: Cisco_24:2a:e2 (c8:9c:1d:24:2a:e2)
Type: IPv6 (0x86dd)
Internet Protocol Version 6, Src: 2001:db8::2, Dst: 2001:db8::1
0110 .... = Version: 6
.... 1110 0000 .... .... .... .... .... = Traffic Class: 0xe0 (DSCP: CS7, ECN: Not-ECT)
.... .... .... 0000 0000 0000 0000 0000 = Flow Label: 0x00000
Payload Length: 32
Next Header: ICMPv6 (58)
Hop Limit: 255
Source: 2001:db8::2
Destination: 2001:db8::1
Internet Control Message Protocol v6
Type: Neighbor Advertisement (136)
Code: 0
Checksum: 0x7bd0 [correct]
[Checksum Status: Good]
Flags: 0x60000000, Solicited, Override
Target Address: 2001:db8::2
ICMPv6 Option (Target link-layer address : c8:9c:1d:24:2a:e2)
Type: Target link-layer address (2)
Length: 1 (8 bytes)
Link-layer address: Cisco_24:2a:e2 (c8:9c:1d:24:2a:e2)
0000 e8 b7 48 67 9c 4e c8 9c 1d 24 2a e2 86 dd 6e 00 ..Hg.N...$*...n.
0010 00 00 00 20 3a ff 20 01 0d b8 00 00 00 00 00 00 ... :. .........
0020 00 00 00 00 00 02 20 01 0d b8 00 00 00 00 00 00 ...... .........
0030 00 00 00 00 00 01 88 00 7b d0 60 00 00 00 20 01 ........{.`... .
0040 0d b8 00 00 00 00 00 00 00 00 00 00 00 02 02 01 ................
0050 c8 9c 1d 24 2a e2 ...$*.
Router02
ICMPv6 Type 135 (Neighbor Solicitation)
No. Time Source Destination Protocol Length Info
36 36.732215095 fe80::2 2001:db8::1 ICMPv6 86 Neighbor Solicitation for 2001:db8::1 from c8:9c:1d:24:2a:e2
Ethernet II, Src: Cisco_24:2a:e2 (c8:9c:1d:24:2a:e2), Dst: Cisco_67:9c:4e (e8:b7:48:67:9c:4e)
Destination: Cisco_67:9c:4e (e8:b7:48:67:9c:4e)
Source: Cisco_24:2a:e2 (c8:9c:1d:24:2a:e2)
Type: IPv6 (0x86dd)
Internet Protocol Version 6, Src: fe80::2, Dst: 2001:db8::1
0110 .... = Version: 6
.... 1110 0000 .... .... .... .... .... = Traffic Class: 0xe0 (DSCP: CS7, ECN: Not-ECT)
.... .... .... 0000 0000 0000 0000 0000 = Flow Label: 0x00000
Payload Length: 32
Next Header: ICMPv6 (58)
Hop Limit: 255
Source: fe80::2
Destination: 2001:db8::1
Internet Control Message Protocol v6
Type: Neighbor Solicitation (135)
Code: 0
Checksum: 0x0d0a [correct]
[Checksum Status: Good]
Reserved: 00000000
Target Address: 2001:db8::1
ICMPv6 Option (Source link-layer address : c8:9c:1d:24:2a:e2)
Type: Source link-layer address (1)
Length: 1 (8 bytes)
Link-layer address: Cisco_24:2a:e2 (c8:9c:1d:24:2a:e2)
0000 e8 b7 48 67 9c 4e c8 9c 1d 24 2a e2 86 dd 6e 00 ..Hg.N...$*...n.
0010 00 00 00 20 3a ff fe 80 00 00 00 00 00 00 00 00 ... :...........
0020 00 00 00 00 00 02 20 01 0d b8 00 00 00 00 00 00 ...... .........
0030 00 00 00 00 00 01 87 00 0d 0a 00 00 00 00 20 01 .............. .
0040 0d b8 00 00 00 00 00 00 00 00 00 00 00 01 01 01 ................
0050 c8 9c 1d 24 2a e2 ...$*.
ICMPv6 Type 136 (Neighbor Advertisement)
No. Time Source Destination Protocol Length Info
37 36.736071218 2001:db8::1 fe80::2 ICMPv6 78 Neighbor Advertisement 2001:db8::1 (rtr, sol)
Ethernet II, Src: Cisco_67:9c:4e (e8:b7:48:67:9c:4e), Dst: Cisco_24:2a:e2 (c8:9c:1d:24:2a:e2)
Destination: Cisco_24:2a:e2 (c8:9c:1d:24:2a:e2)
Source: Cisco_67:9c:4e (e8:b7:48:67:9c:4e)
Type: IPv6 (0x86dd)
Internet Protocol Version 6, Src: 2001:db8::1, Dst: fe80::2
0110 .... = Version: 6
.... 1110 0000 .... .... .... .... .... = Traffic Class: 0xe0 (DSCP: CS7, ECN: Not-ECT)
.... .... .... 0000 0000 0000 0000 0000 = Flow Label: 0x00000
Payload Length: 24
Next Header: ICMPv6 (58)
Hop Limit: 255
Source: 2001:db8::1
Destination: fe80::2
Internet Control Message Protocol v6
Type: Neighbor Advertisement (136)
Code: 0
Checksum: 0x5db5 [correct]
[Checksum Status: Good]
Flags: 0xc0000000, Router, Solicited
Target Address: 2001:db8::1
0000 c8 9c 1d 24 2a e2 e8 b7 48 67 9c 4e 86 dd 6e 00 ...$*...Hg.N..n.
0010 00 00 00 18 3a ff 20 01 0d b8 00 00 00 00 00 00 ....:. .........
0020 00 00 00 00 00 01 fe 80 00 00 00 00 00 00 00 00 ................
0030 00 00 00 00 00 02 88 00 5d b5 c0 00 00 00 20 01 ........]..... .
0040 0d b8 00 00 00 00 00 00 00 00 00 00 00 01 ..............