PG1X WIKI

My Knowledge Base

User Tools

Site Tools


tech:network:cisco:icmpv6:icmpv6

This is an old revision of the document!


IPv6 ping (ICMPv6)

In this case Using Cisco ISR 1841 15.1(4)M10.

Configuration

  • R1
ipv6 unicast-routing
!
int f0/0
ipv6 enable
ipv6 address fe80::1 link-local
ipv6 address 2001:1:1:10::1/64
no shut
exit
!
end
  • R2
ipv6 unicast-routing
!
int f0/0
ipv6 enable
ipv6 address fe80::2 link-local
ipv6 address 2001:1:1:10::2/64
no shut
exit
!
end
R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#int f0/0
R1(config-if)#ipv
R1(config-if)#ipv6 add
R1(config-if)#ipv6 address fe80::1 link
R1(config-if)#ipv6 address fe80::1 link-local
R1(config-if)#ipv6 addd
R1(config-if)#ipv6 addre
R1(config-if)#ipv6 address 2001:1:1:10::1
% Incomplete command.

R1(config-if)#ipv6 address 2001:1:1:10::1 li
R1(config-if)#ipv6 address 2001:1:1:10::1 ?
  link-local  Use link-local address

R1(config-if)#ipv6 address 2001:1:1:10::1/64 ?
  anycast  Configure as an anycast
  cga      Use CGA interface identifier
  eui-64   Use eui-64 interface identifier
  <cr>

R1(config-if)#ipv6 address 2001:1:1:10::1/64

Verification

R2#sh run | i ipv6
no ipv6 cef
 ipv6 address FE80::2 link-local
 ipv6 address 2001:1:1:10::2/64
R1#sh ipv6 int f0/0
FastEthernet0/0 is up, line protocol is up
  IPv6 is enabled, link-local address is FE80::1
  No Virtual link-local address(es):
  Global unicast address(es):
    2001:1:1:10::1, subnet is 2001:1:1:10::/64
  Joined group address(es):
    FF02::1
    FF02::1:FF00:1
  MTU is 1500 bytes
  ICMP error messages limited to one every 100 milliseconds
  ICMP redirects are enabled
  ICMP unreachables are sent
  ND DAD is enabled, number of DAD attempts: 1
  ND reachable time is 30000 milliseconds (using 30000)
R2#sh run | i ipv6
no ipv6 cef
 ipv6 address FE80::2 link-local
 ipv6 address 2001:1:1:10::2/64
R2#sh ipv6 int f0/0
FastEthernet0/0 is up, line protocol is up
  IPv6 is enabled, link-local address is FE80::2
  No Virtual link-local address(es):
  Global unicast address(es):
    2001:1:1:10::2, subnet is 2001:1:1:10::/64
  Joined group address(es):
    FF02::1
    FF02::1:FF00:2
  MTU is 1500 bytes
  ICMP error messages limited to one every 100 milliseconds
  ICMP redirects are enabled
  ICMP unreachables are sent
  ND DAD is enabled, number of DAD attempts: 1
  ND reachable time is 30000 milliseconds (using 30000)
R1#ping ipv6 fe80::1
Output Interface: FastEthernet0/0
% IPv6 isn't enabled on this interface
Output Interface:
% Interface required

oh… I forgot no shut.

R1#ping ipv6 fe80::1
Output Interface: FastEthernet0/0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to FE80::1, timeout is 2 seconds:
Packet sent with a source address of FE80::1%FastEthernet0/0
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/4 ms
R1#ping ipv6 2001:1:1:10::1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001:1:1:10::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/4 ms
R2#ping ipv6 fe80::2
Output Interface: FastEthernet0/0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to FE80::2, timeout is 2 seconds:
Packet sent with a source address of FE80::2%FastEthernet0/0
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/0 ms
R2#ping ipv6 2001:1:1:10::2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001:1:1:10::2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/4 ms
R1#sh cdp neighbors detail
-------------------------
Device ID: R2
Entry address(es):
  IPv6 address: 2001:1:1:10::2  (global unicast)
  IPv6 address: FE80::2  (link-local)
Platform: Cisco 1841,  Capabilities: Router Switch IGMP
Interface: FastEthernet0/0,  Port ID (outgoing port): FastEthernet0/0
Holdtime : 148 sec

Version :
Cisco IOS Software, 1841 Software (C1841-ADVENTERPRISEK9-M), Version 15.1(4)M10, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2015 by Cisco Systems, Inc.
Compiled Tue 24-Mar-15 08:30 by prod_rel_team

