IPv6 Configuration Example on Packet Tracer

ipv6-configuration

IPv6 Configuration

IPv6 is the new version of the most important Network Layer Protocol IP. With this new IP version, IPv6, beside different features, some configuration differencies are also coming. In this lesson, we will focus on these IPv6 Configuration Steps, IPv6 Configuration on Cisco devices. We will use the below Packet Tracer topology for our IPv6 Config.

 


You can download Packet Tracer IPv6 Lab, in Packet Tracer Labs page.


ipv6-configuration

In this configuration lesson, we will follow the below IPv6 Configuration steps:

  • Enable IPv6 Globally
  • Enable IPv6 on Interface
  • Configure EUI-64 Format Global Unicast Address
  • Configure Manual Global Unicast Address
  • IPv6 Ping
  • Manual Link Local Address Configuration
  • Auto IPv6 Address Configuration
  • Enable DHCPv6 Client
  • IPv6 Verification Commands

 

 So, let’s go to the IPv6 Configuration steps and configure IPv6 for Cisco routers.

 


 

Enable IPv6 Globally

After going to the configuration mode with “configure terminal” command, to enable IPv6 on a Cisco router, “ipv6 unicast-routing” command is used. With this Cisco command, IPv6 is enabled globally on the router. This can be used before both interface configurations and IPv6 Routing Protocol configurations.

 

Router 1# configure terminal

Router 1(config)# ipv6 unicast-routing

Router 2# configure terminal

Router 2(config)# ipv6 unicast-routing

 

 


 

Enable IPv6 on Interface

After enabling IPv6 globally, we should enable IPv6 under the Interfaces. To enable IPv6 under an interface, we will use “ipv6 enable” command. Let’s enable IPv6 on two interfaces of each router.

 

Router 1 (config)# interface FastEthernet0/0

Router 1 (config-if)# ipv6 enable

Router 1 (config-if)# no shutdown

Router 1 (config)# interface FastEthernet0/1

Router 1 (config-if)# ipv6 enable

Router 1 (config-if)# no shutdown

  

Router 2 (config)# interface FastEthernet0/0

Router 2 (config-if)# ipv6 enable

Router 2 (config-if)# no shutdown

Router 2 (config)# interface FastEthernet0/1

Router 2 (config-if)# ipv6 enable

Router 2 (config-if)# no shutdown

 


 

Configure EUI-64 Format Global Unicast Address

EUI-64 format is the IPv6 format used to create IPv6 Global Unicast Addresses. It is a specific format that we have also talked about before. With this format, basically, interface id of the whole IPv6 adderess is ceated with the help of the MAC address. After that, this created interface id is appended to the network id.

 

To configure an interface with EUI-64 format (Extended Unique Identifier), firstly we will go under the interface, then we will use “ip address ipv6-address/prefix-length eui-64” command. Here, our IPv6 address and prefix-length are 2001:AAAA:BBBB:CCCC::/64. The real EUI-64 Global Unicast Address will be created with this address and MAC address after IPv6 configuration.

 

Router 1 (config)# interface FastEthernet0/0

Router 1(config-if)# ipv6 address 2001:AAAA:BBBB:CCCC::/64 eui-64

Router 1(config-if)# end

 

Let’s check the IPv6 address that is created with EUI-64 format with “show ipv6 interface brief” command.

 

Router 1# show ipv6 interface brief

FastEthernet0/0            [up/up]

FE80::2E0:B0FF:FE0E:7701

2001:AAAA:BBBB:CCCC:2E0:B0FF:FE0E:7701

FastEthernet0/1            [up/up]

FE80::2E0:B0FF:FE0E:7702

Vlan1                      [administratively down/down]

unassigned

 


 

Configure Manual Global Unicast Address

If we do not use EUI-64 format address, we have to write the whole IPv6 Address to the configuration line. Let’s configure Gigabit Ethernet 0/0 interface of Router 2 manually.

 

Router 2 (config)# interface FastEthernet0/0

Router 2 (config-if)# ipv6 address 2001:AAAA:BBBB:CCCC:1234:1234:1234:1234/64

Router 2(config-if)# end

 

Here, both of these directly connected interfaces are in the same subnet, the Network ID is same (2001:AAAA:BBBB:CCCC::/64).

Let’s check the IPv6 address that we have manually assigned with “show ipv6 interface brief” command.

 

Router 2# show ipv6 interface brief

FastEthernet0/0            [up/up]

FE80::206:2AFF:FE15:BD01

    2001:AAAA:BBBB:CCCC:1234:1234:1234:1234

FastEthernet0/1            [administratively up/up]

FE80::206:2AFF:FE15:BD02

Vlan1                      [administratively down/down]

unassigned

 


 

IPv6 Ping

To check the connectivity between two node, we use ping. As IPv4, with IPv6, we also use ping, but this time it is called IPv6 Ping. The format of IPv6 Ping is a little difference than IPv4 Ping. These  differences are the format of the used IP address and the used keywords. With IPv6 Ping, “ping ipv6” keywords are used before the destination IPv6 address.

 

