www.howtonetwork.org

CCNA & CCNP Certifcation Training

  • About
  • Contact
  • FAQ
  • Join
  • Home
  • CCNA
    • ICND1
    • ICND2
    • 101 CCNA LABS
  • CCNP
    • ROUTE
    • SWITCH
    • TSHOOT
    • 101 CCNP LABS
  • CompTIA
    • Security+
    • Network+
  • Design
    • CCDA
    • CCDP
You are here: Home / ROUTE / Module 8 / IPv6 – Enabling IPv6 in Cisco IOS Software

IPv6 – Enabling IPv6 in Cisco IOS Software

Now that we have a solid understanding of IPv6 fundamentals, the remainder of the chapter will focus on the configuration of IPv6 in Cisco IOS software. By default, IPv6 routing functionality is disabled in Cisco IOS software. Therefore, IPv6 routing functionality must be manually enabled using the ipv6 unicast-routing global configuration command.

After enabling IPv6 routing globally, the ipv6 address [ipv6-address/prefix-length | prefix-name sub-bits/prefix-length | anycast | autoconfig <default>  | dhcp | eui-64 | link-local] interface configuration command can be used to configure interface IPv6 addressing. The ipv6-address/prefix-length keyword is used to specify the IPv6 prefix and prefix length assigned to the interface. The following configuration illustrates how to configure a router interface with the first address on the 3FFF:1234:ABCD:5678::/64 subnet:

R1(config)#ipv6 unicast-routing
R1(config)#interface fastethernet 0/0
R1(config-if)#ipv6 address 3FFF:1234:ABCD:5678::1/64
R1(config-if)#exit

Following this configuration, the show ipv6 interface [name] command can be used to validate the configured IPv6 address, subnet

R1#show ipv6 interface fastethernet 0/0
FastEthernet0/0 is up, line protocol is up
IPv6 is enabled, link-local address is FE80::20C:CEFF:FEA7:F3A0
Global unicast address(es):
    3FFF:1234:ABCD:5678::1, subnet is 3FFF:1234:ABCD:5678::/64
Joined group address(es):
FF02::1
FF02::2
FF02::1:FF00:1
FF02::1:FFA7:F3A0[Truncated Output]

As was stated earlier in this chapter, IPv6 allows multiple prefixes to be configured on the same interface. If multiple prefixes have been configured on the same interface, the show ipv6 interface [name] prefix command can be used to view all assigned prefixes as well as their valid and preferred lifetime values. The following output shows the information that is printed by this command for a router interface with multiple IPv6 subnets configured:

R1#show ipv6 interface fastethernet 0/0 prefix
IPv6 Prefix Advertisements FastEthernet0/0
Codes: A – Address, P – Prefix-Advertisement, O – Pool
U – Per-user prefix, D – Default
N – Not advertised, C – Calendardefault [LA] Valid lifetime 2592000, preferred lifetime 604800
AD   3FFF:1234:ABCD:3456::/64 [LA] Valid lifetime 2592000, preferred lifetime 604800
AD   3FFF:1234:ABCD:5678::/64 [LA] Valid lifetime 2592000, preferred lifetime 604800
AD   3FFF:1234:ABCD:7890::/64 [LA] Valid lifetime 2592000, preferred lifetime 604800
AD   3FFF:1234:ABCD:9012::/64 [LA] Valid lifetime 2592000, preferred lifetime 604800

NOTE: As was stated earlier in this chapter, the valid and preferred lifetime values can be adjusted from default values allowing for a smooth transition when implementing prefix renumbering. This configuration, however, is beyond the scope of the ROUTE exam and will not be illustrated in this chapter.

Continuing with the use of the ipv6 prefix interface configuration command, the prefix-name sub-bits/prefix-length keyword is used to configure a general prefix, which specifies the leading bits of the subnet to be configured on the interface. This configuration is beyond the scope of the current route exam and will not be illustrated in this chapter.

The anycast keyword is used to configure an IPv6 Anycast address. As was stated earlier in this chapter, Anycast addressing simply allows the same common address to be assigned to multiple router interfaces. Hosts use the Anycast address that is closest to them based on routing protocol metrics. Anycast configuration is beyond the scope of the ROUTE exam and will not be illustrated in this chapter.

The autoconfig <default> keywords enable stateless Autoconfiguration. If used, then the router will dynamically learn prefixes on the link and then add EUI-64 addresses for all the learned prefixes. The <default> keyword is an optional keyword that allows a default route to be installed. The following configuration example illustrates how to enable stateless Autoconfiguration on a router interface and additionally allow the default route to be installed.

