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

CLI-based Configuration Guide - IP Unicast Routing

AR100, AR120, AR150, AR160, AR200, AR1200, AR2200, AR3200, and AR3600 V200R010

This document describes the concepts and configuration procedures of IP Service features on the device, and provides the configuration examples.
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).
Creating IPv4 Static Routes

Creating IPv4 Static Routes

Context

When creating static routes, you can specify both the outbound interface and next hop. Alternatively, you can specify only the outbound interface or next hop based on the outbound interface type.
  • Specify the outbound interface for P2P interfaces.

  • Specify the next hop for non broadcast multiple access (NBMA) interfaces.

  • Specify the next hop for broadcast interfaces (for example, Ethernet interfaces) and virtual template interfaces.

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

If the destination IP address and mask are set to all 0s, an IPv4 static default route is configured. By default, no IPv4 static default route is configured.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Configure IPv4 static routes.
    • Run any of the following commands:
      • ip route-static ip-address { mask | mask-length } { nexthop-address | interface-type interface-number [ nexthop-address ] | vpn-instance vpn-instance-name nexthop-address } [ preference preference | tag tag ] * [ description text ]
      • ip route-static ip-address { mask | mask-length } interface-type interface-number [ nexthop-address ] [ preference preference | tag tag ] * ldp-sync [ description text ]
      • ip route-static destination-address { mask | mask-length } interface-type interface-number dhcp [ preference preference | tag tag ] * [ track nqa admin-name test-name ] [ description text ]

      An IPv4 static route is configured on the public network.

    • Run any of the following commands:
      • ip route-static vpn-instance vpn-source-name destination-address { mask | mask-length } { nexthop-address [ public ] | interface-type interface-number [ nexthop-address ] | vpn-instance vpn-destination-name nexthop-address } [ preference preference | tag tag ] * [ description text ]
      • Or ip route-static vpn-instance vpn-source-name destination-address { mask | mask-length } interface-type interface-number [ nexthop-address ] [ preference preference | tag tag ] * ldp-sync [ description text ]
      • ip route-static vpn-instance vpn-source-name destination-address { mask | mask-length } interface-type interface-number dhcp [ preference preference | tag tag ] * [ track nqa admin-name test-name ] [ description text ]

      An IPv4 static route is configured in a VPN instance.

Translation
Download
Updated: 2019-05-20

Document ID: EDOC1100034072

Views: 109836

Downloads: 158

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