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

AR Router Troubleshooting Guide

This Product Documentation provides guidance for maintaining AR Enterprise Router, covering common information collection and fault diagnostic commands, typical fault troubleshooting guide, and troubleshooting.
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).
How to Configure Static Routes

How to Configure Static Routes

Procedure

  • Configure an IPv4 static route with the destination address 192.168.1.0, next-hop IP address 192.168.4.1, and preference 60.

    <Huawei> system-view
    [Huawei] ip route-static 192.168.1.0 255.255.255.0 192.168.4.1 preference 60
  • Configure an IPv6 static route with the destination address 1::, next-hop IPv6 address 10::1, and preference 80.

    <Huawei> system-view
    [Huawei] ipv6 route-static 1:: 64 gigabitethernet0/0/1 10::1 preference 80

More Information

  • If no preference is set for a static route, the static route uses the default preference 60.

  • If the destination IP address and mask of a static route are set to all 0s, a default route is configured. If a packet does not match any route in an IP routing table, this packet is forwarded using a default route.

  • If you specify the same preference for multiple static routes with the same destination address, you can implement load balancing among these routes. If you specify different preferences for these routes, you can implement route backup among the routes.

  • When configuring an IPv4 static route, you need to specify an outbound interface or a next-hop address as required. On a point-to-point interface, you only need to specify an outbound interface. On an NBMA interface, you only need to specify a next-hop address. On a broadcast interface, you only need to specify a next-hop address.

  • When configuring an IPv6 static route, you need to specify an outbound interface or a next-hop address as required. On a point-to-point interface, you only need to specify an outbound interface. On an NBMA interface, you only need to specify a next-hop address. On a broadcast interface, you can specify only an outbound interface or specify both an outbound interface and a next-hop address. This next-hop address can be a non-link-local address.

Translation
Download
Updated: 2019-05-10

Document ID: EDOC1000079719

Views: 443942

Downloads: 4295

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