The ipv6 nd ra route-information command configures route information in RA packets.
The undo ipv6 nd ra route-information command deletes route information in RA packets.
By default, there is no route in RA packets.
ipv6 nd ra route-information ipv6-address prefix-length lifetime route-lifetime [ preference { high | medium | low } ]
undo ipv6 nd ra route-information ipv6-address prefix-length
undo ipv6 nd ra route-information ipv6-address prefix-length lifetime route-lifetime [ preference { high | medium | low } ]
Parameter | Description | Value |
---|---|---|
ipv6-address |
Specifies the prefix of an IPv6 address. |
The prefix is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
prefix-length |
Specifies the prefix length of an IPv6 address. |
The value is an integer that ranges from 0 to 128. |
lifetime route-lifetime |
Specifies the lifetime of a route. |
The value is an integer ranging from 0 to 4294967295, in seconds. |
preference |
Specifies the priority of a route. |
- |
high |
Specifies the route priority to be high. |
- |
medium |
Specifies the route priority to be medium. |
- |
low |
Specifies the route priority to be low. |
- |
100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE sub-interface view, 25GE interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, PW-VE sub-interface view, PW-VE interface view, VBDIF interface view, VE sub-interface view, VLANIF interface view, Management interface view
Usage Scenario
An RA packet includes routing information. The routing device sends the specified routes to the hosts on the local network segment by using this information. The hosts can send packets by using these routes.
Prerequisites
IPv6 has been enabled on the involved interface using the ipv6 enable command.
By default, the Router does not send RA packets. Therefore, to send the routers to the host, you need to run the undo ipv6 nd ra halt command to enable the function of advertising RA packets for the device.Configuration Impact
When receiving the RA packets carrying route information, a host updates its routing table. When sending the RA packets to another device, a host queries the routing table and selects proper route for sending packets.
Precautions
When this command is to be run, the value of ipv6-address cannot be a loopback address.
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet 0/1/1 [~HUAWEI-GigabitEthernet0/1/1] ipv6 enable [*HUAWEI-GigabitEthernet0/1/1] undo ipv6 nd ra halt [*HUAWEI-GigabitEthernet0/1/1] ipv6 nd ra route-information 2001:db8::12 64 lifetime 1550 preference high