While delving into the different ways in which different types of hosts by different vendors can support dual-stack implementations is beyond the scope of the CCNA exam requirements, as a future network engineer, it is imperative to understand how to implement dual-stack solutions in Cisco IOS software. In Cisco IOS routers, dual-stack operation is enabled by simply configuring both an IPv4 address and an IPv6 address on the router interface.
Multiple IPv4 addresses can be specified by appending the [secondary] keyword to the end of the ip address [address] [mask] interface configuration command. For IPv6, however, the [secondary] keyword is not required, as multiple prefixes can be configured per interface using the ipv6 address interface configuration command, which was described in detail in Day 7’s lesson. The following configuration example illustrates how to configure multiple IPv4 and IPv6 addresses and prefixes on a single router interface:
| R3(config)#ipv6 unicast-routingR3(config)#interface FastEthernet0/0R3(config-if)#ip address 10.0.0.3 255.255.255.0
R3(config-if)#ip address 10.0.1.3 255.255.255.0 secondary R3(config-if)#ip address 10.0.2.3 255.255.255.0 secondary R3(config-if)#ipv6 address 3fff:1234:abcd:1::3/64 R3(config-if)#ipv6 address 3fff:1234:abcd:2::3/64 R3(config-if)#ipv6 address 3fff:1234:abcd:3::3/64 R3(config-if)#ipv6 enable R3(config-if)#exit |
NOTE: While IPv4 routing is enabled by default in Cisco IOS software, IPv6 routing is disabled by default and must be explicitly enabled.
Following the configuration of the IPv4 and IPv6 addresses, you can simply view the router configuration to validate your configuration, as illustrated in the following output:
| R3#show running-config interface FastEthernet0/0Building configuration…
Current configuration : 395 bytes ! interface FastEthernet0/0 ip address 10.0.1.3 255.255.255.0 secondary ip address 10.0.2.3 255.255.255.0 secondary ip address 10.0.0.3 255.255.255.0 ipv6 address 3FFF:1234:ABCD:1::3/64 ipv6 address 3FFF:1234:ABCD:2::3/64 ipv6 address 3FFF:1234:ABCD:3::3/64 ipv6 enable end |
To view specific IPv4 and IPv6 interface parameters, simply use the Cisco IOS software show ip interface [name] or the show ipv6 interface [name] commands. Following is the output of the show ip interface command for the FastEthernet0/0 interface:
| R3#show ip interface FastEthernet0/0 | section addressInternet address is 10.0.0.3/24Broadcast address is 255.255.255.255
Helper address is not set Secondary address 10.0.1.3/24 Secondary address 10.0.2.3/24 Network address translation is disabled |
The following output illustrates the information printed by the show ipv6 interface command for the same FastEthernet0/0 interface used in the previous example:
| R3#show ipv6 interface FastEthernet0/0 | section addressIPv6 is enabled, link-local address is FE80::213:19FF:FE86:A20Global unicast address(es):
3FFF:1234:ABCD:1::3, subnet is 3FFF:1234:ABCD:1::/64 3FFF:1234:ABCD:2::3, subnet is 3FFF:1234:ABCD:2::/64 3FFF:1234:ABCD:3::3, subnet is 3FFF:1234:ABCD:3::/64 Joined group address(es): FF02::1 FF02::2 FF02::5 FF02::6 FF02::9 FF02::1:FF00:3 Hosts use stateless autoconfig for addresses. |