R2(config)#ipv6 unicast-routing
R2(config)#interface fastethernet 0/0
R2(config-if)#ipv6 address autoconfig default
R2(config-if)#exit

Following this configuration, router R2 will listen to Router Advertisement messages on the local segment that the FastEthernet0/0 interface resides on.  The router will dynamically configure an EUI-64 address for each learned prefix and then install the default route pointing to the Link-Local address of the advertising router. The dynamic address configuration is validated using the show ipv6 interface [name] command as illustrated below:

R2#show ipv6 interface fastethernet 0/0
FastEthernet0/0 is up, line protocol is up
IPv6 is enabled, link-local address is FE80::213:19FF:FE86:A20
Global unicast address(es):
    3FFF:1234:ABCD:3456:213:19FF:FE86:A20, subnet is 3FFF:1234:ABCD:3456::/64 [PRE]
valid lifetime 2591967 preferred lifetime 604767
    3FFF:1234:ABCD:5678:213:19FF:FE86:A20, subnet is 3FFF:1234:ABCD:5678::/64 [PRE]
valid lifetime 2591967 preferred lifetime 604767
3FFF:1234:ABCD:7890:213:19FF:FE86:A20, subnet is 3FFF:1234:ABCD:7890::/64 [PRE]
valid lifetime 2591967 preferred lifetime 604767
    3FFF:1234:ABCD:9012:213:19FF:FE86:A20, subnet is 3FFF:1234:ABCD:9012::/64 [PRE]
valid lifetime 2591967 preferred lifetime 604767
FEC0:1111:1111:E000:213:19FF:FE86:A20, subnet is FEC0:1111:1111:E000::/64 [PRE]
valid lifetime 2591967 preferred lifetime 604767
Joined group address(es):
FF02::1
FF02::2
FF02::1:FF86:A20
MTU is 1500 bytes[Truncated Output]

In the output above, notice that while there were no explicit IPv6 addresses were configured on the interface, an EUI-64 address was dynamically configured for subnet the router discovered by listening to Router Advertisement messages. The timers for each of these prefixes are derived from the router advertising the RA messages. In addition to verifying the stateless Autoconfiguration, the show ipv6 route command can be used to validate the default route to the Link-Local address of the preferred advertising router as illustrated below:

R2#show ipv6 route ::/0
IPv6 Routing Table – 13 entries
Codes: C – Connected, L – Local, S – Static, R – RIP, B – BGP
U – Per-user Static route
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
S   ::/0 [1/0]
     via FE80::20C:CEFF:FEA7:F3A0, FastEthernet0/0

Continuing with the ipv6 address command, the dhcp keyword is used to configure the router interface to use stateful Autoconfiguration, i.e. DHCPv6, to acquire the interface addressing configuration. With this configuration, an additional keyword, the rapid-commit keyword can also be appended to the end of this command to allow the two-message exchange method for address assignment and other configuration information.

NOTE: The ipv6 address dhcp rapid-commit interface configuration command is used to configure the router as a DHCPv6 client that will use a two-message exchange instead of the traditional four-message exchange to acquire addressing and configuration information. Figure 8-17 shows the traditional four-way message exchange between DHCPv6 servers and clients:

IPv6_Lesson8_image1

Fig.8-17. DHCPv6 Four Way Exchange

Referencing Figure 8-17, in step 1, the IPv6 Client sends a Multicast Solicit message to the All-DHCPv6-Agents address FF00::1:2  using its Link-Local address as the source. This message is Multicast to find a DHCPv6 server and ask for a lease. In step 2, any server that can fulfill the client’s request responds to it with an Advertise message.

In step 3, the client then chooses one of the servers and sends a Request message to it asking to confirm the offered address and other parameters. And finally, in step 4, the DHCPv6 server responds to the DHCPv6 client with a Reply message finalizing the process. The Rapid Commit feature shortens this traditional process by using only two messages as follows:

In the first step, the DHCPv6 client sends a Solicit message and indicates that a DHCPv6 Server should respond back immediately with a Reply message. If the Client has already received addressing information via Stateless Autoconfiguration but is seeking only additional information (e.g. DNS), the Client sends an Information-Request message via Multicast and a DHCPv6 server with configuration information for the Client sends back a Reply message.

NOTE: You are not required to go into detail on DHCPv6 in the current ROUTE exam.