advertisement version: 2
VTP Management Domain: ''
Duplex: full
R2#sh cdp neighbors detail
-------------------------
Device ID: R1
Entry address(es):
  IPv6 address: 2001:1:1:10::1  (global unicast)
  IPv6 address: FE80::1  (link-local)
Platform: Cisco 1841,  Capabilities: Router Switch IGMP
Interface: FastEthernet0/0,  Port ID (outgoing port): FastEthernet0/0
Holdtime : 162 sec

Version :
Cisco IOS Software, 1841 Software (C1841-ADVENTERPRISEK9-M), Version 15.1(4)M10, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2015 by Cisco Systems, Inc.
Compiled Tue 24-Mar-15 08:30 by prod_rel_team

advertisement version: 2
VTP Management Domain: ''
Duplex: full
R1#sh ipv6 neighbors
R2#sh ipv6 neighbors

Empty…

Let' enable ipv6 unicast-routing, and ipv6 enable.

no change…

shut, no shut

R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#int f0/0
R1(config-if)#shut
R1(config-if)#no shut
*Jul  4 23:37:50.367: %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to administratively down
*Jul  4 23:37:51.367: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to down
R1(config-if)#no shut
R1(config-if)#^Z
R1#
*Jul  4 23:37:53.843: %SYS-5-CONFIG_I: Configured from console by console
R1#
*Jul  4 23:37:54.755: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
*Jul  4 23:37:55.755: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

Insert Switch

no change

R1#sh run | i ipv6
ipv6 unicast-routing
ipv6 cef
 ipv6 address FE80::1 link-local
 ipv6 address 2001:1:1:10::1/64
 ipv6 enable
R1#sh run int f0/0
Building configuration...

Current configuration : 151 bytes
!
interface FastEthernet0/0
 no ip address
 duplex auto
 speed auto
 ipv6 address FE80::1 link-local
 ipv6 address 2001:1:1:10::1/64
 ipv6 enable
end
R2#sh run | i ipv6
ipv6 unicast-routing
ipv6 cef
 ipv6 address FE80::2 link-local
 ipv6 address 2001:1:1:10::2/64
 ipv6 enable
R2#sh run int f0/0
Building configuration...

Current configuration : 151 bytes
!
interface FastEthernet0/0
 no ip address
 duplex auto
 speed auto
 ipv6 address FE80::2 link-local
 ipv6 address 2001:1:1:10::2/64
 ipv6 enable
end

I can't understand anymore why show ipv6 neighbors shows no result.

R1#sh ipv6 neighbors
R1#
R2#sh ipv6 neighbors
R2#
R1#debug ipv6 packet
  IPv6 unicast packet debugging is on