Here, we will ping from Router 1 GigabitEthernet0/0 interface to Router 2 GigabitEthernet0/0 interface.

 

Router 1# ping ipv6 2001:AAAA:BBBB:CCCC:1234:1234:1234:1234

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 2001:AAAA:BBBB:CCCC:1234:1234:1234:1234, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/1 ms

 

To check the configured IPv6 Address, we can use “show ipv6 interface interface-name” command.

 

Router 1# show ipv6 interface FastEthernet0/0

FastEthernet0/0 is up, line protocol is up

IPv6 is enabled, link-local address is FE80::2E0:B0FF:FE0E:7701

No Virtual link-local address(es):

Global unicast address(es):

2001:AAAA:BBBB:CCCC:2E0:B0FF:FE0E:7701, subnet is 2001:AAAA:BBBB:CCCC::/64 [EUI]

Joined group address(es):

FF02::1

FF02::2

FF02::1:FF0E:7701

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

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.

 

Router 2# show ipv6 interface FastEthernet0/0

FastEthernet0/0 is up, line protocol is up

IPv6 is enabled, link-local address is FE80::206:2AFF:FE15:BD01

No Virtual link-local address(es):

Global unicast address(es):

    2001:AAAA:BBBB:CCCC:1234:1234:1234:1234, subnet is 2001:AAAA:BBBB:CCCC::/64

Joined group address(es):

FF02::1

FF02::2

FF02::1:FF15:BD01

FF02::1:FF34:1234

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

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.

 


 

Here, with ipv6 ping, there are some options that we can use. These are given below:

 