Reverting back to the topic of discussion, the ipv6 address command, the eui-64 keyword is used to configure an IPv6 address for an interface and enables IPv6 processing on the interface using an EUI-64 interface ID in the low order 64 bits of the address. By default, Link-Local, Site-Local and the IPv6 stateless Autoconfiguration all use the EUI-64 format to make their IPv6 addresses. EUI-64 addressing expands the 48-bit MAC address into a 64-bit address. This is performed in two steps, both of which are described in the following section.

In the first step of creating the EUI-64 address, the value FFEE is inserted into the middle of the MAC address, thereby expanding the MAC address from 48-bits, which is 12 Hexadecimal characters, to 64-bits, which is 16 Hexadecimal characters. The conversion of the 48-bit MAC address into the 64-bit EUI address is illustrated in Figure 8-18:

IPv6_Lesson8_image2

Fig.8-18. Creating the EUI-64 Address

The second step of EUI-64 addressing entails the setting of the 7th bit of the 64-bit address. This 7th bit is used to identify whether the MAC address is unique or not. If this bit is set to 1, this indicates that the MAC address is a globally managed MAC address – which means that the MAC address has been assigned by a vendor. If this bit is set to 0, this indicates that the MAC address is locally assigned – which means that the MAC address has been added by the administrator, for example. To further clarify this statement, as an example, MAC address 02:1F:3C:59:D6:3B would be considered a globally assigned MAC address, while MAC address 00:1F:3C:59:D6:3B would be considered a local address. This is illustrated in Figure 8-19:

IPv6_Lesson8_image3

Fig.8-19. Determining Local and Global MAC Addresses

The following configuration example illustrates how to assign an IPv6 prefix to an interface and configure the router to automatically create the interface ID using EUI-64 addressing:

R2(config)#interface fastethernet 0/0
R2(config-if)#ipv6 address 3fff:1a2b:3c4d:5e6f::/64 eui-64
R2(config-if)#exit

Following this configuration, the show ipv6 interface command can be used to validate the IPv6 interface ID assigned to the FastEthernet0/0 interface:

R2#show ipv6 interface fastethernet 0/0
FastEthernet0/0 is up, line protocol is up
IPv6 is enabled, link-local address is FE80::213:19FF:FE86:A20
Global unicast address(es):
    3FFF:1A2B:3C4D:5E6F:213:19FF:FE86:A20, subnet is 3FFF:1A2B:3C4D:5E6F::/64 [EUI]
Joined group address(es):
FF02::1
FF02::2
FF02::1:FF86:A20
MTU is 1500 bytes[Truncated Output]

To validate the creation of the EUI-64 address, you can verify the complete IPv6 address by also looking at the MAC address for the specified interface using the show interfaces command:

R2#show interface fastethernet 0/0
FastEthernet0/0 is up, line protocol is up
Hardware is AmdFE, address is 0013.1986.0a20 (bia 0013.1986.0a20)
Internet address is 10.0.1.1/30

From the output above, we can determine that the EUI-64 address is indeed valid and is based off the MAC address of the interface. In addition to this, the address is global as the 7th bit has been enabled, i.e. contains a non-zero value.

And finally, the link-local keyword is used to assign a Link-Local address to the interface. By default, it is important to remember that an IPv6 prefix does not have to be enabled on the interface in order for a Link-Local address to be dynamically created. Instead, if the ipv6 enable interface configuration command is issued under and interface, a Link-Local address is automatically created for that interface using EUI-64 addressing.

To manually configure a Link-Local address, you must assign an address within the FE80::/10 Link-Local address block. The following configuration example illustrates how to configure a Link-Local address on an interface:

R3(config)#interface fastethernet 0/0
R3(config-if)# ipv6 address fe80:1234:abcd:1::3 link-local
R3(config-if)#exit

Following this configuration, the show ipv6 interface [name] command can be used to validate the manual configuration of the Link-Local address as shown in the following output:

R3#show ipv6 interface fastethernet 0/0
FastEthernet0/0 is up, line protocol is up
IPv6 is enabled, link-local address is FE80:1234:ABCD:1::3
  Global unicast address(es):
2001::1, subnet is 2001::/64
Joined group address(es):
FF02::1
FF02::2
FF02::1:FF00:1
FF02::1:FF00:1111
MTU is 1500 bytes[Truncated Output]

NOTE: When manually configuring Link-Local address, if Cisco IOS software detects another host using one of its IPv6 addresses, an error message will be printed on the console and the command will be rejected. Be very careful when manually configuring Link-Local addressing.

Prev

Next

About Us

This is a free bonus site for members of www.howtonetwork.com

Copyright

The content on this copyright Reality Press Ltd.
Copyright Reality Press Ltd.