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

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 Route Exchange Between an MCE Device and VPN Sites

Configuring Route Exchange Between an MCE Device and VPN Sites

Context

You can use static routes, Routing Information Protocol (RIP), Open Shortest Path First (OSPF), Intermediate System to Intermediate System (IS-IS), or Border Gateway Protocol (BGP) between an MCE device and VPN sites. Choose one of the following configurations as needed:

The following configurations are performed on the MCE device. On the devices in the site, you only need to configure the corresponding routing protocol.

Configuring Static Routes Between an MCE Device and a Site

Perform the following configurations on the MCE device. Configure a static route to the MCE device in the site. The site configuration is not provided here. For detailed configuration of static routes, see Static Route Configuration in the CloudEngine 12800 and 12800E Series Switches Configuration Guide - IP Routing.

Table 2-15 MCE configuration

Action

Command

Description

Enter the system view.

system-view

-

Configure a static route to the site.

ip route-static vpn-instance vpn-source-name destination-address { mask | mask-length } { nexthop-address [ public ] | interface-type interface-number [ nexthop-address ] } [ preference preference | tag tag ] *

You must specify the next hop address on the MCE device.

Commit the configuration.

commit

-

Configuring RIP Between an MCE Device and a Site

Perform the following configurations on the MCE device. Configure RIPv1 or RIPv2 in the site. The site configuration is not provided here. For detailed RIP configuration, see RIP Configuration in the CloudEngine 12800 and 12800E Series Switches Configuration Guide - IP Routing.
Table 2-16 MCE configuration

Action

Command

Description

Enter the system view.

system-view

-

Create a RIP process running between the MCE device and the site and enter the RIP view.

rip process-id vpn-instance vpn-instance-name

A RIP process can be bound to only one VPN instance. If a RIP process is not bound to any VPN instance before it is started, this process becomes a public network process and can no longer be bound to a VPN instance.

Enable RIP on the network segment of the interface to which the VPN instance is bound.

network network-address

-

(Optional) Import the routes to the remote sites advertised by the PE device into the RIP routing table.

import-route protocol [ process-id ] [ cost { cost | transparent } | [ route-policy route-policy-name ] ] *

Perform this step if another routing protocol is running between the MCE and PE devices in the VPN instance.

Commit the configuration.

commit

-

Configuring OSPF Between an MCE Device and a Site

Perform the following configurations on the MCE device. Configure OSPF in the site. The site configuration is not provided here. For detailed OSPF configuration, see OSPF Configuration in the CloudEngine 12800 and 12800E Series Switches Configuration Guide - IP Routing.

Table 2-17 MCE configuration

Action

Command

Description

Enter the system view.

system-view

-

Create an OSPF process running between the MCE device and the site and enter the OSPF view.

ospf [ process-id | router-id router-id ] * vpn-instance vpn-instance-name

-

(Optional) Import the routes to the remote sites advertised by the PE device into the OSPF routing table.

import-route { bgp [ permit-ibgp ] | direct | rip [ process-id-rip ] | static | isis [ process-id-isis ] | ospf [ process-id-ospf ] } [ cost cost | route-policy route-policy-name | tag tag | type type ] *

Perform this step if another routing protocol is running between the MCE and PE devices in the VPN instance.

Configure an OSPF area and enter the OSPF area view.

area { area-id | area-id-address }

-

Enable OSPF on the network segment of the interface to which the VPN instance is bound.

network ip-address wildcard-mask

-

Commit the configuration.

commit

-

Configuring IS-IS Between an MCE Device and a Site

Perform the following configurations on the MCE device. Configure IS-IS in the site. The site configuration is not provided here. For detailed IS-IS configuration, see IS-IS Configuration in the CloudEngine 12800 and 12800E Series Switches Configuration Guide - IP Routing.

Table 2-18 MCE configuration

Action

Command

Description

Enter the system view.

system-view

-

Create an IS-IS process running between the MCE device and the site and enter the IS-IS view.

isis process-id vpn-instance vpn-instance-name

An IS-IS process can be bound to only one VPN instance. If an IS-IS process is not bound to any VPN instance before it is started, this process becomes a public network process and can no longer be bound to a VPN instance.

Set a network entity title (NET) for the IS-IS process.

network-entity net

A NET specifies the current IS-IS area address and the system ID of the switch. A maximum of three NETs can be configured for one process on each switch.

(Optional) Import the routes to the remote sites advertised by the PE device into the IS-IS routing table.

Use either of the following commands:
  • import-route { direct | static | { ospf | rip | isis } [ process-id ] | bgp } [ cost-type { external | internal } | cost cost | tag tag | route-policy route-policy-name | [ level-1 | level-2 | level-1-2 ] ] *

  • import-route { { ospf | rip | isis } [ process-id ] | bgp | direct }inherit-cost [ { level-1 | level-2 | level-1-2 } | tag tag | route-policy route-policy-name ] *

Perform this step if another routing protocol is running between the MCE and PE devices in the VPN instance.

Return to the system view.

quit

-

Enter the view of the interface to which the VPN instance is bound.

interface interface-type interface-number

-

Enable IS-IS on the interface.

isis enable [ process-id ]

-

Commit the configuration.

commit

-

Configuring BGP between an MCE Device and a Site

Perform the following configurations on the MCE device.
Table 2-19 MCE configuration

Action

Command

Description

Enter the system view.

system-view

-

Enter the BGP view.

bgp { as-number-plain | as-number-dot }

-

Enter the BGP-VPN instance IPv4 address family view.

ipv4-family vpn-instance vpn-instance-name

-

Configure the device connected to the MCE device in the site as a VPN peer.

peer ipv4-address as-number as-number

-

(Optional) Import the routes to the remote sites advertised by the PE device into the BGP routing table.

import-route protocol [ process-id ] [ med med | route-policy route-policy-name ] *

Perform this step if another routing protocol is running between the MCE and PE devices in the VPN instance.

Allow routing loops.

peer ipv4-address allow-as-loop [ number ]

Generally, BGP uses the AS number to detect route loops. If BGP is running between the MCE device and the site, the MCE device advertises the routing information with the local AS number to the site. If the route update messages sent from the site contain the local AS number, the MCE device rejects the route update messages. To allow the MCE device to accept these route update messages, run this command.

Commit the configuration.

commit

-

Perform the following configurations on the device connected to the MCE device in the site.
Table 2-20 Site configuration

Action

Command

Description

Enter the system view.

system-view

-

Enter the BGP view.

bgp { as-number-plain | as-number-dot }

-

Configure the MCE device as a VPN peer.

peer ipv4-address as-number as-number

-

Import IGP routes of the VPN into the BGP routing table.

import-route protocol [ process-id ] [ med med | route-policy route-policy-name ] *

The site must advertise routes to its attached VPN network segments to the MCE device.

Commit the configuration.

commit

-

Translation
Download
Updated: 2019-04-03

Document ID: EDOC1100075353

Views: 13992

Downloads: 25

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