CLI Reference IPv6 Configuration Commands
Preferred lifetime of the RA prefix received by the host
at valid-date preferred-date
Set the dead line for the valid lifetime and that of the preferred
lifetime, in day, month, year, hour, minute.
Indicate that the prefix is always valid.
The prefix will not be advertised by the device.
When the host sends an IPv6 packet, if the prefix of the destination
address matches the set prefix, it is considered that the destination is
on-link and is directly reachable. If this option is set, it indicates that
the prefix is not used for on-link judgment.
Indicate that the RA prefix received by the host cannot be used for
auto address configuration.
By default, the advertised prefix is the one set with ipv6 address on the interface. The default
parameters of the prefix configured in the RA are as follows:
valid-lifetime: 2592000s (30 days)
preferred-lifetime: 604800s (7 days),
The prefix is advertised and is used for on-link judgment and auto address configuration.
Interface configuration mode.
This command can be used to configure the parameters of each prefix, including whether to advertise
the prefix. By default, the prefix advertised in RA is the one set with ipv6 address on the interface. To
add other prefixes, use this command.
ipv6 nd prefix default
Set the default parameters to be used by the interface. If no parameter is specified for an added
prefix, the parameters set with ipv6 nd prefix default will be used. Note that after a parameter is
specified for the prefix, the default configuration will not be used. That is to say, the configuration of
the prefix cannot be modified with ipv6 nd prefix default; only the prefix that uses all the default
configurations can be modified with this command.
at valid-date preferred-date
The valid lifetime of a prefix can be specified in two ways. One way is to specify a fixed time for each
prefix in the RA; the other way is to specify the end time (in this mode, the valid lifetime of the prefix
sent in RA will be gradually reduced until the end time is 0).
The following example adds a prefix for SVI 1.
Ruijie(config)# interface vlan 1
Ruijie(conifig-if)# ipv6 nd prefix 2001::/64 infinite 2592000
The following example sets the default prefix parameters for SVI 1 (they cannot be used for auto
address configuration):
Ruijie(config)# interface vlan 1
Ruijie(config-if)# ipv6 prefix default no-autoconfig