ping ipv6 [hostname | ip_address] [repeat repeat-count | size datagram-size | source [interface-name | source-address]

  • repeat : Ping packet count. The default ping repeat value is 5.
  • size : Datagram size. The default value ping size is 56 bytes.
  • source : Source Address of the ping. Default value is None.

 

So if we would like to send 10 IPv6 ping packet with 200 byte datagrams from 2001:AAAA:BBBB:CCCC:1234:1234:1234:1234 to 2001:AAAA:BBBB:CCCC:1111:2222:3333:4444, we will use the below command:

 

Router 2 # ping ipv6 2001:AAAA:BBBB:CCCC:1111:2222:3333:4444 repeat 10 size 200 source 2001:AAAA:BBBB:CCCC:1234:1234:1234:1234

 


 

Manual Link Local Address Configuration

To configure a Link Locak address manually, we use “ipv6 address link-local ipv6-address” command. Here, we should write an IPv6 address in the range of Link Local addresses. If you would like to learn more about a Link Local Address, you can check Link Local Address lesson.

 

Let’s configure GigabitEthernet0/1 interface of Router 1 with Link Local Address FE80::AAAA:BBBB:CCCC:DDDD. Here, there is no need to write a prefix length but we will add link-local keyword at the end of the command.

 

Router 1 (config)# interface FastEthernet0/1

Router 1 (config-if)# ipv6 address FE80::AAAA:BBBB:CCCC:DDDD link-local

Router 1 (config-if)# end

 

Let’s check the manually configure ipv6 Link-Local address with “show ipv6 interface brief” command.

 

Router 1# show ipv6 interface brief

FastEthernet0/0            [up/up]

FE80::2E0:B0FF:FE0E:7701

2001:AAAA:BBBB:CCCC:2E0:B0FF:FE0E:7701

FastEthernet0/1            [administratively down/down]

    FE80::AAAA:BBBB:CCCC:DDDD

Vlan1                      [administratively down/down]

unassigned

 


 

Auto IPv6 Address Configuration

IPv6 Addresses can be configured automatically. This is one of the most important characteristics coming with IPv6. For IPv6 Auto configuration, we will use “ipv6 address autoconfig” command. Let’s use it on Router 2 on GigabitEthernet0/1.

 

Router 2 (config)# interface FastEthernet0/1

Router 2 (config-if)# ipv6 address autoconfig

Router 2 (config-if)# end

 

This type of IPv6 address configuration is Sateless Auto Configuration.

Let’s check the Autoconfigured Link-Local ipv6 address with “show ipv6 interface brief” command.

 

Router 2# show ipv6 interface brief

FastEthernet0/0            [up/up]

FE80::206:2AFF:FE15:BD01

2001:AAAA:BBBB:CCCC:1234:1234:1234:1234

FastEthernet0/1            [up/down]

    FE80::206:2AFF:FE15:BD02

Vlan1                      [administratively down/down]

unassigned

 

Let’s ping from Router 2 to Router 1 to test this second interfaces’ ipv6 connection.

 

Router 2# ping ipv6 FE80::AAAA:BBBB:CCCC:DDDD

Output Interface: FastEthernet0/1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to FE80::AAAA:BBBB:CCCC:DDDD, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/1 ms

 


 

Enable DHCPv6 Client

To enable DHCPv6 Client function on an interface, we use “ipv6 address dhcp” command under this interface. With this command, interface gets its IPv6 address form the DHCPv6 server. Let’s enable DHCPv6 on GigabitEthernet0/2 of Router 2.

 

Router 1 (config)# interface FastEthernet0/1

Router 1 (config-if)# ipv6 address dhcp

Router 1 (config)# end

 

 

To verify DHCPv6 enabled interfaces, we can use “show ipv6 dhcp interface” command.

 

Router 1 # show ipv6 dhcp interface

 


 

IPv6 Verification Commands

To verify IPv6 Configuration, we can use different show commands. These IPv6 show commands are given below

  • To check IPv6 interface configuration and status we use “show ipv6 interface interface-id”.

 

Router 1# show ipv6 interface FastEthernet0/0

FastEthernet0/0 is up, line protocol is up

IPv6 is enabled, link-local address is FE80::2E0:B0FF:FE0E:7701

No Virtual link-local address(es):

Global unicast address(es):

2001:AAAA:BBBB:CCCC:2E0:B0FF:FE0E:7701, subnet is 2001:AAAA:BBBB:CCCC::/64 [EUI]

Joined group address(es):

FF02::1

FF02::2

FF02::1:FF0E:7701

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

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.

 

  • To check IPv6 neighbor cache entries we use “show ipv6 neighbors”.

 

 

Router 1# show ipv6 neighbors

IPv6 Address                              Age Link-layer Addr State Interface

2001:AAAA:BBBB:CCCC:1234:1234:1234:1234    23 0006.2A15.BD01  REACH Fa0/0

FE80::206:2AFF:FE15:BD02                    7 0006.2A15.BD02  REACH Fa0/1

 

  • To check IPv6 Routing Table we use “show ipv6 route”.

 

Router 1# show ipv6 route

 IPv6 Routing Table – 3 entries

Codes: C – Connected, L – Local, S – Static, R – RIP, B – BGP

U – Per-user Static route, M – MIPv6

I1 – ISIS L1, I2 – ISIS L2, IA – ISIS interarea, IS – ISIS summary

O – OSPF intra, OI – OSPF inter, OE1 – OSPF ext 1, OE2 – OSPF ext 2

ON1 – OSPF NSSA ext 1, ON2 – OSPF NSSA ext 2

D – EIGRP, EX – EIGRP external

C   2001:AAAA:BBBB:CCCC::/64 [0/0]

via ::, FastEthernet0/0

L   2001:AAAA:BBBB:CCCC:2E0:B0FF:FE0E:7701/128 [0/0]

via ::, FastEthernet0/0

L   FF00::/8 [0/0]

via ::, Null0

 

  • To check IPv6 DHCP we use “show ipv6 dhcp”.

 

Router 1# show ipv6 dhcp

This device’s DHCPv6 unique identifier (DUID): 0003000100E0B00E7701

 

  • To check IPv6 Protocols we use “show ipv6 protocols”.

 

Router 1# show ipv6 protocols

IPv6 Routing Protocol is “connected”

IPv6 Routing Protocol is “static


Questions For IPv6 Configuration

Question 1: With which command do we enable IPv6 globally for IPv6 Configuration?

a) ipv6 enable

b) ipv6 unicast-routing

c) ipv6 no shutdown

d) ipv6 run

e) ipv6 on


Question 2: Which command enables IPv6 under an interface?

a) ipv6 enable

b) ipv6 unicast-routing

c) ipv6 no shutdown

d) ipv6 run

e) ipv6 on


Question 3: Which command enables auto IPv6 addressing under an interface? 

a) ipv6 auto

b) ipv6 unicast-routing

c) ipv6 on

d) ipv6 address autoconfig

e) ipv6 run


Question 4: Which command enables DHCPv6 under an interface?

a) ipv6 auto dhcp

b) ipv6 address dhcp

c) ipv6 address autoconfig

d) ipv6 dhcp run

e) ipv6 dhcp on


Question 5: How to send 20 ping packet to 001:AAAA:BBBB:CCCC:1111:2222:3333:4444 address?

a) ping ipv6 2001:AAAA:BBBB:CCCC:1111:2222:3333:4444 source 20

b) ping ipv6 2001:AAAA:BBBB:CCCC:1111:2222:3333:4444 size 20

c) ping ipv6 2001:AAAA:BBBB:CCCC:1111:2222:3333:4444 repeat 20


Answers: 1)b    2)a   3)d    4)b    5)c   

 

 

Lesson tags: IPv6, packet tracer
Back to: CCNP Enterprise 350-401 ENCOR v1.1 > IPv6

Leave a Reply

Your email address will not be published. Required fields are marked *

CCNP Enterprise 350-401 ENCOR v1.1

Collapse
Expand
Latest Blog Posts