link-address
Function
The link-address command configures the network prefix in the IPv6 address pool view.
The undo link-address command deletes the network prefix configured in the IPv6 address pool view.
By default, no network prefix is configured in the IPv6 address pool view.
Parameters
Parameter |
Description |
Value |
---|---|---|
ipv6-prefix/ipv6-prefix-length |
Specifies the network prefix and prefix length. |
ipv6-prefix: The 128-bit IPv6 address is divided into eight groups. Each group contains four hexadecimal digits. The format is X:X:X:X:X:X:X:X. ipv6-prefix-length: The value is an integer that ranges from 16 to 128. |
Usage Guidelines
Usage Scenario
The DHCPv6 client needs to apply for network configuration information (for example, the IP address of the DNS server) except for the IPv6 address from the DHCPv6 server. If the address prefix is not configured in the IPv6 address pool, you can run the link-address command to configure the network prefix in the IPv6 address pool view.
When the device functions as the DHCPv6 server:
- If a relay exists, the server chooses the address pool that belongs to the same link scope with the configured network prefix (using the link-address or address prefixcommand) based on the first link-address field that is not 0. The link-address field identifies the link scope of the DHCPv6 clients.
- If no relay exists, the device that functions as the DHCPv6 server only assigns configuration parameters to clients in DHCPv6 stateless mode. This indicates that the DHCPv6 server only assigns configuration parameters excluding IPv6 addresses and including DNS, NIS, and SNTP servers, and the IPv6 addresses for clients are automatically generated based on the RA packets. To enable the DHCPv6 server to assign network parameters in DHCPv6 stateful mode, enable the DHCPv6 server function in the interface view, using the dhcpv6 server (interface view) command.
When the device functions as the DHCPv6 PD server:
- If a relay exists, choose the address pool in the same link scope with the configured network prefix (using the link-address command) based on the first link-address field that is not 0. The link-address field identifies the link scope of the DHCPv6 clients.
- If no relay exists, the DHCPv6 PD server function cannot be enabled in the system view and can be enabled in the interface view, using the dhcpv6 server (interface view) command.
Prerequisites
Idle addresses or prefixes are assigned to DHCPv6 clients from the IPv6 address pool. Reserved addresses, conflicted addresses, and used addresses cannot be assigned to DHCPv6 clients. Reserved addresses include unspecified addresses, multicast addresses, loopback addresses, link-local addresses, NSAP addresses, and anycast addresses (defined in RFC 2526).