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 - VPN

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

This document describes VPN features on the device and provides configuration procedures and 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).
Configuring a Route on a Tunnel Interface

Configuring a Route on a Tunnel Interface

Context

GRE-encapsulated packets can be correctly forwarded only when a local and a remote device on the backbone network has a reachable route to each other and the route passes through the tunnel interfaces on the devices. The route can be a static route or a dynamic route.

NOTE:

As shown in Figure 3-16, the X network runs the protocol frame relay (FR), High-Level Data Link Control (HDLC), or Point-to-Point Protocol (PPP). If packets from the X network need to be transparently transmitted over an IP network, the route configured on a tunnel interface does not take effect. In this case, you need to perform steps in (Optional) Configuring the Link Bridge Function.

Router_1 in Figure 3-16 is used as an example to illustrate the configuration notes.
  • When configuring a static route, configure a route on both the local and the remote devices. Set the destination address of a static route to the original destination address of original packets (address of GE2/0/0 on Router_2), and set the outbound interface to the tunnel interface on the local device (Tunnel0/0/1 on Router_1).

  • When configuring a dynamic routing protocol, configure the protocol on both the tunnel interface and the interface connected to the network running the X protocol.

    For example, as shown in Figure 3-16, you must configure the dynamic routing protocol on the tunnel interface and GE2/0/0 connected to the network running the X protocol, and set the outbound interface to GE2/0/0 on Router_2 in the routing table to Tunnel0/0/1.

    In practice, you must configure different types of routing protocols or different processes of the same type of routing protocol to advertise routes for the tunnel interface and the backbone network. This ensures that user packets are forwarded by a physical interface rather than the tunnel interface.

    NOTE:

    When a dynamic routing protocol is configured and the route import function is enabled on the tunnel interface, use a dynamic route or a 32-bit host route to implement interworking with the destination address. This ensures that the route to the destination address is not advertised to the tunnel interface, preventing tunnel flapping.

    Figure 3-16  Networking for configuring a dynamic routing protocol for GRE

Procedure

  1. Run system-view

    The system view is displayed.

  2. Choose either of the following methods to configure a route passing through a tunnel interface:

    • Run ip route-static ip-address { mask | mask-length } { nexthop-address | tunnel interface-number [ nexthop-address ] } [ description text ]

      A static route is configured.

    • Configure a dynamic routing protocol. Dynamic routing can be implemented using Interior Gateway Protocol (IGP) or Exterior Gateway Protocol (EGP), such as Open Shortest Path First (OSPF) and Routing Information Protocol (RIP). For details on how to configure a dynamic routing protocol, see Huawei AR Series Access Routers Configuration Guide - IP Routing.

    When IPv6 networks communicate with each other over the GRE tunnel, you must configure an IPv6 routing protocol on the tunnel interface and the physical interface connected to the network running IPv6.

Translation
Download
Updated: 2019-08-07

Document ID: EDOC1100033725

Views: 144737

Downloads: 361

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