R1#sh ipv6 neighbors
R1#ping ipv6 fe80::1
Output Interface: FastEthernet0/0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to FE80::1, timeout is 2 seconds:
Packet sent with a source address of FE80::1%FastEthernet0/0
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/2/4 ms
R1#
*Jul  5 00:23:22.819: IPv6-Sas: SAS on intf FastEthernet0/0 picked source FE80::1 for FE80::1
*Jul  5 00:23:22.819: IPv6-Fwd: Destination lookup for FE80::1 : Local, i/f=FastEthernet0/0, nexthop=FE80::1
*Jul  5 00:23:22.819: IPV6: source FE80::1 (local)
*Jul  5 00:23:22.819:       dest FE80::1 (FastEthernet0/0)
*Jul  5 00:23:22.823:       traffic class 0, flow 0x0, len 100+0, prot 58, hops 64, originating
*Jul  5 00:23:22.823: IPv6-Fwd: Created tmp mtu cache entry for FE80::1 FE80::1 12000002
*Jul  5 00:23:22.823: IPv6-Fwd: Sending via loopback
*Jul  5 00:23:22.823: IPv6-Fwd: Destination lookup for FE80::1 : Local, i/f=FastEthernet0/0, nexthop=FE80::1
*Jul  5 00:23:22.823: IPV6: source FE80::1 (FastEthernet0/0)
*Jul  5 00:23:22.823:       dest FE80::1 (FastEthernet0/0)
*Jul  5 00:23:22.823:       traffic class 0, flow 0x0, len 100+0, prot 58, hops 64, forward to ulp
*Jul  5 00:23:22.823: IPv6-Fwd: Destination lookup for FE80::1 : Local, i/f=FastEthernet0/0, nexthop=FE80::1
*Jul  5 00:23:22.823: IPV6: source FE80::1 (local)
*Jul  5 00:23:22.823:       dest FE80::1 (FastEthernet0/0)
*Jul  5 00:23:22.823:       traffic class 0, flow 0x0, len 100+0, prot 58, hops 64, originating
*Jul  5 00:23:22.823: IPv6-Fwd: Sending via loopback
*Jul  5 00:23:22.823: IPv6-Fwd: Destination lookup for FE80::1 : Local, i/f=FastEthernet0/0, nexthop=FE80::1
*Jul  5 00:23:22.823: IPV6: source FE80::1 (FastEthernet0/0)
*Jul  5 00:23:22.823:       dest FE80::1 (FastEthernet0/0)
*Jul  5 00:23:22.823:       traffic class 0, flow 0x0, len 100+0, prot 58, hops 64, forward to ulp
*Jul  5 00:23:22.827: IPv6-Fwd: Destination lookup for FE80::1 : Local, i/f=FastEthernet0/0, nexthop=FE80::1
*Jul  5 00:23:22.827: IPV6: source FE80::1 (local)
*Jul  5 00:23:22.827:       dest FE80::1 (FastEthernet0/0)
*Jul  5 00:23:22.827:       traffic class 0, flow 0x0, len 100+0, prot 58, hops 64, originating
*Jul  5 00:23:22.827: IPv6-Fwd: Sending via loopback
*Jul  5 00:23:22.827: IPv6-Fwd: Destination lookup for FE80::1 : Local, i/f=FastEthernet0/0, nexthop=FE80::1
*Jul  5 00:23:22.827: IPV6: source FE80::1 (FastEthernet0/0)
*Jul  5 00:23:22.827:       dest FE80::1 (FastEthernet0/0)
*Jul  5 00:23:22.827:       traffic class 0, flow 0x0, len 100+0, prot 58, hops 64, forward to ulp
*Jul  5 00:23:22.827: IPv6-Fwd: Destination lookup for FE80::1 : Local, i/f=FastEthernet0/0, nexthop=FE80::1
*Jul  5 00:23:22.827: IPV6: source FE80::1 (local)
*Jul  5 00:23:22.827:       dest FE80::1 (FastEthernet0/0)
*Jul  5 00:23:22.827:       traffic class 0, flow 0x0, len 100+0, prot 58, hops 64, originating
*Jul  5 00:23:22.827: IPv6-Fwd: Sending via loopback
*Jul  5 00:23:22.827: IPv6-Fwd: Destination lookup for FE80::1 : Local, i/f=FastEthernet0/0, nexthop=FE80::1
*Jul  5 00:23:22.827: IPV6: source FE80::1 (FastEthernet0/0)
*Jul  5 00:23:22.827:       dest FE80::1 (FastEthernet0/0)
*Jul  5 00:23:22.827:       traffic class 0, flow 0x0, len 100+0, prot 58, hops 64, forward to ulp
*Jul  5 00:23:22.831: IPv6-Fwd: Destination lookup for FE80::1 : Local, i/f=FastEthernet0/0, nexthop=FE80::1
*Jul  5 00:23:22.831: IPV6: source FE80::1 (local)
*Jul  5 00:23:22.831:       dest FE80::1 (FastEthernet0/0)
*Jul  5 00:23:22.831:       traffic class 0, flow 0x0, len 100+0, prot 58, hops 64, originating
*Jul  5 00:23:22.831: IPv6-Fwd: Sending via loopback
*Jul  5 00:23:22.831: IPv6-Fwd: Destination lookup for FE80::1 : Local, i/f=FastEthernet0/0, nexthop=FE80::1
*Jul  5 00:23:22.831: IPV6: source FE80::1 (FastEthernet0/0)
*Jul  5 00:23:22.831:       dest FE80::1 (FastEthernet0/0)
*Jul  5 00:23:22.831:       traffic class 0, flow 0x0, len 100+0, prot 58, hops 64, forward to ulp
*Jul  5 00:23:22.831: IPv6-Fwd: Destination lookup for FE80::1 : Local, i/f=FastEthernet0/0, nexthop=FE80::1
*Jul  5 00:23:22.831: IPV6: source FE80::1 (local)
*Jul  5 00:23:22.831:       dest FE80::1 (FastEthernet0/0)
*Jul  5 00:23:22.831:       traffic class 0, flow 0x0, len 100+0, prot 58, hops 64, originating
*Jul  5 00:23:22.831: IPv6-Fwd: Sending via loopback
*Jul  5 00:23:22.831: IPv6-Fwd: Destination lookup for FE80::1 : Local, i/f=FastEthernet0/0, nexthop=FE80::1
*Jul  5 00:23:22.831: IPV6: source FE80::1 (FastEthernet0/0)
*Jul  5 00:23:22.835:       dest FE80::1 (FastEthernet0/0)
*Jul  5 00:23:22.835:       traffic class 0, flow 0x0, len 100+0, prot 58, hops 64, forward to ulp
*Jul  5 00:23:22.835: IPv6-Fwd: Destination lookup for FE80::1 : Local, i/f=FastEthernet0/0, nexthop=FE80::1
*Jul  5 00:23:22.835: IPV6: source FE80::1 (local)
*Jul  5 00:23:22.835:       dest FE80::1 (FastEthernet0/0)
*Jul  5 00:23:22.835:       traffic class 0, flow 0x0, len 100+0, prot 58, hops 64, originating
*Jul  5 00:23:22.835: IPv6-Fwd: Sending via loopback
*Jul  5 00:23:22.835: IPv6-Fwd: Destination lookup for FE80::1 : Local, i/f=FastEthernet0/0, nexthop=FE80::1
*Jul  5 00:23:22.835: IPV6: source FE80::1 (FastEthernet0/0)
*Jul  5 00:23:22.835:       dest FE80::1 (FastEthernet0/0)
*Jul  5 00:23:22.835:       traffic class 0, flow 0x0, len 100+0, prot 58, hops 64, forward to ulp
*Jul  5 00:23:22.835: IPv6-Fwd: Destination lookup for FE80::1 : Local, i/f=FastEthernet0/0, nexthop=FE80::1
*Jul  5 00:23:22.835: IPV6: source FE80::1 (local)
*Jul  5 00:23:22.835:       dest FE80::1 (FastEthernet0/0)
*Jul  5 00:23:22.835:       traffic class 0, flow 0x0, len 100+0, prot 58, hops 64, originating
*Jul  5 00:23:22.835: IPv6-Fwd: Sending via loopback
*Jul  5 00:23:22.839: IPv6-Fwd: Destination lookup for FE80::1 : Local, i/f=FastEthernet0/0, nexthop=FE80::1
*Jul  5 00:23:22.839: IPV6: source FE80::1 (FastEthernet0/0)
*Jul  5 00:23:22.839:       dest FE80::1 (FastEthernet0/0)
*Jul  5 00:23:22.839:       traffic class 0, flow 0x0, len 100+0, prot 58, hops 64, forward to ulp
*Jul  5 00:23:22.839: IPv6-Fwd: Destination lookup for FE80::1 : Local, i/f=FastEthernet0/0, nexthop=FE80::1
*Jul  5 00:23:22.839: IPV6: source FE80::1 (local)
*Jul  5 00:23:22.839:       dest FE80::1 (FastEthernet0/0)
*Jul  5 00:23:22.839:       traffic class 0, flow 0x0, len 100+0, prot 58, hops 64, originating
*Jul  5 00:23:22.839: IPv6-Fwd: Sending via loopback
*Jul  5 00:23:22.839: IPv6-Fwd: Destination lookup for FE80::1 : Local, i/f=FastEthernet0/0, nexthop=FE80::1
*Jul  5 00:23:22.839: IPV6: source FE80::1 (FastEthernet0/0)
*Jul  5 00:23:22.839:       dest FE80::1 (FastEthernet0/0)
*Jul  5 00:23:22.839:       traffic class 0, flow 0x0, len 100+0, prot 58, hops 64, forward to ulp
*Jul  5 00:23:22.839: IPv6-Fwd: Destination lookup for FE80::1 : Local, i/f=FastEthernet0/0, nexthop=FE80::1
*Jul  5 00:23:22.839: IPV6: source FE80::1 (local)
*Jul  5 00:23:22.839:       dest FE80::1 (FastEthernet0/0)
*Jul  5 00:23:22.843:       traffic class 0, flow 0x0, len 100+0, prot 58, hops 64, originating
*Jul  5 00:23:22.843: IPv6-Fwd: Sending via loopback
*Jul  5 00:23:22.843: IPv6-Fwd: Destination lookup for FE80::1 : Local, i/f=FastEthernet0/0, nexthop=FE80::1
*Jul  5 00:23:22.843: IPV6: source FE80::1 (FastEthernet0/0)
*Jul  5 00:23:22.843:       dest FE80::1 (FastEthernet0/0)
*Jul  5 00:23:22.843:       traffic class 0, flow 0x0, len 100+0, prot 58, hops 64, forward to ulp
R1#
R1#
*Jul  5 00:23:34.151: IPV6: source FE80::2 (FastEthernet0/0)
*Jul  5 00:23:34.151:       dest FF02::1
*Jul  5 00:23:34.151:       traffic class 224, flow 0x0, len 104+14, prot 58, hops 255, forward to ulp
R1#u all
All possible debugging has been turned off
R1#sh ipv6 int f0/0
FastEthernet0/0 is up, line protocol is up
  IPv6 is enabled, link-local address is FE80::1
  No Virtual link-local address(es):
  Global unicast address(es):
    2001:1:1:10::1, subnet is 2001:1:1:10::/64
  Joined group address(es):
    FF02::1
    FF02::2
    FF02::1:FF00:1
  MTU is 1500 bytes
  ICMP error messages limited to one every 100 milliseconds
  ICMP redirects are enabled
  ICMP unreachables are sent
  ND DAD is enabled, number of DAD attempts: 1
  ND reachable time is 30000 milliseconds (using 30000)
  ND advertised reachable time is 0 (unspecified)
  ND advertised retransmit interval is 0 (unspecified)
  ND router advertisements are sent every 200 seconds
  ND router advertisements live for 1800 seconds
  ND advertised default router preference is Medium
  Hosts use stateless autoconfig for addresses.
