HP MSR2000/3000/4000 Router Series Layer 3 - IP Services Command Reference

236
Examples
# Configure Ethernet 1/1 to automatically generate a link-local address.
<Sysname> system-view
[Sysname] interface ethernet 1/1
[Sysname-Ethernet1/1] ipv6 address auto link-local
Related commands
ipv6 address link-local
ipv6 address eui-64
Use ipv6 address eui-64 to configure an EUI-64 IPv6 address for an interface.
Use undo ipv6 address eui-64 to remove the EUI-64 IPv6 address of the interface.
Syntax
ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length } eui-64
undo ipv6 address [ ipv6-address prefix-length | ipv6-address/prefix-length ] eui-64
Default
No EUI-64 IPv6 address is configured for an interface.
Views
Interface view
Predefined user roles
network-admin
Parameters
ipv6-address/prefix-length: Specifies an IPv6 address and IPv6 prefix length. The ipv6-address and
prefix-length arguments jointly specify the prefix of an EUI-64 IPv6 address. The value range for the
prefix-length argument is 1 to 64.
Usage guidelines
An EUI-64 IPv6 address is generated based on the specified prefix and the automatically generated
interface identifier and is displayed by using the display ipv6 interface command.
The prefix length of an EUI-64 IPv6 address cannot be greater than 64.
Examples
# Configure an EUI-64 IPv6 address for interface Ethernet 1/1. The prefix of the address is the same as
that of 2001::1/64, and the interface ID is generated based on the MAC address of the device.
Method 1:
<Sysname> system-view
[Sysname] interface ethernet 1/1
[Sysname-Ethernet1/1] ipv6 address 2001::1/64 eui-64
Method 2:
<Sysname> system-view
[Sysname] interface ethernet 1/1
[Sysname-Ethernet1/1] ipv6 address 2001::1 64 eui-64