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


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


Configuration Guide - VPN

CloudEngine 12800 and 12800E V200R005C10

This document describes the configurations of VPN, including GRE, BGP/MPLS IP VPN, BGP/MPLS IPv6 VPN, VLL, PWE3, and VPLS.
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


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.

Switch_1 in Figure 1-12 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 10GE2/0/0 on Switch_2), and set the outbound interface to the tunnel interface on the local device (Tunnel1 on Switch_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.

    As shown in Figure 1-12, you must configure the dynamic routing protocol on the tunnel interface and 10GE2/0/0 connected to the network running the X protocol. In the routing table, the outbound interface toward network segment on Switch_2 is Tunnel1.

    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.

    Figure 1-12 Networking for configuring a dynamic routing protocol for GRE


  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 CloudEngine 12800 and 12800E Series Switches Configuration Guide - IP Routing.

    • Configure redirection. You can redirect packets matching traffic classification rules to the GRE tunnel by configuring redirection. For redirection configurations, refer to CloudEngine 12800 and 12800E Series Switches QoS Configuration Guide - Redirection Configuration.

      When configuring redirection, you need to run the redirect interface tunnel tunnel-id [ fail-action forward ] command in the traffic behavior view to redirect packets to the GRE tunnel.

    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.

  3. Run commit

    The configuration is committed.

Updated: 2019-04-03

Document ID: EDOC1100075353

Views: 14224

Downloads: 25

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