R1#show ipv6 cef
::/0
  no route
::/127
  discard
2001:1:1:10::/64
  attached to FastEthernet0/0
2001:1:1:10::1/128
  receive for FastEthernet0/0
FE80::/10
  receive for Null0
FF00::/8
  multicast
R1#show ipv6 neigh
R1#show ipv6 neighbors

Same topology of GNS3 virtual lab IOSv 15.5(3)M-1 displays show ipv6 neighbors result. Why?

OK, I search Cisco IOS 15.1(4)M10 IPv6 Neighbor Discovery Cache Documentation.

Finally, I configured globally for all interfaces following command.

ipv6 nd cache interface-limit 4
R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#ipv
R1(config)#ipv6 nd
R1(config)#ipv6 nd ca
R1(config)#ipv6 nd cache inter
R1(config)#ipv6 nd cache interface-limit 4
R1(config)#^Z
R1#
*Jul  5 13:16:28.552: %SYS-5-CONFIG_I: Configured from console by console
R1#sh ipv
R1#sh ipv6 nei
R1#sh ipv6 neighbors
R1#ping ipv6 fe80::2%FastEthernet0/0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to FE80::2, timeout is 2 seconds:
Packet sent with a source address of FE80::1%FastEthernet0/0
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/1/8 ms
R1#sh ipv6 neighbors
IPv6 Address                              Age Link-layer Addr State Interface
FE80::2                                     0 0024.c431.126e  REACH Fa0/0

