GUA and LLA Static Configuration
Summary
This topic explain how to Configure static global unicast and link-local IPv6 network addresses. Start learning CCNA 200-301 for free right now!!
Table of Contents
Static GUA Configuration on a Router
As you learned in the previous topic, IPv6 GUAs are the same as public IPv4 addresses. They are globally unique and routable on the IPv6 internet. An IPv6 LLA lets two IPv6-enabled devices communicate with each other on the same link (subnet). It is easy to statically configure IPv6 GUAs and LLAs on routers to help you create an IPv6 network. This topic teaches you how to do just that!
Most IPv6 configuration and verification commands in the Cisco IOS are similar to their IPv4 counterparts. In many cases, the only difference is the use of ipv6 in place of ip within the commands.
For example, the Cisco IOS command to configure an IPv4 address on an interface is ip address ip-address subnet-mask. In contrast, the command to configure an IPv6 GUA on an interface is ipv6 address ipv6-address/prefix-length.
Notice that there is no space between ipv6-address and prefix-length.
The example configuration uses the topology shown in the figure and these IPv6 subnets:
- 2001:db8:acad:1:/64
- 2001:db8:acad:2:/64
- 2001:db8:acad:3:/64
Example Topology
The example shows the commands required to configure the IPv6 GUA on GigabitEthernet 0/0/0, GigabitEthernet 0/0/1, and the Serial 0/1/0 interface of R1.
IPv6 GUA Configuration on Router R1
R1(config)# interface gigabitethernet 0/0/0 R1(config-if)# ipv6 address 2001:db8:acad:1::1/64 R1(config-if)# no shutdown R1(config-if)# exit R1(config)# interface gigabitethernet 0/0/1 R1(config-if)# ipv6 address 2001:db8:acad:2::1/64 R1(config-if)# no shutdown R1(config-if)# exit R1(config)# interface serial 0/1/0 R1(config-if)# ipv6 address 2001:db8:acad:3::1/64 R1(config-if)# no shutdown
Static GUA Configuration on a Windows Host
Manually configuring the IPv6 address on a host is similar to configuring an IPv4 address.
As shown in the figure, the default gateway address configured for PC1 is 2001:db8:acad:1::1. This is the GUA of the R1 GigabitEthernet interface on the same network. Alternatively, the default gateway address can be configured to match the LLA of the GigabitEthernet interface. Using the LLA of the router as the default gateway address is considered best practice. Either configuration will work.
Just as with IPv4, configuring static addresses on clients does not scale to larger environments. For this reason, most network administrators in an IPv6 network will enable dynamic assignment of IPv6 addresses.
There are two ways in which a device can obtain an IPv6 GUA automatically:
- Stateless Address Autoconfiguration (SLAAC)
- Stateful DHCPv6
SLAAC and DHCPv6 are covered in the next topic.
Static Configuration of a Link-Local Unicast Address
Configuring the LLA manually lets you create an address that is recognizable and easier to remember. Typically, it is only necessary to create recognizable LLAs on routers. This is beneficial because router LLAs are used as default gateway addresses and in routing advertisement messages.
LLAs can be configured manually using the ipv6 address ipv6-link-local-address link-local command. When an address begins with this hextet within the range of fe80 to febf, the link-local parameter must follow the address.
The figure shows an example topology with LLAs on each interface.
Example Topology with LLAs
The example shows the configuration of an LLA on router R1.
R1(config)# interface gigabitethernet 0/0/0 R1(config-if)# ipv6 address fe80::1:1 link-local R1(config-if)# exit R1(config)# interface gigabitethernet 0/0/1 R1(config-if)# ipv6 address fe80::1:2 link-local R1(config-if)# exit R1(config)# interface serial 0/1/0 R1(config-if)# ipv6 address fe80::1:3 link-local R1(config-if)# exit
Statically configured LLAs are used to make them more easily recognizable as belonging to router R1. In this example, all the interfaces of router R1 have been configured with an LLA that begins with fe80::1:n and a unique right-most digit “n”. The “1” represents router R1.
Following the same syntax as router R1, if the topology included router R2, it would have its three interfaces configured with the LLAs fe80::2:1, fe80::2:2, and fe80::2:3.
GUA and LLA Static Configuration
Assign IPv6 GUAs and LLAs to the specified interfaces on router R1.
Configure and activate IPv6 on the Gigabit Ethernet 0/0/0 interface with the following addresses:
Use g0/0/0 as the interface name
LLA – fe80::1:1
GUA – 2001:db8:acad:1::1/64
Activate the interface
Exit interface configuration mode
R1(config)#interface g0/0/0 R1(config-if)#ipv6 address fe80::1:1 link-local R1(config-if)#ipv6 address 2001:db8:acad:1::1/64 R1(config-if)#no shutdown %LINK-3-UPDOWN: Interface GigabitEthernet0/0/0, changed state to up R1(config-if)#exit
Configure and activate IPv6 on the Gigabit Ethernet 0/0/1 interface with the following addresses:
Use g0/0/1 as the interface name
LLA – fe80::2:1
GUA – 2001:db8:acad:2::1/64
Activate the interface
Exit interface configuration mode
R1(config)#interface g0/0/1 R1(config-if)#ipv6 address fe80::2:1 link-local R1(config-if)#ipv6 address 2001:db8:acad:2::1/64 R1(config-if)#no shutdown %LINK-3-UPDOWN: Interface GigabitEthernet0/0/1, changed state to up R1(config-if)#exit
Configure and activate IPv6 on the serial 0/1/0 interface with the following addresses:
Use s0/1/0 as the interface name
GUA – 2001:db8:acad:3::1/64
LLA – fe80::1:3
Activate the interface
Exit interface configuration mode
R1(config)#interface s0/1/0 R1(config-if)#ipv6 address fe80::3:1 link-local R1(config-if)#ipv6 address 2001:db8:acad:3::1/64 R1(config-if)#no shutdown %LINK-3-UPDOWN: Interface Serial0/1/0, changed state to up R1(config-if)#exit R1(config)#
You successfully configured IPv6 GUAs on the interfaces of router R1.
Ready to go! Keep visiting our networking course blog, give Like to our fanpage; and you will find more tools and concepts that will make you a networking professional.