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

References

tech/network/cisco/icmpv6/icmpv6.1530748204.txt.gz · Last modified: 2018/07/05 08:50 by wnoguchi