R1#ping ipv6 2001:1:1:10::2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001:1:1:10::2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/2/8 ms
R1#sh ipv6 neighbors
IPv6 Address                              Age Link-layer Addr State Interface
2001:1:1:10::2                              0 0024.c431.126e  REACH Fa0/0
FE80::2                                     1 0024.c431.126e  STALE Fa0/0

R1#ping ipv6 fe80::2%FastEthernet0/0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to FE80::2, timeout is 2 seconds:
Packet sent with a source address of FE80::1%FastEthernet0/0
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/4 ms
R1#sh ipv6 neighbors
IPv6 Address                              Age Link-layer Addr State Interface
2001:1:1:10::2                              0 0024.c431.126e  REACH Fa0/0
FE80::2                                     0 0024.c431.126e  REACH Fa0/0

R1#sh ipv6 neighbors
IPv6 Address                              Age Link-layer Addr State Interface
2001:1:1:10::2                              0 0024.c431.126e  REACH Fa0/0
FE80::2                                     0 0024.c431.126e  REACH Fa0/0

R1#sh run | i nc cache
R1#sh run | i nd cache
ipv6 nd cache interface-limit 4

References

tech/network/cisco/icmpv6/icmpv6.1530832791.txt.gz · Last modified: 2018/07/06 08:19 by wnoguchi