interfaces loopback <interface-name> ipv6 address
Assigns an IPv6 address to a loopback interface.
- interface-name
- The name of a loopback interface, lo or lon, where n ranges from 1 through 99999.
- autoconf
- Generates an IPv6 address by using the SLAAC protocol. Use this keyword if the interface is performing a “host” function rather than a “router” function. You can specify this keyword in addition to static IPv6, static IPv4, and IPv4 DHCP addresses on the interface.
- eui64 ipv6prefix
- Specifies the 64-bit IPv6 address prefix that is used to configure an IPv6 address in EUI-64 format. The system concatenates this prefix with a 64-bit EUI-64 value that is derived from the 48-bit MAC address of the interface.
- link-local ipv6-address
- Specifies the 128-bit IPv6 address.
Configuration mode
interfaces {
loopback interface-name {
ipv6 {
address {
autoconf
eui64 ipv6prefix
link-local ipv6-address
}
}
}
}
Use this command to specify a method for assigning an IPv6 address to a loopback interface.
Use the autoconf keyword to direct the system to automatically configure (autoconfigure) the address by using the Stateless Address Autoconfiguration (SLAAC) protocol that is defined in RFC 4862. Alternatively, you can provide an EUI-64 IPv6 address prefix so that the system constructs the IPv6 address.
If you want the system to use SLAAC to acquire an address on the interface, then in addition to setting this parameter, you must also disable IPv6 forwarding, either globally (by using the system ipv6 disable-forwarding command) or specifically on the interface (by using the interfaces loopback <interface-name> ipv6 disable-forwarding command).
Use the set form of this command to specify a method for assigning an IPv6 address to a loopback interface.
Use the delete form of this command to delete an IPv6 address from a loopback interface.
Use the show form of this command to display IPv6 address configuration settings for a loopback interface.