No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

NE20E-S2 V800R010C10SPC500 Configuration Guide - IP Services 01

This is NE20E-S2 V800R010C10SPC500 Configuration Guide - IP Services
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring RA

Configuring RA

A device periodically sends Router Advertisement (RA) messages that carry prefixes and flag bits, or responds to the router request messages with RA messages.

Usage Scenario

RA messages contain parameters of the hosts on the local link.

Pre-configuration Tasks

Before configuring RA, complete the following tasks:

  • Connect interfaces and configure physical parameters for the interfaces to ensure that the physical status of the interfaces is Up.

  • Configure link layer protocol parameters for the interfaces to ensure that the link layer protocol status of the interfaces is Up.

  • Configure IPv6 addresses for interfaces.

Configuration Procedures

Figure 12-2 Flowchart for configuring RA

Enabling RA

After enabling RA for a device, the device can advertise RA messages to provide route prefixes for hosts.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The interface view is displayed.

  3. Run undo ipv6 nd ra halt

    RA is enabled.

  4. Run commit

    The configuration is committed.

Setting Parameters Carried in RA Messages

An RA message can carry parameters, such as the maximum number of hops, prefix, neighbor reachable time, and lifetime of the RA message.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run ipv6 nd hop-limit limit

    The maximum number of hops through which an RA message passes is set.

  3. Run interface interface-type interface-number

    The interface view is displayed.

  4. Run ipv6 nd ra prefix default no-advertise

    The device is configured not to carry the default address prefix generated based on the interface IPv6 address in an RA message.

  5. Run ipv6 nd ra prefix ipv6-address prefix-length valid-lifetime preferred-lifetime [ no-autoconfig ] [ off-link ]

    The prefix in an RA message is configured.

    The address prefix configured using the ipv6 nd ra prefix command has a higher priority than the default address prefix. Considering that an RA message carries a maximum of 17 address prefixes, the default address prefix will not be carried in an RA message to be advertised if 17 address prefixes have been configured.

    NOTE:
    When allocating the IPv6 address by means of stateless auto-configuration, specify the length of address prefixes as 64 bites. Otherwise, the address will be invalid and RA messages will be discarded.

  6. Run ipv6 nd autoconfig managed-address-flag

    The device is configured to carry a flag indicating whether hosts should use stateful autoconfiguration to obtain addresses in an RA message.

  7. Run ipv6 nd autoconfig other-flag

    The device is configured to carry a flag indicating whether hosts should use stateful autoconfiguration to obtain information other than addresses in an RA message.

    NOTE:

    If the flag indicating whether hosts should use stateful autonegotiation to obtain addresses is set to 1 in an RA message, the flag indicating whether hosts should use stateful autoconfiguration to obtain information other than addresses should also be set to 1.

  8. Run ipv6 nd nud reachable-time value

    The neighbor reachable time is set.

  9. Run ipv6 nd ra router-lifetime ra-lifetime

    The lifetime of an RA message is configured.

    NOTE:

    The RA message advertisement interval configured using the ipv6 nd ra command must be less than or equal to the lifetime of an RA message.

  10. Run ipv6 nd ra advertised-mtu disable

    The device is configured not to carry the MTU option in an RA message.

  11. Run commit

    The configuration is committed.

(Optional) Setting the RA Message Advertisement Interval

You can set a smaller RA message advertisement interval to speed up the RA process.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The interface view is displayed.

  3. Run ipv6 nd ra { max-interval maximum-interval | min-interval minimum-interval }

    The RA message advertisement interval is set.

    The maximum interval must be greater than 4/3 of the minimum interval.

  4. Run commit

    The configuration is committed.

(Optional) Configuring the Default Router Priority and Route Information

Router Advertisement(RA) packets that carry the default router priority and route information can be transmitted over the local link. In this manner, a proper router can be selected to forward packets of a host.

Context

If a host is connected to multiple routers, the host must select a router to forward packets based on the destination addresses of packets. The router can advertise the default router priority and specified route information to the host so that the host can select a proper forwarding router based on the destination addresses of packets.

After receiving the RA packets carrying the route information, the host updates its routing table. When sending packets to another device, the host queries the routing table and selects a proper route to send packets.

When receiving the RA packets that carry the priority of default routers, the host updates its default router table. When sending packets to another device, if there is no route to be selected, the host queries the default router table. Then, the host selects a router with the highest priority on the local link to send packets. If the router is faulty, the host selects another router in descending order of priority.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The interface view is displayed.

  3. Run ipv6 nd ra preference { high | medium | low }

    The default router priority is configured in RA packets.

  4. Run ipv6 nd ra route-information ipv6-address prefix-length lifetime route-lifetime [ preference { high | medium | low } ]

    Route information is configured in RA packets.

Verifying the Configuration of RA

After configuring RA, verify the configuration.

Prerequisites

RA has been configured.

Procedure

  1. Run the display ipv6 interface [ interface-type interface-number | brief ] command to check RA configurations.

Example

Run the display ipv6 interface command. The command output shows RA configurations on an interface.

<HUAWEI> display ipv6 interface gigabitethernet 0/1/0
GigabitEthernet0/1/0 current state : UP 
IPv6 protocol current state : UP 
IPv6 is enabled, link-local address is FE80::3AEF:7CFF:FE11:500 
  Global unicast address(es):
    2001:DB8::1, subnet is 2001:DB8::/64 
  Joined group address(es):
    FF02::1:FF00:1
    FF02::1:FF11:500
    FF02::2
    FF02::1
  MTU is 1500 bytes 
  ND DAD is enabled, number of DAD attempts: 1
  ND reachable time is 1200000 milliseconds
  ND retransmit interval is 1000 milliseconds
  ND advertised reachable time is 0 milliseconds
  ND advertised retransmit interval is 0 milliseconds
  ND router advertisement max interval 600 seconds, min interval 200 seconds
  ND router advertisements live for 1800 seconds
  ND router advertisements hop-limit 64
  ND default router preference medium
  Hosts use stateless autoconfig for addresses
Translation
Download
Updated: 2019-01-02

Document ID: EDOC1100055376

Views: 15868

Downloads: 33

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next