Page 2
All other trademarks and trade names mentioned in this document are the property of their respective holders. Notice The purchased products, services and features are stipulated by the contract made between Huawei and the customer. All or part of the products, services and features described in this document may not be within the purchase scope or the usage scope.
NOTE S7700 is controlled by the license. By default, the MPLS function is disabled on the S7700. To use the MPLS function of the S7700,buy the license from the Huawei local office. This document is intended for: Data configuration engineers...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN About This Document Command Conventions The command conventions that may be found in this document are defined as follows. Convention Description Boldface The keywords of a command line are in boldface.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN Contents Contents About This Document........................ii 1 VPN Tunnel Management Configuration................1 1.1 Introduction to VPN Tunnels..........................3 1.2 VPN Tunnel Features Supported by the S7700....................4 1.3 Configuring a Tunnel Interface..........................5 1.3.1 Establishing the Configuration Task......................6 1.3.2 Creating Tunnel Interfaces........................6...
Page 6
Quidway S7700 Smart Routing Switch Configuration Guide - VPN Contents 1.8.2 Debugging a Tunnel..........................29 1.9 Configuration Examples...........................29 1.9.1 Example for Configuring Tunnel Policies for the L3VPN..............29 1.9.2 Example for Binding a Tunnel to the Martini L2VPN................42 2 GRE Configuration........................57 2.1 Introduction to GRE............................59 2.2 GRE Features Supported by the S7700......................59...
Page 7
Quidway S7700 Smart Routing Switch Configuration Guide - VPN Contents 3.4 Configuring Basic BGP/MPLS IP VPN......................105 3.4.1 Establishing the Configuration Task.....................105 3.4.2 Configuring a VPN Instance........................106 3.4.3 Binding an Interface with a VPN Instance....................106 3.4.4 Configuring MP-IBGP Between PEs....................107 3.4.5 Configuring a Routing Protocol Between a PE and a CE..............108 3.4.6 Checking the Configuration........................117...
Page 8
Quidway S7700 Smart Routing Switch Configuration Guide - VPN Contents 3.10.3 Configuring the OSPF Multi-Instance on the Multi-Instance CE............143 3.10.4 Canceling the Loop Detection on the Multi-Instance CE..............144 3.10.5 Checking the Configuration.........................144 3.11 Connecting VPN and the Internet.........................145 3.11.1 Establishing the Configuration Task....................145 3.11.2 Configuring the Static Route on the CE....................146...
Page 9
Quidway S7700 Smart Routing Switch Configuration Guide - VPN Contents 3.17.2 Example for Configuring Overlapping Addresses in Two BGP/MPLS IP VPNs......186 3.17.3 Example for Configuring Mutual Access Between VPNs on S7700..........196 3.17.4 Example for Configuring Mutual Access for Local VPNs on SPU Board.........201 3.17.5 Example for Configuring BGP ASN Substitution................204...
Page 10
Quidway S7700 Smart Routing Switch Configuration Guide - VPN Contents 4.6.3 Applying the Tunnel Policy to the IPv6 VPN..................350 4.6.4 Checking the Configuration........................350 4.7 Configuring Inter-AS IPv6 VPN-Option A....................351 4.7.1 Establishing the Configuration Task.....................351 4.7.2 Configuring Inter-AS IPv6 VPN Option A...................352 4.7.3 Checking the Configuration........................353...
Page 11
Quidway S7700 Smart Routing Switch Configuration Guide - VPN Contents 5.3.3 Creating a Local CCC Connection......................455 5.3.4 Creating a Remote CCC Connection.....................456 5.3.5 Checking the Configuration........................457 5.4 Configuring the SVC VLL..........................458 5.4.1 Establishing the Configuration Task.....................458 5.4.2 Enabling MPLS L2VPN........................459 5.4.3 Creating an SVC VLL Connection......................459...
Page 12
Quidway S7700 Smart Routing Switch Configuration Guide - VPN Contents 5.10.6 Debugging VLL...........................487 5.10.7 Checking Connectivity of the VLL Network..................488 5.11 Configuration Examples..........................489 5.11.1 Example for Configuring a Local CCC Connection................489 5.11.2 Example for Configuring a Remote CCC Connection................493 5.11.3 Example for Configuring an SVC VLL....................499 5.11.4 Example for Configuring a Martini VLL....................505...
Page 14
Quidway S7700 Smart Routing Switch Configuration Guide - VPN Contents 7.3.6 (Optional) Configuring the Features of Kompella VPLS..............688 7.3.7 Checking the Configuration........................689 7.4 Configuring Martini VPLS..........................691 7.4.1 Establishing the Configuration Task.....................691 7.4.2 Creating a VSI and Configuring LDP Signaling...................692 7.4.3 Binding the VSI to an AC Interface......................693 7.4.4 Checking the Configuration........................695...
Page 15
Quidway S7700 Smart Routing Switch Configuration Guide - VPN Contents 7.12.1 Collecting the Statistics of the Traffic on a VPLS PW...............724 7.12.2 Checking the Traffic on a VPLS PW....................725 7.12.3 Clearing the Traffic Statistics......................725 7.12.4 Checking the Consistency of VPN Configurations(Service Ping)............726 7.12.5 Debugging VPLS..........................726...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 1 VPN Tunnel Management Configuration VPN Tunnel Management Configuration About This Chapter VPN tunnel management involves the creation, management, and maintenance of VPN tunnels. 1.1 Introduction to VPN Tunnels This part briefly introduces VPN tunnels, including such commonly-used VPN tunnels as LSPs, TE tunnels, and GRE tunnels, and the configuration and management of these VPN tunnels.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 1 VPN Tunnel Management Configuration 1.1 Introduction to VPN Tunnels This part briefly introduces VPN tunnels, including such commonly-used VPN tunnels as LSPs, TE tunnels, and GRE tunnels, and the configuration and management of these VPN tunnels.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 1 VPN Tunnel Management Configuration 1.2 VPN Tunnel Features Supported by the S7700 The S7700 supports such VPN tunnel features as the select-sequence tunnel policy and tunnel binding policy. An application (such as VPN) selects tunnels according to the tunnel policy. If no tunnel policy is configured, the tunnel management module selects the tunnel according to the default tunnel policy.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 1 VPN Tunnel Management Configuration NOTE In IPv4 VPN networking, you can configure a maximum of six tunnels for load balancing. And in IPv6 VPN networking,the S7700 does not support load balancing by tunnels, that is, the number of tunnels for load balancing is 1.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 1 VPN Tunnel Management Configuration 1.3.1 Establishing the Configuration Task Before configuring a tunnel interface, familiarize yourself with the applicable environment, complete the pre-configuration tasks, and obtain the required data. This can help you complete the configuration task quickly and accurately.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 1 VPN Tunnel Management Configuration The system view is displayed. Step 2 Run: interface tunnel interface-number A tunnel interface is created. When creating the tunnel interfaces, you are recommended to set the slot numbers of the tunnel interfaces the same as the slot number of the interface sending the packets, that is, the interface at the source end.
Run the ip address unnumbered interface interface-type interface-number command to configure IP unnumbered on the tunnel interface. NOTE For details, refer to the chapter "IP Addresses Configuration" in the Quidway S7700 Smart Routing Switch Configuration Guide - IP Services. ----End 1.3.4 Checking the Configuration...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 1 VPN Tunnel Management Configuration Last line protocol up time : 2008-02-09 17:05:25 UTC-05:00 Description:HUAWEI, Quidway Series, Tunnel1/0/0 Interface Route Port,The Maximum Transmit Unit is 1500 Internet Address is unnumbered, using address of LoopBack0(9.9.9.9/32) Encapsulation is TUNNEL, loopback not set Tunnel destination 6.6.6.6...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 1 VPN Tunnel Management Configuration Applicable Environment By default, the system selects LSPs for a VPN and no load balancing is performed. If load balancing or other types of tunnels are required, you need to configure a tunnel policy and apply the tunnel policy.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 1 VPN Tunnel Management Configuration Step 2 Run: tunnel-policy policy-name A tunnel policy is created and the tunnel policy view is displayed. A tunnel policy indicates only one tunnel selection mode. If more tunnel selection modes are required, you need to create multiple tunnel policies.
Page 27
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 1 VPN Tunnel Management Configuration Procedure Run the display tunnel-policy tunnel-policy-name command to check configuration of the tunnel policy. Run the display ip vpn-instance verbose [ vpn-instance-name ] command to check tunnel policy of the VPN instance.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 1 VPN Tunnel Management Configuration Run the display tunnel-info tunnel-id tunnel-id command, and you can view detailed information about a specified tunnel. For example: [Quidway] display tunnel-info tunnel-id 10005 Tunnel ID:...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 1 VPN Tunnel Management Configuration Data Name of the tunnel policy Priority of tunnels Number of tunnels participating in load balancing Type and serial number of the VC interface on which the tunnel policy needs to be applied 1.5.2 Configuring a Tunnel Policy...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 1 VPN Tunnel Management Configuration is not selected in most cases, exceptthat load balancing is performed or the preceding tunnels are in the Down state. For example, if the tunnel select-seq cr-lsp lsp load-balance-number 1 command is configured, a VPN selects the LSP tunnel if no CR-LSP exists.
Page 31
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 1 VPN Tunnel Management Configuration Run: interface interface-type interface-number The view of the interface connected with the CE is displayed. Run: mpls l2vc ip-address vc-id tunnel-policy policy-name A tunnel policy is applied to the VC of the VLL in Martini mode.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 1 VPN Tunnel Management Configuration Applying a tunnel policy to VPLS in Kompella mode Do as follows on the PEs at both ends of a PW: Run: system-view The system view is displayed.
Page 33
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 1 VPN Tunnel Management Configuration Procedure Run the display tunnel-policy tunnel-policy-name. command to check the configuration of a tunnel policy. Run the display mpls l2vc [ interface interface-type interface-number ]. command to check the information about the tunnel used by the VC in L2VPN in SVC, PWE3, or Martini mode.
Configuring basic MPLS functions and enabling MPLS TE Configuring the MPLS TE tunnels between PEs (refer to the Quidway S7700 Smart Routing Switch Configuration Guide - MPLS). Configuring the VPN instance on the PE (refer to the chapter "3 BGP MPLS IP VPN...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 1 VPN Tunnel Management Configuration The VPN binding for the tunnel is enabled. The tunnel policy in select-sequence mode cannot use the tunnel enabled with the VPN binding. Step 4 Run: mpls te commit The current configuration is validated.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 1 VPN Tunnel Management Configuration Context Different VPN services to the same destination on a PE must apply different tunnel policies, and be bound with different TE tunnels. Procedure Step 1 Run: system-view The system view is displayed.
Page 38
Tunnel1/0/0 current state : UP Line protocol current state : UP Last line protocol up time : 2009-02-23 10:54:40 Description : HUAWEI, Quidway Series, Tunnel1/0/0 Interface Route Port,The Maximum Transmit Unit is 1500 Internet Address is unnumbered, using address of LoopBack1(1.1.1.9/32) Encapsulation is TUNNEL, loopback not set Tunnel destination 2.2.2.9...
Configuring the static route or IGP to ensure that routes are reachable to all nodes Configuring basic MPLS functions and enabling MPLS TE Configuring the MPLS TE tunnels between PEs (refer to the Quidway S7700 Smart Routing Switch Configuration Guide - MPLS Creating the VC on the PE (refer to the chapter "MPLS L2VPN Configuration"...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 1 VPN Tunnel Management Configuration 1.7.2 Enabling the VPN Binding for a Tunnel A tunnel can be bound to a VPN only after VPN tunnel binding is enabled. Context Only the tunnel enabled with the VPN binding can be bound with the VPN.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 1 VPN Tunnel Management Configuration A tunnel policy is created. Step 3 Run: tunnel binding destination dest-ip-address te tunnel interface-number [ down- switch ] The peer address is bound with the tunnel policy. The VPN data from the local end are transmitted through the bound tunnel to the destination address.
Page 42
Tunnel1/0/0 current state : UP Line protocol current state : UP Last line protocol up time : 2009-02-23 10:54:40 Description : HUAWEI, Quidway Series, Tunnel1/0/0 Interface Route Port,The Maximum Transmit Unit is 1500 Internet Address is unnumbered, using address of LoopBack1(1.1.1.9/32) Encapsulation is TUNNEL, loopback not set Tunnel destination 2.2.2.9...
For the procedure of outputting the debugging information, refer to Information Center Configuration. For the description about the debugging commands, refer to the Quidway S7700 Smart Routing Switch Debugging Reference. Procedure Run the debugging tunnel all [ interface tunnel interface-number ] command in the user view to enable tunnel debugging.
Page 45
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 1 VPN Tunnel Management Configuration Figure 1-2 Networking diagram for configuring the tunnel policy for the L3VPN VPNA VPNA GE1/0/3 GE1/0/3 Loopback1 Loopback1 MPLS TE tunnel 1/0/1 2.2.2.2/32 1.1.1.1/32 GE1/0/3 MPLS TE tunnel 1/0/2 ( binding)
Page 46
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 1 VPN Tunnel Management Configuration Configure tunnel policies and apply the tunnel policies to the VPN instances. Configure MP-IBGP for exchanging routing information between the VPNs. Data Preparation To complete the configuration, you need the following data:...
Page 47
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 1 VPN Tunnel Management Configuration # Take the display on PE1 as an example: [PE1] display ip routing-table Route Flags: R - relied, D - download to fib ------------------------------------------------------------------------------ Routing Tables: Public...
Page 48
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 1 VPN Tunnel Management Configuration ------------------------------------------------------------------------------- TOTAL: 3 Normal LSP(s) Found. TOTAL: 0 Liberal LSP(s) Found. TOTAL: 0 Frr LSP(s) Found. A '*' before an LSP means the LSP is not established...
Page 49
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 1 VPN Tunnel Management Configuration # Enable OSPF on the devices along the TE tunnel so that the devices can transmit TE attributes. # Configure PE1. [PE1] ospf 1 [PE1-ospf-1] opaque-capability enable [PE1-ospf-1] area 0 [PE1-ospf-1-area-0.0.0.0] mpls-te enable...
Page 53
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 1 VPN Tunnel Management Configuration RelayNextHop: 0.0.0.0 Interface: Tunnel1/0/1 Tunnel ID: 0x1001c # The CEs in the same VPN can ping each other, and the CEs in different VPNs cannot ping each other.
Page 54
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 1 VPN Tunnel Management Configuration ip address unnumbered interface loopback1 tunnel-protocol mpls te destination 2.2.2.2 mpls te tunnel-id 11 mpls te commit interface Tunnel1/0/2 ip address unnumbered interface loopback1 tunnel-protocol mpls te destination 2.2.2.2...
Page 55
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 1 VPN Tunnel Management Configuration mpls te cspf mpls ldp interface Vlanif10 ip address 100.1.1.2 255.255.255.252 mpls mpls te mpls rsvp-te mpls ldp interface Vlanif40 ip binding vpn-instance VPNB ip address 10.4.1.2 255.255.255.252...
Page 58
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 1 VPN Tunnel Management Configuration Figure 1-3 Networking diagram for configuring the L2VPN tunnel binding Loopback1 2.2.2.9/32 VPNA VLAN2 GE 1/0/1 GE 1/0/2 GE 1/0/1 Loopback1 Loopback1 Site2 1.1.1.9/32 4.4.4.9/32 GE 1/0/1...
Page 59
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 1 VPN Tunnel Management Configuration Configuration Roadmap The configuration roadmap is as follows: Configure a TE tunnel. Configure a tunnel policy to bind the IP address of the remote end to the tunnel.
Page 65
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 1 VPN Tunnel Management Configuration [CE1-Vlanif4] ip address 20.1.1.1 24 [CE1-Vlanif4] quit Step 8 Verify the configuration. # Check the VC status on PE1. All the VCs on PE1 are Up.
Page 66
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 1 VPN Tunnel Management Configuration # Check information about the interfaces on the bound tunnel. # Take Tunnel 1/0/0 of PE1 as an example. [PE1-Tunnel1/0/0] display this interface Tunnel1/0/0 current state : UP...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 2 GRE Configuration GRE Configuration About This Chapter Generic Routing Encapsulation (GRE) encapsulates the packets of certain network layer protocols such as Internetwork Packet Exchange (IPX), Asynchronous Transfer Mode (ATM), IPv6, and AppleTalk so that the encapsulated packets can be transmitted over the IPv4 network.
Page 73
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 2 GRE Configuration Familiarize yourself with the configuration procedures against the networking diagrams. This chapter provides networking requirements, configuration notes, and configuration roadmap in configurations examples. Issue 01 (2011-07-15) Huawei Proprietary and Confidential...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 2 GRE Configuration 2.1 Introduction to GRE The transmission of packets in a GRE tunnel involves two processes: encapsulation and decapsulation. After receiving a packet of a certain network layer protocol such as IPX that needs to be encapsulated and routed, the system adds a GRE header to the packet, and then encapsulates the packet into a packet of another protocol such as IP.
Page 75
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 2 GRE Configuration The tunnel between Switch A and Switch B adopts the GRE protocol, so that Group 1 communicates with Group 2 without affecting the communication between Team 1 and Team...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 2 GRE Configuration paths (LSPs) as the public network tunnel. If the core switch (P) in the backbone network, however, provides only the IP function without the MPLS function when the PE at the network edge has the MPLS function, the LSP cannot be used as the public network tunnel.
Page 77
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 2 GRE Configuration Context Do as follows on switchs on the two ends of a tunnel: Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: interface tunnel interface-number A tunnel interface is created and the tunnel interface view is displayed.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 2 GRE Configuration By default, the network address of a tunnel interface is not set. ----End 2.3.3 Configuring Routes for the Tunnel Routes for a tunnel must be available on both the source and destination devices so that packets encapsulated with GRE can be forwarded properly.
Tunnel1/0/0 current state : UP Line protocol current state : UP Last line protocol up time : 2009-03-19 18:38:07 Description : HUAWEI, Quidway Series, Tunnel1/0/0 Interface Route Port, The Maximum Transmit Unit is 1500 bytes Internet Address is 40.1.1.1/24 Encapsulation is TUNNEL, loopback not set Tunnel source 20.1.1.1 (Loopback1), destination 30.1.1.2...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 2 GRE Configuration Applicable Environment To allow users of the CE that is not directly connected with a PE to access the Multi-Protocol Label Switching (MPLS) VPN, configure a GRE tunnel and create routes between them and configure MPLS VPN on the PE.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 2 GRE Configuration Step 3 Run: tunnel-protocol gre The tunnel is encapsulated as a GRE tunnel. Step 4 Run: The source address or source interface of the tunnel interface is configured.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 2 GRE Configuration tunnel-protocol gre The tunnel is encapsulated as a GRE tunnel. Step 4 Run: source { source-ip-address | interface-type interface-number } The source address or source interface of the tunnel interface is configured.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 2 GRE Configuration Pre-configuration Tasks Before configuring the Keepalive function, complete the following tasks: Configuring the link layer attributes of the interfaces Assigning IP addresses to the interfaces Establishing the GRE tunnel and keeping the tunnel Up Data Preparation To configure the Keepalive function, you need the following data.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 2 GRE Configuration Before configuring the tunnel policy and the GRE tunnel for the VPN, enable the Keepalive function for the GRE tunnel. In this manner, the VPN does not select the GRE tunnel that cannot reach the remote end, and the data loss can be avoided.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 2 GRE Configuration 2.6 Maintaining GRE This section describes how to reset the statistics of a tunnel interface, monitor the running status of GRE. 2.6.1 Resetting the Statistics of a Tunnel Interface...
For details of the debugging operation, refer to the chapter Information Center Configuration in Quidway S7700 Smart Routing Switch Configuration Guide-System Management. For details of debugging commands, refer to Quidway S7700 Smart Routing Switch Debugging Reference. Procedure Run the debugging tunnel keepalive command in the user view to debug the Keepalive function of the GRE tunnel.
Page 91
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 2 GRE Configuration IP address of VLANIF interfaces, as shown in Figure 2-6 Procrss id and area id of OSPF Source address and destination address of the GRE tunnel, and IP addresses of tunnel...
Page 92
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 2 GRE Configuration 127.0.0.1/32 Direct 0 127.0.0.1 InLoopBack0 127.255.255.255/32 Direct 0 127.0.0.1 InLoopBack0 255.255.255.255/32 Direct 0 127.0.0.1 InLoopBack0 Step 3 Configure the tunnel interface. # Configure Switch A. [SwitchA] interface tunnel 1/0/1 [SwitchA-Tunnel1/0/1] tunnel-protocol gre [SwitchA-Tunnel1/0/1] ip address 40.1.1.1 255.255.255.0...
Page 93
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 2 GRE Configuration 20.1.1.2/32 Direct 0 20.1.1.2 Vlanif10 20.1.1.255/32 Direct 0 127.0.0.1 InLoopBack0 30.1.1.0/24 OSPF 20.1.1.2 Vlanif10 40.1.1.0/24 Direct 0 40.1.1.1 Tunnel1/0/1 40.1.1.1/32 Direct 0 127.0.0.1 InLoopBack0 40.1.1.255/32 Direct 0 127.0.0.1 InLoopBack0 127.0.0.0/8...
Page 96
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 2 GRE Configuration IP addresses of the interfaces on the two ends of the GRE tunnel Procedure Step 1 Assign the IP address to each interface. <Quidway> system-view [Quidway] sysname SwitchA...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 2 GRE Configuration tunnel-protocol gre source 30.1.1.2 destination 20.1.1.1 ospf 1 area 0.0.0.0 network 30.1.1.0 0.0.0.255 ospf 2 area 0.0.0.0 network 40.1.1.0 0.0.0.255 network 10.2.1.0 0.0.0.255 return 2.7.3 Example for Configuring the CE to Access a VPN Through a...
Page 101
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 2 GRE Configuration Procedure Step 1 Configure the IP address for each VLANIF interface and the routing protocol for the MPLS backbone network. Configure OSPF10 on PE1 and PE2, and then configure MPLS and LDP. The detailed configurations are not mentioned here.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 2 GRE Configuration interface GigabitEthernet2/0/0 port hybrid pvid vlan 60 port hybrid untagged vlan 60 return 2.7.4 Example for Configuring the Keepalive Function for GRE Networking Requirements As shown in Figure 2-9, Switch A and Switch B are configured with the GRE protocol.
Page 108
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 2 GRE Configuration Procedure Step 1 Configure Switch A and Switch B to implement the interworking between the two devices. The detailed procedures are not mentioned here. Step 2 Configure a tunnel on Switch A and enable the Keepalive function.
Page 109
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 2 GRE Configuration vlan batch 10 interface Vlanif10 ip address 20.1.1.1 255.255.255.0 interface GigabitEthernet1/0/0 port hybrid pvid vlan 10 port hybrid untagged vlan 10 interface Tunnel1/0/0 ip address 40.1.1.1 255.255.255.0 source 20.1.1.1 destination 30.1.1.2...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration BGP MPLS IP VPN Configuration About This Chapter This chapter describes the BGP/MPLS IP VPN configuration, including the introduction to the BGP/MPLS IP VPN, common networking of the BGP/MPLS IP VPN, and configurations to ensure the reliability of the BGP/MPLS IP VPN.
Page 111
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration This section describes how to configure the routes that traverse the MPLS VPN backbone network to be the routes of the OSPF area. After the configuration, traffic between sites of the same VPN in the same OSPF area need not be forwarded through routes of the OSPF area.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration 3.1 Introduction to BGP/MPLS IP VPN This section describes the concepts and roles of the PE, P, and CE. BGP/MPLS IP VPN is a PE-based L3VPN technology used in the Provider Provisioned VPN (PPVPN) solution.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Basic Networking The S7700 uses the Multi-protocol Extensions for Border Gateway Protocol (MP-BGP) to achieve the VPN route exchange between PEs. The static route, Routing Information Protocol...
VPN instances. For details on how to bind sub-interfaces to VPN instances, see Configuring a Sub-interface to Access an L3VPN in the Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet. 3.3 Configuring a VPN Instance A VPN instance isolates VPN routes from public network routes.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration 3.3.1 Establishing the Configuration Task Before configuring a VPN instance, familiarize yourself with the applicable environment, complete the pre-configuration tasks, and obtain the data required for the configuration. This will help you complete the configuration task quickly and accurately.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Context Do as follows on the PE that is connected to the CE: Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: ip vpn-instance vpn-instance-name A VPN instance is created, and the VPN instance view is displayed.
Page 117
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration NOTE It is recommended to perform either Step 4 or Step 5. Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: ip vpn-instance vpn-instance-name The VPN instance view is displayed.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration The inbound routing policy of the VPN instance is configured. Step 8 (Optional) Run: export route-policy policy-name The outbound routing policy of the VPN instance is configured.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration The system view is displayed. Step 2 Run: ip vpn-instance vpn-instance-name The VPN instance view is displayed. Step 3 Run: apply-label per-instance The MPLS label is allocated based on the VPN instance, which ensures that all the routes in a VPN instance use the same MPLS label.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Configuring tunnels between PEs based on the tunnel policy Configuring the IP address for the CE interface that is connected to the PE Data Preparation To configure basic BGP/MPLS IP VPN, you need the following data.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration The system view is displayed. Step 2 Run: interface interface-type interface-number The view of the interface that is to be bound with the VPN instance is displayed.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration NOTE The 32-bit mask IP addresses of the loopback interfaces must be used to establish the MP-IBGP peer relationship between PEs. This can ensure the tunnel can be iterated. The route destined to the loopback interface is advertised to the remote PE based on IGP on the MPLS backbone network.
Page 124
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration During network transfer or service identification, a device needs to be simulated as multiple BGP devices logically. In this case, you can run the as-number command to configure an AS number for each VPN instance.
Page 125
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration This Step is used for the networking scenario where physically-dispersed CEs use the same AS number. The configuration is performed on the PE. CAUTION In the case of multi-homed CE, the BGP AS substitution function may lead to route loops.
Page 126
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration system-view The system view is displayed. Run: bgp as-number The BGP view is displayed. Run: ipv4-family vpn-instance vpn-instance-name The BGP-VPN instance view is displayed. (Optional) Run: as-number as-number An AS number for the VPN instance is specified.
Page 127
Do as follows on the PE. The CE is configured with the static route, and the configurations are common, therefore not mentioned here. NOTE For details, see Quidway S7700 Smart Routing Switch Configuration Guide - IP Routing. Run: system-view The system view is displayed.
Page 128
Do as follows on the PE. The CE is configured with OSPF. The configurations are common, therefore not mentioned here. NOTE For details, see Quidway S7700 Smart Routing Switch Configuration Guide - IP Routing. Run: system-view The system view is displayed.
Page 129
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration An OSPF process belongs to only one VPN instance. If you run an OSPF process without binding it to a VPN instance, this process is considered as a public network process.
Page 130
Do as follows on the PE. The CE is configured with IS-IS. The configurations are common, therefore not mentioned here. NOTE For details, see Quidway S7700 Smart Routing Switch Configuration Guide - IP Routing. Run: system-view The system view is displayed.
Page 131
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration process. An IS-IS process that belongs to a public network cannot be bound with a VPN instance. Run: network-entity net The Network Entity Title (NET) is configured.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration 3.4.6 Checking the Configuration After configuring the basic BGP/MPLS IP VPN function, you can view IPv4 VPN information about the local and remote sites on the PE or the CE.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Data Preparation Before configuring Hub and Spoke, you need the following data. Data To configure a VPN instance, you need the following data: l Name of the VPN instance...
Page 134
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Step 3 (Optional) Run: description description-information The description about the VPN instance is configured. The description can be used to record the relationship between a VPN instance and a certain VPN.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration 3.5.3 Configuring Route Attributes of the VPN Instance This part describes how to configure the VPN target to control route advertisement and acceptance. Procedure Configuring Hub-PE...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Configuring Spoke-PE Run: system-view The system view is displayed. Run: ip vpn-instance vpn-instance-name1 The VPN instance view of the VPN-in is displayed. Run: vpn-target vpn-target2 &<1-8> import-extcommunity The VPN target extended community for the VPN instance is created to import the IPv4 routes advertised by all the Hub-PEs.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration The system view is displayed. Step 2 Run: interface interface-type interface-number The view of the interface that is to be bound with the VPN instance is displayed.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration NOTE The 32-bit mask IP addresses of the loopback interfaces must be used to establish the MP-IBGP peer relationship between PEs. This can ensure the tunnel can be iterated. The route destined to the loopback interface is advertised to the remote PE based on IGP on the MPLS backbone network.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration In this way, instead of BGP, IGP or static routes are adopted between the Spoke-PE and the Spoke-CE. For details, refer to the chapter "BGP/MPLS IP VPN" in the Quidway S7700 Smart Routing Switch Feature Desripiton- VPN.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Run the display ip routing-table command to check routing information on the Hub-CE and all the Spoke-CEs. ----End Example Run the preceding commands. If the routing table of the VPN-in has routes to all the Spoke stations, and the routing table of the VPN-out has routes to the Hub and all the Spoke stations, it means the configuration succeeds.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Data To configure the VPN instance on the PE and the ASBR, you need the following data: l Name of the VPN instance l (Optional) Description of the VPN instance...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration 3.6.3 Checking the Configuration After configuring inter-AS VPN OptionA, you can view information about all BGP peer relationships and IPv4 VPN routes on PEs or ASBRs.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Configuring IGP for MPLS backbone networks in each AS to realize IP connectivity of the backbones in one AS Configuring basic MPLS capability and MPLS LDP for the MPLS backbone network...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration The BGP view is displayed. Step 3 Run: peer ipv4-address as-number as-number The peer ASBR is specified as the IBGP peer. Step 4 Run: peer ipv4-address connect-interface loopback interface-number The loopback interface is specified as the outgoing interface of the BGP session.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Step 5 Run: quit Return to the system view. Step 6 Run: bgp as-number The BGP view is displayed. Step 7 Run: peer ipv4-address as-number as-number The peer ASBR is specified as the EBGP peer.
Page 146
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Do as follows on the ASBR. Run: system-view The system view is displayed. Run: bgp as-number The BGP view is displayed. Run: ipv4-family vpnv4 [ unicast ] The BGP-VPNv4 address family is displayed.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration The MPLS label is allocated based on the VPN instance, which ensures that all the routes in a VPN instance use the same MPLS label.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Run the display bgp vpnv4 all peer command on the PE or the ASBR. If the status of the IBGP peer between PE and ASBR in the same AS is "Established", and the status of the EBGP peer between ASBRs in the different AS is "Established", it means that the configuration succeeds.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: bgp as-number The BGP view is displayed. Step 3 Run: peer { ipv4-address | group-name } as-number as-number The UPE is specified as the BGP peer of the SPE.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Pre-configuration Tasks Before configuring the OSPF sham link, you need to complete the following tasks: 3.4 Configuring Basic BGP/MPLS IP VPN (OSPF between the PE and the CE)
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration The loopback interface is bound to the VPN instance. Step 4 Run: ip address ip-address { mask | mask-length } The address of the loopback interface is configured.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration 3.9.4 Creating a Sham Link Creating a sham link is to establish a virtual link that connects the two end addresses of the sham link.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration 3.9.5 Checking the Configuration After configuring an OSPF sham link, you can view information about the routing table on the CE, the nodes through which packets are sent, and established and non-established sham links.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration One OSPF process can belong to only one VPN instance but one VPN instance can run several OSPF processes. The Multi-VPN-Instance CE can be considered as a networking solution that isolates services by isolating routes.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Different services have different OSPF process IDs. However, router IDs of different services do not necessarily differ. Step 3 Run: area area-id The OSPF area view is displayed.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration system-view The system view is displayed. Step 2 Run: ospf process-id [ router-id router-id ] vpn-instance vpn-instance-name The OSPF multi-instance is configured. The OSPF process ID corresponds to that of the PE.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Prerequisite The configurations of the Multi-VPN-Instance CE function are complete. Procedure Run the display ip routing-table vpn-instance vpn-instance-name [ verbose ] command to check the VPN routing table on the multi-instance CE.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration 3.11.2 Configuring the Static Route on the CE This part describes how to configure static routes on CEs to forward packets from the VPN to the Internet.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration The static route from the VPN to Internet is configured and the next-hop address is a public network address. ----End 3.11.4 Configuring the Static Route to VPN on the Device of the...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Example Run the display ip routing-table vpn-instance command on the PE, and you can find that the route to the CE and the route to the destination switch in the public network exist in the VPN routing table.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Data Preparation To configure the VPN FRR, you need the following data. Data (Optional) Name of the routing policy Name of the VPN instance (Optional) Backup next hop 3.12.2 Configuring Manual VPN FRR...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration 3.12.3 Configuring VPN Auto FRR If the primary link between PEs fails, VPN traffic is forwarded through the next hop (a PE) that is automatically selected by the system.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Data (Optional) Interval for re-establishing the GR session (by default, it is 300 seconds) if the IS-IS GR is enabled (Optional) Interval for the GR time if the OSPF GR is enabled...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration By default, the interval for reestablishing the IS-IS GR session is 300 seconds. (Optional) Run: graceful-restart suppress-sa The GR Restarter is configured to suppress the advertisement of the adjacency relationship when it is restarting.
Page 169
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration backbone network, you can configure MPLS LDP GR; if RSVP-TE tunnels are configured on the backbone network, you can configure MPLS RSVP GR; if other types of tunnels are configured on the backbone network, you do not need to perform the operation.
Page 170
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Configure RSVP GR. Run: system-view The system view is displayed. Run: mpls The MPLS view is displayed. Run: mpls te MPLS TE is enabled. Run: mpls rsvp-te RSVP TE is enabled.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration 13. Run: mpls rsvp-te hello The RSVP Hello extension function is enabled on the interface. Although the RSVP Hello extension function is enabled globally, it is disabled on the RSVP-enabled interfaces by default.
Page 172
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration The suppress advertisement (SA) bit is used in the Hello PDUs by a restarting switch to request its neighbors to suppress advertising the adjacency to the restarting switch.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration The GR capability of BGP is enabled. (Optional) Run: graceful-restart timer restart time The maximum time for restarting the GR Restarter is configured. The restart period is the maximum waiting period, from the time when the receiving speaker detects that the GR Restarter restarts, to the time when the BGP session is reestablished.
Page 174
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Run the display bgp vpnv4 all peer verbose command to check the status of the BGP GR. ----End Example Run the display isis graceful-restart status command on the PE, and you can view the status of the ISIS GR.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration 3.14.1 Establishing the Configuration Task Before configuring an RR to optimize the VPN backbone layer, familiarize yourself with the applicable environment, complete the pre-configuration tasks, and obtain the required data. This can help you complete the configuration task quickly and accurately.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: bgp as-number The BGP view is displayed. Step 3 Run: peer ipv4-address as-number as-number The RR is specified as the BGP peer.
Page 178
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration The BGP view is displayed. Run: group group-name [ internal ] An IBGP peer group is created. Run: peer group-name connect-interface interface-type interface-number The interface is specified as an interface to establish the TCP connection. The IP address of the interface must be the same as the MPLS LSR ID.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration 3.14.4 Configuring Route Reflection for BGP IPv4 VPN routes The premise of enabling BGP VPNv4 route reflection is that the RR has established the MP- IBGP connections with all its clients (PEs).
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Procedure Run the display bgp vpnv4 all peer [ [ ipv4-address ] verbose ] command to check information about the BGP VPNv4 peer on the RR or the Client PEs.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Configure a routing protocol for the MPLS backbone network to implement IP interworking between the switchs in the backbone network. Data Preparation Before configuring route reflection to optimize the VPN access layer, you need the following data.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration 3.15.3 Configuring the RR to Establish MP IBGP Connections with All Client CEs This part describes how to configure MP-IBGP connections between the RR and all its clients (CEs) to reflect VPNv4 routes to all clients (CEs).
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration The peer of the BGP IPv4 VPN instance is configured. Run: peer ipv4-address connect-interface interface-type interface-number The interface is specified as an interface to establish the TCP connection.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration The cluster ID of the RR is set. If a cluster has multiple RRs, you can use this command to set the same cluster ID for these RRs to prevent routing loops.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration table peer ipv4-address { advertised-routes | received-routes } command or display bgp vpnv4 all routing-table statistics command command on the Client CE. If the peer group is configured, you can view information about the group members and find that the status of the BGP connections between the RR and the group members is "Established"...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration 3.16.4 Resetting BGP Statistics of a VPN Instance BGP statistics of the VPN instance cannot be restored after being cleared. Exercise caution when performing the action.
For more information, see the chapter "Information Center Configuration" in the S7700 Smart Routing Switch Configuration Guide - System Management. For the description about the debugging commands, see the Quidway S7700 Smart Routing Switch Debugging Reference. Procedure Run the debugging bgp vpn-instance vpn-instance-name peer-address { all | event | graceful-restart | timer } command in the user view to enable the debugging of the specified BGP peers in a VPN instance.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration 3.17.1 Example for Configuring the BGP/MPLS IP VPN Networking Requirements As shown in Figure 3-3, CE1 and CE3 belong to vpna and CE2 and CE4 belong to vpnb. The VPN target of vpna is 111:1, and VPN target of vpnb is 222:2.
Page 190
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration GigabitEthernet1/0/0 VLANIF 40 10.3.1.1/24 GigabitEthernet1/0/0 VLANIF 50 10.4.1.1/24 Configuration Roadmap The configuration roadmap is as follows: Configure VPN instances on the PEs connected to CEs on the backbone network and bind related VPNs to the interfaces connected to the CEs.
Page 191
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration [PE1-ospf-1-area-0.0.0.0] quit [PE1-ospf-1] quit # Configure the P. <Quidway> system-view [Quidway] sysname P [P] interface loopback 1 [P-LoopBack1] ip address 2.2.2.9 32 [P-LoopBack1] quit [P] vlan batch 30 60...
Page 192
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration [PE1] display ip routing-table Route Flags: R - relay, D - download to fib ------------------------------------------------------------------------------ Routing Tables: Public Destinations : 12 Routes : 12 Destination/Mask...
Page 193
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration [PE2] mpls ldp [PE2-mpls-ldp] quit [PE2] interface vlanif 60 [PE2-Vlanif60] mpls [PE2-Vlanif60] mpls ldp [PE2-Vlanif60] quit After the configuration, LDP sessions are established between PE1 and P, and between P and PE2.
Page 195
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 3/6/16 ms Step 4 Set up EBGP peer relation between the PE and the CE and import VPN routes.
Page 196
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration After the configuration, run the display bgp peer or display bgp vpnv4 all peer command, and you can see that the BGP peer relation between the PEs is in Established state.
Page 197
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Reply from 10.3.1.1: bytes=56 Sequence=1 ttl=253 time=72 ms Reply from 10.3.1.1: bytes=56 Sequence=2 ttl=253 time=34 ms Reply from 10.3.1.1: bytes=56 Sequence=3 ttl=253 time=50 ms Reply from 10.3.1.1: bytes=56 Sequence=4 ttl=253 time=50 ms Reply from 10.3.1.1: bytes=56 Sequence=5 ttl=253 time=34 ms...
Page 203
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Configure MP-IBGP between the PEs to exchange VPN routing information. Configure static routes between the CEs and PEs. Data Preparation To complete the configuration, you need the following data:...
Page 205
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Codes: LAM(Label Advertisement Mode), SsnAge Unit(DDDD:HH:MM) A '*' before a session means the session is being deleted. ------------------------------------------------------------------------------ Peer-ID Status SsnRole SsnAge KA-Sent/Rcv ------------------------------------------------------------------------------ 2.2.2.9:0...
Page 206
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration [PE2] interface vlanif 101 [PE2-Vlanif101] ip binding vpn-instance vpnb [PE2-Vlanif101] ip address 34.1.1.1 255.255.255.0 [PE2-Vlanif101] quit # Assign IP addresses to the interfaces on the CEs according to Figure 3-4.
Page 208
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration 34.1.1.0/24 RD 3.3.3.9 Vlanif10 255.255.255.255/32 Direct 0 127.0.0.1 InLoopBack0 Run the ping 34.1.1.1 command on CE1, and the ping is successful. Run the display interface command to view the statistics about packets on GE 3/0/1 and GE3/0/2 of PE2, and you can see that there are packets passing through GE 3/0/1 but there is not any packet passing through GE3/0/2.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration ip route-static 0.0.0.0 0.0.0.0 Vlanif 100 14.1.1.1 return Configuration file of CE2 sysname CE2 vlan batch 100 interface Vlanif100 ip address 34.1.1.2 255.255.255.0 interface GigabitEthernet3/0/1...
Page 212
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration NOTE This example is only for configuring mutual access for local VPNs on S7700, for details about configuring mutual access for local VPNs on SPU board, see 3.17.4 Example for Configuring Mutual Access for...
Page 214
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Take the display on PE1 and CE1 as an example: [PE1] ping -vpn-instance vpna 10.1.1.1 PING 10.1.1.1: 56 data bytes, press CTRL_C to break Reply from 10.1.1.1: bytes=56 Sequence=1 ttl=255 time=5 ms Reply from 10.1.1.1: bytes=56 Sequence=2 ttl=255 time=3 ms...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration ip route-static vpn-instance vpn-b 10.10.10.1 32 Eth-Trunk 0.10 10.10.10.1 3.17.5 Example for Configuring BGP ASN Substitution Networking Requirements As shown in Figure 3-7, CE1 and CE2 belong to the same VPN instance and access PE1 and PE2 respectively.
Page 220
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Configuration Roadmap The configuration roadmap is as follows: Enable IGP on the backbone network to implement interworking between PEs, and between PE and P so that they can learn loopback address of each other.
Page 221
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Run the display ip routing-table vpn-instance command on PEs, and you can see the routes to the VPNs of the peer CEs. Take PE2 for example.
Page 222
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration [CE2] display bgp routing-table peer 10.2.1.2 received-routes Total Number of Routes: 5 BGP Local router ID is 10.2.1.1 Status codes: * - valid, > - best, d - damped,...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration 3.17.6 Example for Configuring Hub&Spoke Networking Requirements As shown in Figure 3-8, the communication between Spoke-CEs is controlled by the Hub-CE in the central site. That is, the traffic between Spoke-CEs is forwarded by the Hub-CE, and not only by the Hub-PE.
Page 229
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration [Hub-PE] interface vlanif 40 [Hub-PE-Vlanif40] ip binding vpn-instance vpn_out [Hub-PE-Vlanif40] ip address 110.2.1.2 24 [Hub-PE-Vlanif40] quit # Configure the IP addresses of the interfaces on the CEs. The configuration procedure is not given here.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration interface GigabitEthernet2/0/0 port hybrid pvid vlan 20 port hybrid untagged vlan 20 interface GigabitEthernet3/0/0 port hybrid pvid vlan 30 port hybrid untagged vlan 30 interface GigabitEthernet3/0/1...
Page 236
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Figure 3-9 Networking diagram for configuring inter-AS VPN Option A BGP/MPLS Backbone BGP/MPLS Backbone AS 200 AS 100 Loopback1 Loopback1 2.2.2.9/32 3.3.3.9/32 GE2/0/0 GE2/0/0 VLAN IF12...
Page 237
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration NOTE The 32-bit loopback interface address used as the LSR ID must be advertised by OSPF. After the configuration, the OSPF neighbor relation can be established between the ASBR and the PE in the same AS.
Page 238
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration [PE2] mpls ldp [PE2-mpls-ldp] quit [PE2] interface vlanif 22 [PE2-Vlanif22] mpls [PE2-Vlanif22] mpls ldp [PE2-Vlanif22] quit After the configuration, the LDP peer relation can be set up between the PE and ASBR in the same AS.
Page 239
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration # On ASBR-PE1, set up an MP-IBGP peer relation between ASBR-PE1 and PE1. [ASBR-PE1] bgp 100 [ASBR-PE1-bgp] peer 1.1.1.9 as-number 100 [ASBR-PE1-bgp] peer 1.1.1.9 connect-interface loopback 1 [ASBR-PE1-bgp] ipv4-family vpnv4 [ASBR-PE1-bgp-af-vpnv4] peer 1.1.1.9 enable...
Page 240
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration # On ASBR-PE1, set up an EBGP peer relation between ASBR-PE1 and ASBR-PE2. [ASBR-PE1] bgp 100 [ASBR-PE1-bgp] ipv4-family vpn-instance vpn1 [ASBR-PE1-bgp-vpn1] peer 192.1.1.2 as-number 200...
Page 241
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration 192.1.1.1/32 Direct 0 127.0.0.1 InLoopBack0 192.1.1.255/32 Direct 0 127.0.0.1 InLoopBack0 255.255.255.255/32 Direct 0 127.0.0.1 InLoopBack0 Run the display bgp vpnv4 all routing-table command on an ASBR-PE, and you can see the VPNv4 routes on the ASBR-PE.
Page 246
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Figure 3-10 Networking of the inter-AS VPN BGP/MPLS Backbone BGP/MPLS Backbone AS 200 Loopback1 Loopback1 AS 100 3.3.3.9/32 2.2.2.9/32 GE2/0/0 GE2/0/0 VLAN IF12 VLAN IF12...
Page 247
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration OSPF is used in this example. The configuration details are not mentioned here. NOTE Advertise the 32-bit IP address of the loopback interface, that is, the LSR ID, by using OSPF.
Page 248
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration 10.2.1.0/24 10.1.1.2 Vlanif10 127.0.0.0/8 Direct 0 127.0.0.1 InLoopBack0 127.0.0.1/32 Direct 0 127.0.0.1 InLoopBack0 <CE1> ping 10.2.1.1 PING 10.2.1.1: 56 data bytes, press CTRL_C to break Reply from 10.2.1.1: bytes=56 Sequence=1 ttl=252 time=120 ms...
Page 254
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Data Preparation To complete the configuration, you need the following data: IDs of the VLANs that the interfaces of PE and CE belong to, as shown in...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration interface GigabitEthernet1/0/0 port hybrid pvid vlan 40 port hybrid untagged vlan 40 interface GigabitEthernet2/0/0 port hybrid pvid vlan 10 port hybrid untagged vlan 10 interface LoopBack1 ip address 3.3.3.9 255.255.255.255...
Page 261
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Figure 3-12 Networking diagram for configuring the OSPF sham link Loopback1 Loopback1 Loopback1 2.2.2.9/32 3.3.3.9/32 1.1.1.9/32 GE2/0/0 GE2/0/0 GE1/0/0 GE2/0/0 GE1/0/0 GE1/0/0 Loopback10 Loopback10 sham link 5.5.5.5/32...
Page 262
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Data Preparation To complete the configuration, you need the following data: MPLS LSR-IDs of PE and P Name of the VPN instance, RD, and VPN target on the PE...
Page 266
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration After the configuration, run the display ip routing-table vpn-instance command on the PEs, and you can see that the routes to the peer CEs are OSPF routes through the backbone network, not the BGP routes through the user network.
Page 267
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration [PE1] display ip routing-table vpn-instance vpn1 Route Flags: R - relay, D - download to fib ------------------------------------------------------------------------------ Routing Tables: vpn1 Destinations : 8 Routes : 8...
Page 268
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration [PE1] display ospf sham-link OSPF Process 1 with Router ID 1.1.1.9 Sham Link: Area NeighborId Source-IP Destination-IP State Cost OSPF Process 100 with Router ID 100.1.1.2...
Page 269
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration interface Vlanif50 ip binding vpn-instance vpn1 ip address 100.1.1.2 255.255.255.0 interface GigabitEthernet1/0/0 port hybrid pvid vlan 50 port hybrid untagged vlan 50 interface GigabitEthernet2/0/0 port hybrid pvid vlan 10...
Page 270
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration interface GigabitEthernet1/0/0 port hybrid pvid vlan 10 port hybrid untagged vlan 10 interface GigabitEthernet2/0/0 port hybrid pvid vlan 40 port hybrid untagged vlan 40 interface LoopBack1 ip address 2.2.2.9 255.255.255.255...
Page 274
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Set up an EBGP adjacency between PE and the connected CE to import the VPN routes to the VPN routing table of PE. Configure OSPF multi-instance between MCE and PE2 to exchange VPN routing information.
Page 275
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration After the configuration, run the display mpls ldp session command on the PEs, and you can see that the MPLS LDP session between PEs is in Operational state.
Page 276
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration [PE2-Vlanif50] ip binding vpn-instance vpna [PE2-Vlanif50] ip address 192.1.1.1 24 [PE2-Vlanif50] quit [PE2]interface vlanif 40 [PE2-Vlnaif40] ip binding vpn-instance vpnb [PE2-Vlnaif40] ip address 192.2.1.1 24 [PE2-Vlnaif40] quit Step 4 Configure VPN instances on the MCE.
Page 277
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Peer MsgRcvd MsgSent OutQ Up/Down State PrefRcv 2.2.2.9 0 01:19:16 Established Peer of vpn instance : vpn instance vpna : 10.1.1.1 4 65410 0 00:04:14 Established vpn instance vpnb : 10.2.1.1...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration return Configuration file of CE4 sysname CE4 vlan batch 70 interface Vlanif70 ip address 10.4.1.1 255.255.255.0 interface GigabitEthernet1/0/0 port hybrid pvid vlan 70 port hybrid untagged vlan 70...
Page 285
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration GigabitEthernet2/0/0 VLANIF 40 10.2.1.2/24 GigabitEthernet1/0/0 VLANIF 10 100.1.1.2/24 GigabitEthernet2/0/0 VLANIF 20 100.2.1.1/24 GigabitEthernet1/0/0 VLANIF 30 10.1.1.1/24 GigabitEthernet2/0/0 VLANIF 50 100.3.1.2/24 GigabitEthernet1/0/0 VLANIF 40 10.2.1.1/24 Configuration Roadmap In this example, you need to configure an L3VPN, and then configure three static routes.
Page 286
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration <P> display mpls ldp session LDP Session(s) in Public Network Codes: LAM(Label Advertisement Mode), SsnAge Unit(DDDD:HH:MM) A '*' before a session means the session is being deleted.
Page 287
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration # Configure a default route from the agent server of the VPN to the Internet. The next hop is P. Specify the address of the next hop as a public network address. That is, add the keyword public to the right of the next hop address in the command.
Page 288
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration [P] ping 100.3.1.1 PING 100.3.1.1: 56 data bytes, press CTRL_C to break Reply from 100.3.1.1: bytes=56 Sequence=1 ttl=254 time=62 ms Reply from 100.3.1.1: bytes=56 Sequence=2 ttl=254 time=62 ms Reply from 100.3.1.1: bytes=56 Sequence=3 ttl=254 time=62 ms...
Page 289
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration interface Vlanif10 ip address 100.1.1.1 255.255.255.0 mpls mpls ldp interface Vlanif30 ip binding vpn-instance vpn1 ip address 10.1.1.2 255.255.255.0 interface GigabitEthernet1/0/0 port hybrid pvid vlan 30...
Page 290
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration port hybrid pvid vlan 10 port hybrid untagged vlan 10 interface GigabitEthernet2/0/0 port hybrid pvid vlan 20 port hybrid untagged vlan 20 interface LoopBack1 ip address 2.2.2.2 255.255.255.255 ospf 1 area 0.0.0.0...
Page 293
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration GE1/0/0 VLANIF 103 10.3.1.2/30 GE2/0/0 VLANIF 104 10.4.1.2/30 GE3/0/0 VLANIF 1002 1.6.1.1/24 Configuration Roadmap The configuration roadmap is as follows: Configure BGP/MPLS IP VPN. In the BGP view of CE1, enable load balancing for the traffic transmitted from CE1 to CE2.
Page 294
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration The configurations of PE2, PE3, PE4, P1, and P2 are the same as the configuration of PE1, and are not mentioned here. After the configuration, run the display ip routing-table command, and you can view that PE1 and PE3 can learn the loopback1 route of each other and PE2 and PE4 can learn the loopback1 route of each other.
Page 296
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration [PE3] ip vpn-instance vpn1 [PE3-vpn-instance-vpn1] route-distinguisher 100:3 [PE3-vpn-instance-vpn1] vpn-target 1:1 both [PE3-vpn-instance-vpn1] quit # Bind the interfaces connected to CEs to the corresponding VPNs and assign IP addresses to these interfaces.
Page 297
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration [PE1] bgp 100 # In the BGP-VPN instance view, specify CEs as EBGP peers and import direct routes. [PE1-bgp] ipv4-family vpn-instance vpn1 [PE1-bgp-vpn1] peer 10.1.1.1 as-number 65410...
Page 298
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Peer MsgRcvd MsgSent OutQ Up/Down State PrefRcv 10.1.1.1 4 65410 0 06:16:09 Established <PE1> ping -vpn-instance vpn1 10.1.1.1 PING 10.1.1.1 : 56 data bytes, press CTRL_C to break Reply from 10.1.1.1...
Page 299
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration # In the VPNv4 address family view, enable the capability of exchanging VPN-IPv4 routing information between PE2 and PE4. [PE2-bgp] ipv4-family vpnv4 [PE2-bgp-af-vpnv4] peer 4.4.4.4 enable [PE2-bgp-af-vpnv4] quit # Configure PE4.
Page 300
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration ------------------------------------------------------------------------------ Routing Tables: Public Destinations : 15 Routes : 16 Destination/Mask Proto Cost Flags NextHop Interface 1.5.1.0/24 Direct 0 1.5.1.1 Vlanif1001 1.5.1.1/32 Direct 0 127.0.0.1 InLoopBack0 1.5.1.255/32...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration ipv4-family unicast undo synchronization import-route direct peer 10.3.1.1 enable peer 10.4.1.1. enable return 3.17.14 Example for Configuring VPN FRR Networking Requirements As shown in Figure 3-16, you need to configure the backup next hop on PE1 to configure PE3 as a backup of PE2.
Page 307
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Configuration Roadmap The configuration roadmap is as follows: Configure OSPF on the backbone routers (PE1, PE2, and PE3) to implement interworking of these backbone routers.
Page 310
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration # Configure PE3. [PE3] bgp 100 [PE3-bgp] peer 1.1.1.1 as-number 100 [PE3-bgp] peer 1.1.1.1 connect-interface loopback 1 [PE3-bgp] ipv4-family vpnv4 [PE3-bgp-af-vpnv4] peer 1.1.1.1 enable [PE3-bgp-af-vpnv4] quit Run the display bgp vpnv4 all peer command on the PEs, and you can see that MP-IBGP adjacencies are established between PEs.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration interface GigabitEthernet1/0/0 port hybrid pvid vlan 20 port hybrid untagged vlan 20 interface GigabitEthernet2/0/0 port hybrid pvid vlan 40 port hybrid untagged vlan 40 interface GigabitEthernet3/0/0...
Page 315
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration GigabitEthernet1/0/0 VLANIF 20 100.1.1.2/24 GigabitEthernet2/0/0 VLANIF 30 100.2.1.1/24 GigabitEthernet1/0/0 VLANIF 10 10.1.1.1/24 GigabitEthernet1/0/0 VLANIF 40 10.2.1.1/24 Configuration Roadmap The configuration roadmap is as follows: Configure BGP/MPLS IP VPN.
Page 316
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration # The configurations of the P device, PE2, CE2, and CE1 are the same as the configuration of PE1, and are not mentioned here. Step 2 Configure BGP/MPLS IP VPN of the backbone network.
Page 319
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Total Number of Interfaces = 2 Restart Status: RESTART COMPLETE IS-IS(1) Level-2 Restart Status Restart Interval: 300 SA Bit Supported Total Number of Interfaces = 2 Restart Status: RESTART COMPLETE Step 5 Configure MPLS LDP GR of the backbone network.
Page 320
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration OSPF Protocol Information RouterID: 10.2.1.2 Border Router: AREA ECA-route-type: 0x0306 Route Tag: 3489661028 PE Router, Multi-VPN-Instance is enabled Opaque Capable Graceful-restart capability: planned and un-planned, totally...
Page 321
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration IPv4 Unicast (was preserved) VPNv4 (was preserved) Address family IPv4 Unicast: advertised and received Address family VPNv4: advertised and received Received: Total 29 messages Update messages...
Page 322
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Route refresh capability has been enabled 4-byte-as capability has been enabled Peer Preferred Value: 0 Routing policy configured: No routing policy is configured Step 8 Verify the configuration.
Page 327
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration As shown in Figure 3-18, PE1, PE2, P1, and P2 are on the backbone network AS100. CE1 and CE2 belong to VPNA. Select P1 and P2 as the RRs of the VPN.
Page 329
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration For the configuration procedure, see Example for Configuring the BGP/MPLS IP VPN. The configuration details are not mentioned here. Set up EBGP peer relation between the PE and the CE and import VPN routes.
Page 330
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration Peer MsgRcvd MsgSent OutQ Up/Down State PrefRcv 2.2.2.9 00:00:31 Established 3.3.3.9 00:01:23 Established Peer of vpn instance : vpn instance vpna : 10.1.1.1 65410 79...
Page 331
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration interface Vlanif10 ip address 100.1.2.1 255.255.255.0 mpls mpls ldp interface Vlanif40 ip address 100.1.3.1 255.255.255.0 mpls mpls ldp interface Vlanif60 ip binding vpn-instance vpna ip address 10.1.1.2 255.255.255.0...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration BGP MPLS IPv6 VPN Configuration About This Chapter This chapter describes the BGP/MPLS IPv6 VPN configuration, including the comparison between the IPv6 VPN and IPv4 VPN, common networking of the BGP/MPLS IPv6 VPN, and configurations to ensure the reliability of the BGP/MPLS IPv6 VPN.
Page 337
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration 4.9 Configuring Route Reflection for BGP VPNv6 Routes Deploying a BGP VPNv6 Route Reflector (RR) reduces the number of MP-IBGP connections. This lightens the burden of PEs and facilitates network maintenance and management.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration 4.1 Introduction to BGP/MPLS IPv6 VPN This part describes the similarities and differences between BGP/MPLS IPv6 VPN and BGP/ MPLS IP VPN. As an enhancement of IPv4, IPv6 is an Internet protocol of the next generation. IPv6 provides the more address spaces and enhanced security functions, and supports more access users and devices in the Internet than IPv4.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration 4.2 BGP/MPLS IPv6 VPN Features Supported by the S7700 This part describes the basic networking, typical networking, and reliability of BGP/MPLS IP VPN supported by the S7700.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration imported to the IPv6 VPN instance. The export routing policy is used to filter the routes exported to other PEs. Pre-configuration Tasks Before configuring an IPv6 VPN instance, complete the following tasks:...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration No default IPv6 VPN instance exists on a PE, and multiple IPv6 VPN instances can be created on the PE. Step 3 Run: route-distinguisher route-distinguisher The RD for the IPv6 VPN instance is configured.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration Step 4 (Optional) Run: routing-table limit number { alert-percent | simply-alert } The maximum number of routes of the IPv6 VPN Instance is configured. You can define the maximum number of routes that can be supported by the IPv6 VPN Instance to avoid a PE importing too many IPv6 VPN routes.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration policy for label allocation about the VPN instance is displayed, it means the configuration succeeds. For example: <Quidway> display ipv6 vpn6-instance verbose vpn1 VPN6-Instance Name and ID : vpn1, 1...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration Pre-configuration Tasks Before configuring basic BGP/MPLS IPv6 VPN, complete the following tasks: Enabling IPv6 on PEs and on the interfaces that need to be configured with IPv6...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration Context Do as follows on the PE devices connected with CE devices. Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: interface interface-type interface-number The view of the interface that is to be bound with the IPv6 VPN instance is displayed.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration The BGP view is displayed. Step 3 Run: peer ipv4-address as-number as-number The remote PE is specified as the peer. Step 4 Run: peer ipv4-address connect-interface loopback interface-number The interface is used to set up TCP connections.
Page 348
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration The BGP view is displayed. Run: ipv6-family vpn6-instance vpn6-instance-name The BGP-VPN6 instance view is displayed. (Optional) Run: as-number as-number An AS number for the IPv6 VPN instance is specified.
Page 349
The type of the imported route varies with networking modes. Configuring Static Routes Between PE and CE Do as follows on the PE. NOTE For the detailed configuration about the IPv6 static route, refer to the Quidway S7700 Smart Routing Switch Configuration Guide - IP Routing. Run: system-view The system view is displayed.
Page 350
The configurations on the CE are similar to the configuration of common RIPng and are not mentioned here. NOTE For the detailed configuration about RIPng, refer to the Quidway S7700 Smart Routing Switch Configuration Guide IP Routing Volume. Do as follows on the PE.
Page 351
Configuring OSPFv3 Between PE and CE Configure OSPFv3 on the CE. For the detailed configuration about OSPFv3, refer to the Quidway S7700 Smart Routing Switch Configuration Guide - IP Routing. Configure an OSPFv3 multi-instance on the PE and configure BGP and OSPFv3 to import routes from each other.
Page 352
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration One OSPFv3 instance belongs to only one IPv6 VPN Instance. If an OSPFv3 process is not bound to an IPv6 VPN Instance , the OSPFv3 process is a public process. In addition, the public OSPFv3 instance cannot be bound to an IPv6 VPN Instance.
Page 353
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration NOTE For the detailed configuration about IS-ISv6, refer to the Quidway S7700 Smart Routing Switch Configuration Guide - IP Routing. Do as follows on the PE. Run: system-view The system view is displayed.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration 4.5 Configuring Hub and Spoke In the networking of Hub and Spoke, an access control device is specified in the IPv6 VPN, and users communicate with each other through the access control device.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration Data Data for the configurations of routing protocols (static route, RIPng, IS-ISv6, or BGP4+) between Hub-PE and Hub-CE, and between Spoke-PE and Spoke-CE 4.5.2 Configuring an IPv6 VPN Instance You can configure an IPv6 VPN Instances for managing IPv6 VPN routes.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration An IPv6 VPN Instance takes effect only after the RD is configured. Before configuring the RD, you may configure only the description for the IPv6 VPN Instance .
Page 358
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration Procedure Configuring Hub-PE system-view The system view is displayed. ipv6 vpn6-instance vpn6-instance-name1 The IPv6 VPN instance view of VPN-spoke is displayed. vpn-target vpn-target1 &<1-8> import-extcommunity The VPN target extended community for the IPv6 VPN instance is created.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration The system view is displayed. ipv6 vpn6-instance vpn6-instance-name The IPv6 VPN instance view of the VPN-spoke is displayed. vpn-target vpn-target2 &<1-8> import-extcommunity The VPN target extended community for the IPv6 VPN instance is created. The VPN- IPv6 routes advertised by the Hub-PE are imported.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration You can bind VLANIF interfaces to IPv6 VPN instances. Step 3 Run: ipv6 enable The IPv6 capability is enabled on the interface. Step 4 Run: ipv6 binding vpn6-instance vpn6-instance-name The interface is bound with the IPv6 VPN instance.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration NOTE The 32-bit mask IP addresses of the loopback interfaces must be used to establish the MP-IBGP peer relationship between PEs. This can ensure the tunnel can be iterated. The route destined to the loopback interface is advertised to the remote PE based on IGP on the MPLS backbone network.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration Configuring static routes between the Hub-PE and the Hub-CE If the Hub-CE uses the default route to access the Hub-PE, to advertise the default route to...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration Run the display ipv6 routing-table command to check routing information on the Hub- CE and all the Spoke-CEs. ----End Example Run the preceding commands. If the routing table of the VPN-spoke has routes to all the Spoke stations, and the routing table of the VPN-hub has routes to the Hub and all the Spoke stations, it means the configuration succeeds.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration For configuration of LSPs and MPLS TE tunnels, refer to the Quidway S7700 Smart Routing Switch Configuration Guide - MPLS. Data Preparation To configure the tunnel policy, you need the following data.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration is not selected except in the case of load balancing or when the preceding tunnels are in the Down state. For example, if the tunnel select-seq lsp gre load-balance-number 1 command is configured, a VPN selects GRE tunnels if no LSP exists.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration Run the display ipv6 vpn6-instance verbose [ vpn6-instance-name ] command to check name of the tunnel policy of the IPv6 VPN instance . ----End Example Run the display tunnel-policy tunnel-policy-name command.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration Pre-configuration Tasks Before configuring the IPv6 VPN-Option A, complete the following tasks: Configuring IGP for MPLS backbone networks in each AS to realize IP connectivity of the...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration Procedure Step 1 4.4 Configuring Basic BGP/MPLS IPv6 VPN on each AS. Step 2 Configuring ASBR by considering the peer ASBR as its CE. Step 3 Configuring an IPv6 VPN instance for the PE and the ASBR separately. For more detail, refer 4.3 Configuring an IPv6 VPN...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration 4.8.1 Establishing the Configuration Task Before configuring inter-AS IPv6 VPN OptionB, familiarize yourself with the applicable environment, complete the pre-configuration tasks, and obtain the required data. This can help you complete the configuration task quickly and accurately.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration 4.8.2 Configuring MP-IBGP Between PEs and ASBRs in the Same With extended community attributes added to BGP, MP-IBGP can advertise VPNv6 routes between PEs and ASBRs.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration The system view is displayed. Step 2 Run interface interface-type interface-number The view of the interface connected with the ASBR interface is displayed. Step 3 Run ip address ip-address { mask | mask-length } The IPv4 address of the interface is configured.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration The system view is displayed. Step 2 Run bgp as-number The BGP view is displayed. Step 3 Run ipv6-family vpnv6 The BGP IPv6 VPN address family is displayed.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration Step 3 Run route-distinguisher route-distinguisher The RD is configured for the IPv6 VPN instance. Step 4 Run vpn-target vpn-target &<1-8> import-extcommunity The VPN target extended community for the IPv6 VPN instance is created.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration Procedure Run the display bgp vpnv6 all routing-table command to check the VPN-IPv6 routing table on the PE or the ASBR. Run the display bgp vpnv6 all peer command to check information about all the BGP peers on the PE or the ASBR.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration Client PEs. An RR can be a P, PE, ASBR, or other devices. To relieve the burden of an RR, you can configure the RR to maintain routing information instead of forwarding user data.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration The RR is specified as the BGP peer. Step 4 Run: peer ipv4-address connect-interface interface-type interface-number The interface is specified as an interface to establish the TCP connection.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration The interface is specified as an interface to establish the TCP connection. The IP address of the interface must be the same as the MPLS LSR ID. It is recommended to specify a loopback interface to establish the TCP connection.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration Context Do as follows on the RR. Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: bgp as-number The BGP view is displayed.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration Run the display bgp vpnv6 all group [ group-name ] command to check information about the IPv6 VPN peer group on the RR. ----End Example...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration 4.10.3 Viewing the Integrated Route Statistics of all IPv6 VPN Instances The comprehensive route statistics for IPv6 VPN Instances refer to the route statistics for all IPv6 VPN Instances.
For more information, see the chapter "Information Center Configuration" in the Quidway S7700 Smart Routing Switch Configuration Guide - System Management. For the description about the debugging commands, refer to the Quidway S7700 Smart Routing Switch Debugging Reference. Procedure...
Page 386
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration GigabitEthernet2/0/0 VLANIF 1011 1999::1/64 Configuration Roadmap The configuration roadmap is as follows: Configure an IGP protocol on the IPv4 public network to implement interconnection on the backbone network.
Page 387
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration Set IPv6 or IPv4 addresses for interfaces. # Set the IPv6 address for the interface of CE1. [CE1] interface vlanif 100 [CE1-Vlanif100] ipv6 enable [CE1-Vlanif100] ipv6 address 2001::1 64...
Page 388
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration Step 4 Establish a tunnel between PE1 and PE2. The MPLS LDP LSP is used in this example. # Enable MPLS and MPLS LDP on PE1.
Page 389
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration Step 5 Configure the VPNv6 instance on PE1 and PE2. # Configure the IPv6 VPN instance vpna on PE1. [PE1] ipv6 vpn6-instance vpna [PE1-vpn6-instance-vpna] route-distinguisher 100:1...
Page 390
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration [PE1] display ipv6 vpn6-instance verbose Total VPN6-Instances configured : 2 VPN6-Instance Name and ID : vpna, 1 Create date : 2009/05/17 15:38:28 UTC-08:00 Up time : 0 days, 00 hours, 07 minutes and 34 seconds...
Page 391
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration 3.3.3.9 0 00:02:19 Established You can see that a VPNv6 peer relation is established between PE1 and PE2. Step 7 Configure BGP4+ on PE1 and CE1.
Page 400
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration Spoke-CE1 GigabitEthernet1/0/0 VLANIF 50 2001::1/64 Spoke-CE2 GigabitEthernet1/0/0 VLANIF 60 2002::1/64 Configuration Roadmap The configuration roadmap is as follows: Set up tunnel and IBGP peer relation between the Hub-PE and the Spoke-PE. Do not set up IBGP peer relation between Spoke-PEs because they do not exchange VPN routes.
Page 401
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration The VPN targets of the two IPv6 VPNs on the Hub-PE are advertised by the two Spoke-PE, and the advertised VPN target is different from the received VPN target.
Page 404
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration Step 5 Set up MP-IBGP peer relations between PEs. Set up MP-IBGP peer relation between the Spoke-PE and the Hub-PE, but do not set up the MP- IBGP peer relation between the Spoke-PEs.
Page 412
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration Spoke-CE1 GigabitEthernet1/0/0 VLANIF 50 2001::1/64 Spoke-CE2 GigabitEthernet1/0/0 VLANIF 60 2002::1/64 Configuration Roadmap The configuration roadmap is as follows: Set up tunnel and IBGP peer relation between the Hub-PE and the Spoke-PE. Do not set up IBGP peer relation between Spoke-PEs because they do not exchange VPN routes.
Page 413
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration After the configuration, LDP peer relation can be set up between the Hub-PE and the Spoke- PEs. Run the display mpls ldp session command on each Switch, and you can see that the session status is Operational.
Page 414
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration After the configuration, run the display ipv6 vpn6-instance verbose command on the PEs, and you can view the configuration of the IPv6 VPN instances. Take the display on Hub-PE as an example.
Page 415
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration After the configuration, run the display bgp vpnv6 all peer command on a PE, and you can find that the BGP peer relation between the PE and the CE is in Established state. By running the ping ipv6 vpn6-instance, you can see that each PE can ping its connected CE.
Page 416
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration [Hub-PE-bgp] peer 3.3.3.9 connect-interface loopback 1 [Hub-PE-bgp] ipv6-family vpnv6 [Hub-PE-bgp-af-vpnv6] peer 1.1.1.9 enable [Hub-PE-bgp-af-vpnv6] peer 3.3.3.9 enable [Hub-PE-bgp-af-vpnv6] quit After the configuration, run the display bgp vpnv6 all peer command on each PE, and you can see that the MP-IBGP peer relation between the PEs is in Established state.
Page 417
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration *> Network : FE80:: PrefixLen : 10 NextHop : :: LocPrf PrefVal Label : NULL Path/Ogn : ? After the configuration, the Spoke-CEs can ping each other. Run the tracert command, and you can see that the traffic between the Spoke-CEs is forwarded through the Hub-CE.
Page 424
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration Configuration Roadmap The configuration roadmap is as follows: Set up the EBGP peer relation between the PE and the CE and set up MP-IBGP peer relation between the PE and the ASBR.
Page 425
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration [ASBR-PE1] mpls [ASBR-PE1-mpls] quit [ASBR-PE1] mpls ldp [ASBR-PE1-mpls-ldp] quit [ASBR-PE1] interface vlanif 11 [ASBR-PE1-Vlanif11] mpls [ASBR-PE1-Vlanif11] mpls ldp [ASBR-PE1-Vlanif11] quit # Configure the basic MPLS function on ASBR-PE2 and enable LDP on the interface connected to PE2.
Page 426
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration [CE1-Vlanif10] quit [CE1] bgp 65001 [CE1-bgp] router-id 10.10.10.10 [CE1-bgp] peer 2001::2 as-number 100 [CE1-bgp] ipv6-family unicast [CE1-bgp-af-ipv6] peer 2001::2 enable [CE1-bgp-af-ipv6] import-route direct [CE1-bgp-af-ipv6] quit [CE1-bgp] quit # On PE1, set up an EBGP peer relation between PE1 and CE1.
Page 427
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration BGP local router ID : 1.1.1.9 Local AS number : 100 Total number of peers : 2 Peers in established state : 2 Peer MsgRcvd...
Page 436
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration GE3/0/0 VLANIF 1002 2006::1/64 Configuration Roadmap The configuration roadmap is as follows: Configure a basic BGP/MPLS IPv6 VPN. Enable load balancing for the data traffic to CE2 in the BGP view on CE1.
Page 437
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration After the configuration is complete, run the display ip routing-table command. you can see that PE1 and PE2 can learn the routes of Loopback1 interface of each other; PE2 and PE4 can learn routes of Loopback1 interface of each other.
Page 439
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration # Enable IPv6, create a VPN instance, and set the RD and VPN target of the VPN instance. The VPN target set on the local PE must be the same as the VPN target of the MP-BGP peer PE so that the sites in the same VPN can access each other.
Page 441
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration [PE4] bgp 100 # Enter the view of the BGP-IPv6 instance. Specify CE2 as the EBGP peer and import the direct route. [PE4-bgp] ipv6-family vpn6-instance vpn1...
Page 442
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration # Enter the VPNv6 address family view and enable the exchange of the VPN IPv6 routing information between the peers. [PE3-bgp] ipv6-family vpnv6 [PE3-bgp-af-vpnv6] peer 1.1.1.1 enable [PE3-bgp-af-vpnv6] quit # Configure PE2.
Page 443
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration Step 9 Verify the configuration. Check the BGP IPv6 routing table of CE2. You can see that the MED value of the route to 2005::/64 advertised by the PE3 is 120. This value is greater than the MED value of the route advertised by the PE4.
Page 454
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration Configuration Roadmap The configuration roadmap is as follows: Set up MP-IBGP connections between the PEs and RR so that the PEs do not need to set up an MP-IBGP connection.
Page 455
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration Enable MPLS and MPLS LDP on the devices and interfaces along the LSP. The configuration procedure is not mentioned here. After the configuration, run the display mpls ldp session command, and you can see in the display that the Session State item is Operational.
Page 456
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration The configuration of PE2 is similar to the configuration of PE1, and is not mentioned. After the configuration, run the display bgp vpnv6 all peer command on the PEs, and you can see that the IBGP peer relation is set up between the PEs and RR and is in Established state.
Page 457
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration If CE1 and CE2 can ping each other, it indicates that the route reflection function is configured successfully. Configuration Files Configuration file of PE1 sysname PE1...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration VLL Configuration About This Chapter This chapter describes how to configure a VLL to transparently transmit data on the MPLS network. 5.1 Introduction to VLL A Virtual Leased Line (VLL) emulates the traditional leased line on the IP network, and provides asymmetric and low-cost digital data network (DDN) services.
Page 462
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration If the MPLS backbone network on which a Martini VLL is set up spans multiple ASs, you can configure the Martini VLL to be an inter-AS Martini VLL.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration 5.1 Introduction to VLL A Virtual Leased Line (VLL) emulates the traditional leased line on the IP network, and provides asymmetric and low-cost digital data network (DDN) services. For users on both ends of a VLL, the VLL is similar to the traditional leased line.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration Attachment Circuit (AC) : AC is an independent link or circuit that connects CE and PE. The AC interface may be a physical interface or a logical interface. The AC attributes include the encapsulation type, MTU and interface parameters of specified link type.
Page 465
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration from one PE to another PE. Configuration command is run on the PE to map the static LSP to the CCC connection. SVC VLL The SVC implements VLL through static configuration. The SVC transfers L2VPN information without using the signaling protocols.
Page 466
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration The Kompella supports both local and remote connections. It supports inter-AS L2VPN in the following two modes: Multi-hop mode: adopts routes with BGP label. MP-EBGP mode: saves label block on the ASBR.
Page 467
For details on how to access the VLL through a sub-interface, see Connecting Sub-interfaces to a VLL Network in the Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet. Processing Tags Carried in Packets by the VLL The system process packets according to the AC interface type and PW encapsulation type.
Page 468
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration Table 5-2 Processing VLAN tags carried in packets from the PW by the AC AC Interface Type Processing of the VLAN Tag Ethernet, GE, XGE or Eth-Trunk interface Do not process the packet.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration Asymmetrically connected CEs One CE is connected to a PE through an AC and the other CE is dual-homed to PEs through two ACs, as shown in Figure 5-3.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration Pre-configuration Tasks Before configuring the CCC VLL, complete the following task: Configuring the basic MPLS capability on the MPLS backbone network (PEs and P) Data Preparation To configure the CCC VLL, you need the following data.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration Context The local CCC connection is bidirectional, and thus only one connection is required. Do as follows on the PEs: Procedure Step 1 Run: system-view The system view is displayed.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration Do as follows on the Ps that the VC passes through: Run: system-view The system view is displayed. Run: static-lsp transit lsp-name incoming-interface interface-type interface- number in-label in-label nexthop nexthop-address out-label out-label The P device is configured as a transit LSR of the static LSP.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration Data Type and number of the interface accessing CE Destination LSR ID of SVC In-label and out-label values of L2VPN connection Tunnel policy of the SVC 5.4.2 Enabling MPLS L2VPN Before configuring an SVC VLL, you must enable MPLS L2VPN.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration NOTE To use an XGE interface, a GE interface, an Ethernet interface, or an Eth-Trunk interface of the S7700 as the AC interface of the PE, you need to perform step 3 to configure the Layer 2 interface as a Layer 3 interface.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration <Quidway> display l2vpn ccc-interface vc-type static-vc up Total ccc-interface of SVC VC: 1 up (1), down (0) Interface Encap Type State VC Type Vlanif1110 vlan static-vc 5.5 Configuring Martini VLL This section describes how to configure a Martini VLL.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration 5.5.2 Enabling MPLS L2VPN Before configuring a Martini VLL, you must enable MPLS L2VPN. Context Do as follows on the PEs of the two ends of the VC:...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration Step 4 Run: quit Return to the system view. Step 5 Run: interface interface-type interface-number The AC interface view is displayed. Step 6 (Optional) Run: undo portswitch The Layer 2 interface is configured as a Layer 3 interface.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration The Kompella mode adopts the label block. Each CE is allocated with a label block that decides this CE can set up how many connections with other CEs. This permits some additional label to the VPN for the future extensibility.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration The MPLS L2VPN is enabled. ----End 5.6.3 Configuring BGP/MPLS L2VPN To configure a local Kompella connection, you do not need to configure the L2VPN capacity of BGP. Context For local connection, the configuration in this section is not required.
Page 482
When Huawei products are connected with non-Huawei products in Kompella mode, you can choose one of the following configurations on the S7700: l Configure the MTU of the L2VPN on the PE to be the same as that of non-Huawei products. l Use the ignore-mtu-match command to ignore the MTU matching check.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration 5.6.5 Creating a CE Connection Context A CE ID is used to uniquely identify a CE in a VPN. It is recommended that the CE IDs are numbered in series starting from 1.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration The CE is created and the MPLS L2VPN CE view is displayed. Step 4 Run: connection [ ce-offset id ] interface interface-type interface-number [ tunnel- policy policy-name ] [ raw | tagged ] A CE connection is created.
Page 485
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration group group-name [ internal ] An IBGP peer group is created. Run: peer ip-address group group-name The peer is added to the peer group. Run: peer group-name connect-interface interface-type interface-number The interface is specified as an interface to establish the TCP connection.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration 5.6.7 Checking the Configuration After a Kompella VLL is configured, you can view BGP and connection information about the Kompella VLL, L2VPN information on PEs, and information about the route target (RT) attribute list.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration Data Number of each AS 5.7.2 Configuring Inter-AS Option A In inter-AS Martini VLL OptionA, each ASBR must reserve a sub-interface for each inter-AS VC. Therefore, this solution is only applicable to the situation that the number of inter-AS VCs is small.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration VC type : VLAN destination : 11.11.11.11 local group ID remote group ID local VC label : 23552 remote VC label 23552 local AC OAM State : up...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration Inter-AS VPN-Option A If the number of VPNs and VPN routes on the PE is small, the inter-AS VPN Option A scheme can be used. When this scheme is used, the ASBR must support VPN instances and can manage VPN routes.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration 5.8.3 Checking the Configuration After an inter-AS Kompella VLL is configured, you can view BGP and connection information about the Kompella VLL, L2VPN information on PEs, and information about the Route Target (RT) attribute list.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration NOTE To configure a Martini VLL or PWE3 for VLL FRR, you must use the PW template to configure a PW, enable the control word in the PW template.
Page 494
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration Run: mpls l2vpn The MPLS L2VPN view is displayed. Run: mpls l2vpn default martini The system switches to the Martini mode. NOTE Before using the mpls l2vpn default martini command to set the behavior of the dynamic VC signaling to non-Notification mode, you need to delete the configurations of VCs (including PWE3 VCs and VPLS VCs) that support the Notification signaling.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration Run: ce ce-name id ce-id [ range ce-range ] [ default-offset ce-offset ] The MPLS-L2VPN-CE view is displayed. Run: connection [ ce-offset id ] interface interface-type interface-number [ tunnel-policy policy-name ] [ raw | tagged ] A master connection is created for the CE.
To detect statuses of the tunnels that carry PWs, you can configure BFD for tunnels. For detailed configuration, refer to the chapters "Basic MPLS Configuration" and "MPLS TE Configuration" in the Quidway S7700 Smart Routing Switch Configuration Guide - MPLS. 5.9.5 (Optional) Configuring the Revertive Switchover The revertive switching policies can be classified into three modes: immediate revertive mode, delayed revertive mode, and non-revertive mode.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration l Immediate revertive switchover: The local PE immediately switches traffic to the master PW and notifies the fault to the remote PE of the backup PW. The PE notifies the rectification of the fault to the remote PE of the backup PW after the period of resume-time.
Page 498
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration local forwarding state : forwarding local status code : 0x0 remote AC OAM state : up remote PSN state : up remote forwarding state: forwarding remote status code...
Page 499
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration VC last up time : 2010/12/01 10:00:00 VC total up time : 0 days, 2 hours, 20 minutes, 0 seconds CKey NKey PW redundancy mode : -- AdminPw interface...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration manual fault set or not: not set AC OAM state: BFD for PW session index: BFD for PW state: BFD for LSP state: true Local C bit is set,...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration The function of collecting traffic statistics is only valid to the VLL connection that is created after this function is enabled. ----End 5.10.2 Viewing Traffic Statistics on the VLL This section describes how to view VLL traffic statistics on the specified interface.
When a fault occurs, run the following debugging commands in the user view to locate the fault. For the procedure of displaying the debugging information, refer to the chapter "System Maintenance" in the Quidway S7700 Smart Routing Switch Configuration Guide - Device Management.
Page 507
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration Interface Encap Type State VC Type Vlanif10 ethernet Vlanif20 ethernet CE1 and CE2 can ping each other. Take CE1 for example. <CE1> ping 100.1.1.2 PING 100.1.1.2: 56 data bytes, press CTRL_C to break Reply from 100.1.1.2: bytes=56 Sequence=1 ttl=255 time=180 ms...
Page 510
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration Step 3 Assign an IP address to each VLANIF interface of the Switches. # Configure PE1. <Quidway> system-view [Quidway] sysname PE1 [PE1] interface loopback 1 [PE1-LoopBack1] ip address 1.1.1.9 32...
Page 511
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration Step 5 Create the remote CCC connection between the two PEs. # Configure PE1: Enable MPLS L2VPN globally and create the remote CCC connection from CE1 to CE2. Connect the incoming interface of PE1 to CE1 and the outgoing interface of PE1 to the P.
Page 512
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration Run the display mpls lsp command on the P, and you can view the label and interface information of the two static LSPs. <P> display mpls lsp -------------------------------------------------------------------------------...
Page 517
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration <PE1> display mpls static-l2vc interface vlanif 10 *Client Interface : Vlanif10 is up AC Status : up VC State : up VC ID VC Type : VLAN Destination : 3.3.3.9...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration 5.11.4 Example for Configuring a Martini VLL Networking Requirements As shown in Figure 5-7, CE1 and CE2 are connected to PE1 and PE2 respectively through VLANs. A Martini VLL is set up between CE1 and CE2.
Page 521
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration Enable MPLS L2VPN and create VC connections on the PEs. Data Preparation To complete the configuration, you need the following data: IP address of the remote peer of each PE...
Page 523
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration Administrator PW : no session state : up AC state : up VC state : up VC ID : 101 VC type : VLAN destination : 3.3.3.9 local group ID...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration vlan batch 40 interface Vlanif 40 ip address 100.1.1.2 255.255.255.0 interface GigabitEthernet1/0/0 port link-type trunk port trunk allow-pass vlan 40 return 5.11.5 Example for Configuring a Local Kompella VLL...
Page 527
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration Data Preparation To complete the configuration, you need the following data: Names of VPN instances and RDs Names and IDs of the CEs (The CE IDs are globally unique.) CE range, namely, the label...
Page 528
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration primary CE1 and CE2 can ping each other. <CE1> ping 30.1.1.2 PING 30.1.1.2: 56 data bytes, press CTRL_C to break Reply from 30.1.1.2: bytes=56 Sequence=1 ttl=255 time=24 ms Reply from 30.1.1.2: bytes=56 Sequence=2 ttl=255 time=26 ms...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration return Configuration file of CE2 sysname CE2 vlan batch 20 interface Vlanif20 ip address 30.1.1.2 255.255.255.0 interface GigabitEthernet1/0/0 port link-type trunk port trunk allow-pass vlan 20 return 5.11.6 Example for Configuring a Remote Kompella Connection...
Page 530
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration GigabitEthernet1/0/0 VLANIF 10 30.1.1.1/24 GigabitEthernet1/0/0 VLANIF 40 30.1.1.2/24 Configuration Roadmap The configuration roadmap is as follows: Configure routing protocols on the PEs and P on the backbone network to implement internetworking, and enable basic MPLS functions and LDP.
Page 531
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration 127.0.0.1/32 Direct 0 127.0.0.1 InLoopBack0 127.255.255.255/32 Direct 0 127.0.0.1 InLoopBack0 168.1.1.0/24 Direct 0 168.1.1.1 Vlanif20 168.1.1.1/32 Direct 0 127.0.0.1 InLoopBack0 168.1.1.255/24 Direct 0 168.1.1.1 Vlanif20 169.1.1.0/24 OSPF 168.1.1.2 Vlanif20 255.255.255.255/32...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration interface GigabitEthernet1/0/0 port link-type trunk port trunk allow-pass vlan 40 return 5.11.7 Example for Configuring the Inter-AS Martini VLL Option Networking Requirements As shown in Figure 5-10, the Option A scheme is used to establish the inter-AS Martini VLL.
Page 537
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration GigabitEthernet2/0/0 VLANIF 40 30.1.1.1/24 Loopback0 3.3.3.9/32 GigabitEthernet1/0/0 VLANIF 10 100.1.1.1/24 GigabitEthernet1/0/0 VLANIF 50 100.1.1.2/24 Configuration Roadmap The configuration roadmap is as follows: Run an IGP protocol on the backbone network so that the devices in the same AS can communicate with each other.
Page 538
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration <PE1> ping 2.2.2.9 PING 2.2.2.9: 56 data bytes, press CTRL_C to break Reply from 2.2.2.9: bytes=56 Sequence=1 ttl=255 time=180 ms Reply from 2.2.2.9: bytes=56 Sequence=2 ttl=255 time=90 ms Reply from 2.2.2.9: bytes=56 Sequence=3 ttl=255 time=60 ms...
Page 540
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration <ASBR-PE2> display mpls l2vc interface Vlanif 30 *client interface : Vlanif30 is up session state : up AC state : up VC state : up VC ID : 100...
Page 544
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration Figure 5-11 Networking diagram for configuring the inter-AS Kompella VLL Option A BGP/MPLS Backbone BGP/MPLS Backbone AS 100 AS 200 Loopback1 Loopback1 Loopback1 Loopback1 4.4.4.4/32 2.2.2.2/32 3.3.3.3/32 1.1.1.1/32...
Page 545
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration Establish an IBGP adjacency between the PE and the ASBR-PE in an AS. Set up a Kompella VLL connection between the PE and the ASBR-PE in an AS.
Page 546
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 60/78/90 ms Step 3 Enable MPLS and establish the LSP. Enable MPLS and establish LDP LSP on the ASBR-PE and the PEs in the same AS.
Page 547
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration Local AS number : 100 Total number of peers : 1 Peers in established state : 1 Peer MsgRcvd MsgSent OutQ Up/Down State PrefRcv 2.2.2.2 00:00:03 Established Step 5 Enable BGP peers in the BGP L2VPN address family view.
Page 549
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 5 VLL Configuration manual fault set or not: not set AC OAM state: BFD for PW session index: BFD for PW state: invalid BFD for LSP state: true Local C bit is not set...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration PWE3 Configuration About This Chapter This chapter describes how to configure PWE3 to transparently transmit data on the MPLS network. 6.1 Introduction to PWE3 PWE3 refers to a Layer 2 service-bearing technology on a PSN that emulates basic characteristics of ATM services, FR services, Ethernet services, low-speed TDM services, and SONET/SDH services.
Page 555
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration 6.9 Configuring Dynamic BFD for PW This section describes how to configure dynamic BFD for PW. After dynamic BFD for PW is configured, the fault on a PW can be rapidly detected and upper-layer applications can be immediately switched.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration 6.2 PWE3 Features Supported by the S7700 PWE3 can be classified into the static PW and dynamic PW based on implementation schemes, and can be classified into the single-hop PW and multi-hop PW based on networking types.
Page 559
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration Figure 6-3 Process of tearing down an SH-PW Loopback1 Loopback1 2.2.2.2/32 1.1.1.1/32 mpls l2vc 2.2.2.2 101 mpls l2vc 1.1.1.1 101 VC Deletion Withdraw Release Withdraw VC Deletion When PE1 does not forward packets sent from PE2 for a specific cause, that is, PE2 is no longer a peer of PE2, PE1 sends a Withdraw message to PE2.
Page 560
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration An MH-PW is a set of two or more contiguous PW segments between two U-PEs. Switching labels at PW label layer is required. Figure 6-5 shows an MH-PW that functions as a single point-to-point PW.
Page 561
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration After a session is set up, BFD quickly sends detection packets. VCCV ping is used to periodically check the information consistency of the control plane and data plane.
Page 562
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration Figure 6-7 Asymmetrically connected CEs backbone Site2 Site1 Inter-AS PWE3 In actual network, multiple sites of a VPN of a user may connect with multiple service providers of different ASs or with multiple ASs of a service provider. The VPN is called inter-AS VPN.
Page 563
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration As shown in Figure 6-8, as for ASBR1 in the AS 100, ASBR2 is a CE. Similarly, as for ASBR2, ASBR1 is a CE. Option A is easy to implement. No inter-AS configuration is needed on the ASBRs. The interfaces that connect the ASBR do not need to be configured with any IP addresses.
Page 564
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration – The source PE of the PWE3 tracert continues to send MPLS echo request packets with the Time-to-Live (TTL) of the outer label from one to a certain value and the TTL of the inner label as one.
Page 565
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration addition, the PW label switching from the downstream mapping information sent by each device can be seen. – On SPE1, start PWE3 tracert to UPE1 or to SPE2 and UPE2. The PWE3 tracert to UPE1 is the same as the PWE3 SH tracert.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration VCCV-PING The S7700 supports VC Connectivity Verification (VCCV) negotiation and VCCV-PING on U-PEs of a static PW, dynamic PW, SH-PW, and MH-PW. The VCCV-PING has two modes: CW mode and Label Alert mode.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration NOTE Some PW attributes such as MTU, PW type, and encapsulation type are obtained from the interface directly connected to a CE. Therefore, those parameters do not need to be configured manually.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration 6.3.3 Setting the Attributes for a PW Template A PW template has the attributes such as the IP address of the peer, control word, tunnel policy name, and MTU.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration If you specify a PW attribute by using a command line, the same PW attribute specified in the PW template does not function on the PW to which this PW template is applied.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration 6.4.1 Establishing the Configuration Task Before configuring a static PW, familiarize yourself with the applicable environment, complete the pre-configuration tasks, and obtain the required data. This can help you complete the configuration task correctly and quickly.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration mpls l2vpn MPLS L2VPN is enabled. Before configuring an MPLS L2VC connection, enable MPLS L2VPN. ----End 6.4.3 Creating a Static PW Before configuring a static PW, you must specify the VC label.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration Procedure Run the display mpls static-l2vc [ vc-id | interface interface-type interface-number | state { down | up } ] command to check information about a specified static PW on a PE.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration Configuring basic MPLS functions on the backbone Establishing tunnels between PEs based on the tunnel policy Setting up remote LDP sessions between PEs Data Preparation To configure a dynamic PW, you need the following data.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration The system view is displayed. Step 2 Run: interface interface-type interface-number [ .subinterface-number ] The interface view of the interface attached to an AC is displayed. Step 3 (Optional) Run: undo portswitch A Layer 2 interface is switched to a Layer 3 interface.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration Administrator PW : no session state : up AC state : up VC state : up VC ID : 100 VC type : VLAN destination : 6.6.6.6 local group ID...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration Applicable Environment To support Multi-Hop, the PW switching is needed. MH-PW requires switching labesl at PW label layer while forwarding packets. PW switching must be configured on the S-PE with high performance and capability of setting up large numbers of MPLS LDP sessions.
Page 577
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration Static PWs switching: Both PWs used to switch are static. Dynamic PWs switching: Both PWs used to switch are dynamic. Mixed PWs switching: One of the PWs is dynamic, and the other is static.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration Pre-configuration Tasks Before configuring a backup PW, complete the following tasks: Configuring an IGP on PEs and Ps in the MPLS backbone to implement IP interworking Enabling MPLS on PEs and Ps...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration A Layer 2 interface is switched to a Layer 3 interface. When using XGE, GE, Ethernet, and Eth-Trunk interfaces as AC interfaces, run this command to switch Layer 2 interfaces to Layer 3 interfaces.
Page 582
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration manual fault : not set active state : active forwarding entry : exist link state : up local VC MTU : 1500 remote VC MTU : 1500 Local VCCV...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration 6.8.2 Enabling BFD Globally BFD needs to be enabled globally before static BFD for PW is configured. Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: BFD is enabled on the local node and the BFD view is displayed.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration A BFD configuration entry is created. The outbound interface interface interface-type interface-number bound to a BFD session refers to the AC interface where the PW resides.If a management PW is bound to the BFD session, the interface should be the loopback interface where the management PW resides.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration Example Run the display bfd configuration pw interface interface-type interface-number [ secondary ] [ verbose ] command, and you can view the discriminators of the BFD session, the type of the PW that is bound to the BFD session, and the type of the BFD session. For example: <Quidway>...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration 6.9.1 Establishing the Configuration Task Before configuring dynamic BFD for PW, familiarize yourself with the applicable environment, complete the pre-configuration tasks, and obtain the required data. This can help you complete the configuration task correctly and quickly.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration Step 2 Run: BFD is enabled on the local node and the BFD view is displayed. ----End 6.9.3 Enabling the Sending of BFD for PW Packets to the Protocol...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration 6.9.5 (Optional) Adjusting BFD Parameters BFD detection parameters include the multiple of the local BFD detection time, expected minimum interval for receiving packets, and expected minimum interval for sending packets.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration After the PW FRR is configured, L2VPN traffic is rapidly switched to the backup path when a fault occurs on the master path. After the fault on the master path is rectified, the L2VPN traffic is switched back to the master path according to the revertive switchover policy.
Page 593
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration In the networking where CEs are asymmetrically connected to PEs, you need to configure primary and backup PWs. The primary and backup PWs must be of the same type.
To detect statuses of the tunnels that carry PWs, you can configure BFD for tunnels. For detailed configuration, refer to the chapters "Basic MPLS Configuration" and "MPLS TE Configuration" in the Quidway S7700 Smart Routing Switch Configuration Guide - MPLS. 6.10.4 (Optional) Configuring the Revertive Switchover The revertive switching policies can be classified into three modes: immediate revertive mode, delayed revertive mode, and non-revertive mode.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration Step 3 Run: mpls l2vpn reroute { { delay delay-time | immediately } [ resume resume-time ] | never } The revertive switchover policy is configured. The types of the revertive switchover on PEs are as follows: l Immediate revertive switchover: The local PE immediately switches traffic to the master PW and notifies the fault to the remote PE of the backup PW.
Page 596
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration <Quidway> display mpls l2vc interface vlanif 10 *client interface : Vlanif10 is up session state : up AC state : up VC state : up VC ID : 100...
Page 597
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration local control word : enable remote control word : enable tunnel policy name : -- traffic behavior name : -- PW template name : 1to2 primary or secondary...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration Run the display mpls l2vpn forwarding-info [ vc-label ] interface interface-type interface- number command, and you can view that the ENTRYTYPE of the master PW is SEND, PWSTATE is ACTIVE, BFDSTATE is UP, and ADMIN is UP. For example: <Quidway>...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration Pre-configuration Tasks Before configuring inter-AS PWE3, complete the following tasks: Configuring an IGP protocol for MPLS backbone networks in each AS to ensure IP connectivity within an AS...
Page 600
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration Run the display mpls l2vc remote-info [ vc-id ] command to check information about the PW of the remote PE on the local PE. ----End Example Run the display mpls l2vc [ vc-id | interface interface-type interface-number ] command. In the command output, you can find that "VC state"...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration 6.12 Maintaining PWE3 This section describes how to maintain PWE3. Detailed operations include PW connectivity detection, and PW fault location. 6.12.1 Verifying the Connectivity of a PW After PWE3 is configured, the PWE3 connectivity can be detected.
In the case of operational faults, run the debugging command in the user view to debug the PWE3 and locate the faults. For the procedure of outputting the debugging information, refer to the chapter "Maintenance and Debugging" in the Quidway S7700 Smart Routing Switch Configuration Guide - Device Management.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration 6.13.1 Example for Configuring a Dynamic SH-PW Networking Requirements As shown in Figure 6-12, PE1 and PE2 are connected through an MPLS backbone network. An LSP needs to be used to set a dynamic PW between PE1 and PE2.
Page 605
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration Run an IGP protocol on the devices of the backbone network to implement connectivity. Configure the basic MPLS functions on the backbone network and set up an LSP. Set up the MPLS LDP peer relation between the two PEs on the two ends of the PW.
Page 606
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration 0.00% packet loss round-trip min/avg/max = 90/136/230 ms Step 3 Enable MPLS and set up tunnels and LDP sessions. Enable MPLS on the backbone network, set up LSPs and LDP remote sessions between the PEs.
Page 607
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration local status code : 0x0 remote AC OAM state : up remote PSN state : up remote forwarding state: forwarding remote status code : 0x0 BFD for PW...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration 6.13.2 Example for Configuring a Static MH-PW Networking Requirements You need to set up a static MH-PW between U-PE1 and U-PE2. The S-PE is the switching node, which sets up a two-hop static PW.
Page 611
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration Loopback0 3.3.3.9/32 GigabitEthernet1/0/0 VLANIF 10 100.1.1.1/24 GigabitEthernet1/0/0 VLANIF 60 100.1.1.2/24 Configuration Roadmap The configuration roadmap is as follows: Run a routing protocol on the devices of the backbone network to implement connectivity.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration interface GigabitEthernet1/0/0 port link-type trunk port trunk allow-pass vlan 60 return 6.13.3 Example for Configuring a Dynamic MH-PW Networking Requirements As shown in Figure 6-14, U-PE1 and U-PE2 are connected through the MPLS backbone network.
Page 618
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration GigabitEthernet2/0/0 VLANIF 50 40.1.1.1/24 Loopback0 4.4.4.9/32 S-PE GigabitEthernet1/0/0 VLANIF 30 20.1.1.2/24 GigabitEthernet2/0/0 VLANIF 40 30.1.1.1/24 Loopback0 3.3.3.9/32 GigabitEthernet1/0/0 VLANIF 10 100.1.1.1/24 GigabitEthernet1/0/0 VLANIF 60 100.1.1.2/24 Configuration Roadmap The configuration roadmap is as follows: Run an IGP protocol on the devices of the backbone network to implement connectivity.
Page 619
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration <S-PE> display ip routing-table Route Flags: R - relied, D - download to fib ------------------------------------------------------------------------------ Routing Tables: Public Destinations : 18 Routes : 18 Destination/Mask Proto Cost Flags NextHop Interface 1.1.1.9/32 OSPF...
Page 621
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration LDP Session(s) in Public Network Codes: LAM(Label Advertisement Mode), SsnAge Unit(DDDD:HH:MM) A '*' before a session means the session is being deleted. ------------------------------------------------------------------------------ PeerID Status SsnRole SsnAge KASent/Rcv ------------------------------------------------------------------------------ 1.1.1.9:0...
Page 623
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration VC last up time : 2011/01/27 12:31:31 VC total up time : 0 days, 2 hours, 12 minutes, 51 seconds CKey NKey : 15 PW redundancy mode AdminPw interface...
Page 624
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration Reply from 100.1.1.2: bytes=56 Sequence=5 ttl=255 time=130 ms --- 100.1.1.2 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 120/150/180 ms Information about the path between CE1 and CE2 is as follows: [CE1] tracert 100.1.1.2...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration 6.13.4 Example for Configuring a Mixed MH-PW Networking Requirements U-PE1 and U-PE2 are connected through the MPLS backbone network. You need to create a mixed MH-PW between U-PE1 and U-PE2 with the S-PE as the switching node.
Page 629
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration Loopback0 3.3.3.9/32 GigabitEthernet1/0/0 VLANIF 10 100.1.1.1/24 GigabitEthernet1/0/0 VLANIF 60 100.1.1.2/24 Configuration Roadmap The configuration roadmap is as follows: Run an IGP protocol on the devices of the backbone network to implement connectivity.
Page 630
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration The configuration procedure is not mentioned. Step 4 Create a VC connection. Enable MPLS L2VPN on U-PE1, U-PE2, and S-PE. Create a dynamic VC connection U-PE1 and a static VC connection on U-PE2. Configure a mixed switching PW on the S-PE.
Page 631
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration active state : active forwarding entry : exist link state : up local VC MTU : 1500 remote VC MTU : 1500 local VCCV : alert lsp-ping bfd...
Page 637
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration Configuration Roadmap The configuration roadmap is as follows: Configure the MPLS network to make the network layer reachable. On the AC interface of PE1, configure PW1 (from PE1 to PE2) and PW2 (from PE1 to PE3).
Page 638
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration 200.2.1.0/30 OSPF 200.1.1.2 Vlanif30 255.255.255.255/32 Direct 0 127.0.0.1 InLoopBack0 Step 3 Configure the basic MPLS capabilities on the MPLS backbone network. # Enable MPLS, and set LSR-ID as the IP address of the Loopback1 interface. Enable MPLS and MPLS LDP on interfaces on the backbone network.
Page 639
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration NOTE If the PEs are directly connected, you do not need to manually configure remote LDP sessions between them. # Configure PE1. [PE1] mpls ldp remote-peer 4.4.4.4 [PE1-mpls-ldp-remote-4.4.4.4] remote-ip 4.4.4.4 [PE1-mpls-ldp-remote-4.4.4.4] quit...
Page 641
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration AdminPw link state : -- *client interface : Vlanif10 is up Administrator PW : no session state : up AC state : up VC state : up VC ID...
Page 643
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration AC state : up VC state : up VC ID : 100 VC type : VLAN destination : 4.4.4.4 local group ID remote group ID local VC label...
Page 644
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration local control word : enable remote control word : enable tunnel policy : -- traffic behavior : -- PW template name : 1to3 primary or secondary : secondary...
Page 645
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration destination : 4.4.4.4 local group ID remote group ID local VC label : 23552 remote VC label local AC OAM State : up local PSN State : up...
Page 646
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration NKey : 15 PW redundancy mode : -- AdminPw interface : -- AdminPw link state : -- reroute policy : delay 30 s, resume 0 s reason of last reroute...
Page 652
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration LSR IDs of the devices VC-ID of the PW BFD parameters Procedure Step 1 Configure interface addresses for CE, PE,and P according to Figure 6-17, including VLAN and VLANIF interfaces.
Page 654
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration Tunnel ID Type Destination Token ---------------------------------------------------------------------- 0x10000 2.2.2.9 0x10001 3.3.3.9 Run the display mpls ldp session command on PE, and you can see that the LDP peer relation between the PE and the neighboring P is in Operational state.
Page 657
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration manual fault : not set active state : active forwarding entry : exist link state : up local VC MTU : 4470 remote VC MTU : 4470 local VCCV...
Page 658
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration interface Vlanif10 ip address 10.1.1.1 255.255.255.252 interface GigabitEthernet1/0/0 port link-type trunk port trunk allow-pass vlan 10 return Configuration file of PE1 sysname PE1 vlan batch 10 20 bfd for pw enable mpls lsr-id 1.1.1.9...
Page 662
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration Configuration Roadmap The configuration roadmap is as follows: Run an IGP protocol on the devices of the backbone network to implement connectivity. Configure the basic MPLS functions on the backbone network and set up an LSP. Set up MPLS LDP peer relations between U-PE1 and S-PE, and between U-PE2 and S-PE.
Page 666
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration LDP Session(s) in Public Network Codes: LAM(Label Advertisement Mode), SsnAge Unit(DDDD:HH:MM) A '*' before a session means the session is being deleted. ------------------------------------------------------------------------------ PeerID Status SsnRole SsnAge KASent/Rcv ------------------------------------------------------------------------------ 1.1.1.9:0...
Page 667
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration NOTE PWE3 does not support point-to-multipoint (P2MP). When you create an MPLS L2VC on an ATM sub- interface, the ATM sub-interface must be in the point-to-point (P2P) type. When you configure the transparent transmission of ATM cells, the type of the ATM sub-interface is not restricted.
Page 668
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration up time : 0 days, 0 hours, 0 minutes, 59 seconds last change time : 0 days, 0 hours, 0 minutes, 59 seconds VC last up time : 2010-11-26 08:25:38...
Page 669
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration local status code : 0x0 remote AC OAM state : up remote PSN state : up remote forwarding state: forwarding remote status code : 0x0 Dynamic BFD for PW...
Page 670
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration Total UP/DOWN Session Number : 1/0 ----End Configuration Files Configuration file of CE1 sysname CE1 vlan batch 10 interface Vlanif10 ip address 100.1.1.1 255.255.255.0 interface GigabitEthernet1/0/0 port link-type trunk...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration 6.13.8 Example for Configuring Inter-AS PWE3-Option A Networking Requirements As shown in Figure 6-19, the Option A scheme is used to establish the inter-AS PWE3. Figure 6-19 Networking diagram for configuring inter-AS PWE3-Option A...
Page 675
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration Configuration Roadmap The configuration roadmap is as follows: Run an IGP protocol on the backbone network so that the devices in the same AS can communicate with each other.
Page 676
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration 1.1.1.9/32 ISIS 10.1.1.1 Vlanif20 2.2.2.9/32 Direct 0 127.0.0.1 InLoopBack0 10.1.1.0/24 Direct 0 10.1.1.2 Vlanif20 10.1.1.2/32 Direct 0 127.0.0.1 InLoopBack0 10.1.1.255/32 Direct 0 127.0.0.1 InLoopBack0 127.0.0.0/8 Direct 0 127.0.0.1 InLoopBack0 127.0.0.1/32...
Page 678
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 6 PWE3 Configuration VC state : up VC ID : 100 VC type : VLAN destination : 4.4.4.9 local group ID remote group ID local VC label : 21505 remote VC label...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration VPLS Configuration About This Chapter This chapter describes the principle, applications, and configurations of VPLS. 7.1 Introduction to VPLS The Virtual Private LAN Service (VPLS), also called the Transparent LAN Service (TLS) or virtual private switched network service, is an L2VPN technology that is based on Multi- Protocol Label Switching (MPLS) and Ethernet technologies.
Page 683
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration When deploying VPLS in a larger scope, PEs or CEs may belong to different ASs. In such a situation, you cannot directly establish PWs between PEs based on LDP. To address the problem, you can configure inter-AS LDP VPLS.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration 7.1 Introduction to VPLS The Virtual Private LAN Service (VPLS), also called the Transparent LAN Service (TLS) or virtual private switched network service, is an L2VPN technology that is based on Multi- Protocol Label Switching (MPLS) and Ethernet technologies.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration The Pseudo Wire (PW) is a virtual connection used to transmit frames between two PEs. The PE establishes and maintains PWs through signaling and the two PEs on both ends of a PW maintain the PW status.
Page 686
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration Control Plane and Data Plane The control plane of the VPLS PE has the following functions: Member discovery: To find all the other PEs in the same VPLS, implement it by manually configuring or by automatically running certain protocols.
Page 687
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration The sub-interfaces can be dotlq sub-interfaces, QinQ sub-interfaces, VLAN mapping sub- interfaces, or VLAN stacking sub-interfaces. When XGE, GE, Ethernet, or Eth-Trunk interfaces are used as AC interfaces, the outer tags carried in the packets sent from the AC to the PW are C tags (inserted by user devices, which are meaningless to the SP) by default.
Page 688
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration Table 7-2 Processing tags carried in packets from the PW by the AC AC Interface Type Processing of the Tag Ethernet, GE, or XGE interface Do not process the packet.
Page 689
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration Figure 7-3 HVPLS model basic VPLS full mesh In the HVPLS model, PEs falls into the following two types: Underlayer PE (UPE) It refers to the user aggregation device. It is directly connected with the CE. It is only necessary for the UPE to set up the connection with a PE in the VPLS fully-connected network.
Page 690
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration VLL Accessing the VPLS As shown in Figure 7-4, in the HVPLS, SPE1 and SPE2 support VPLS. VSIs of the SPEs adopt LDP as the signaling protocol of the VPLS.
Page 691
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration Figure 7-5 Networking diagram of the static VLL accessing the VPLS network in dual-homed mode SPE1 SPE3 UPE1 UPE2 SPE4 SPE2 LDP Message As shown in Figure 7-5, if a fault occurs on the LSP between the UPE1 and the SPE1, SPE1 detects the fault and asks the other SPEs to delete the related MAC addresses by sending LDP messages.
Page 692
NOTE For detailed principles of VPLS MAC Ping and VPLS MAC Trace, refer to the Chapter "VPLS" in the Quidway S7700 Smart Routing Switch Feature Description. S7700 supports the following VPLS network detection modes: Non-NQA mode: indicates that the network detection is implemented through a command line.
Page 693
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration Figure 7-6 Typical networking of a CE dual homed to the VPLS network VPLS Data flow 1 Data flow 2 As shown in Figure 7-6, a ring is formed by PE2, PE3, and the CE. Therefore, STP needs to be enabled on the ring to prevent the loop.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration ASBRs of different ASs are inter-connected in back-to-back mode. Switch 1 and Switch 2 (Switch 3 and Switch 4) communicate with each other in either of the following modes: –...
Page 695
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration forward packets. The PE identifies the remote MAC addresses through the PW and the directly- connected MAC addresses through the AC. The MAC address learning has the following two modes: Qualified: The PE identifies the MAC addresses according to the MAC addresses of the Ethernet packets and the VLAN tags, that is, based on every VLAN of every VSI.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration 7.3 Configuring Kompella VPLS This section describes how to configure Kompella VPLS. Detailed operations include configuring BGP as the signaling protocol, and configuring VPN targets to implement automatic discovery of VPLS PEs.
NOTE For details of commands in BGP VPLS address family view, refer to the chapter "IP Routing Commands" in the Quidway S7700 Smart Routing Switch Command Reference. Do as follows on the PEs of the two ends of the PW:...
NOTE For information about commands in the BGP VPLS sub-address family view, refer to the chapter "IP Routing Commands" in the Quidway S7700 Smart Routing Switch Command Reference. 7.3.3 Creating a VSI and Configuring BGP Signaling This part describes how to configure Kompella VPLS. Detailed operations include creating and configuring VSIs (set RDs and VPN targets of the VSIs), configuring BGP, and creating site connections.
Page 699
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration pwsignal bgp The PW signaling protocol is configured as BGP and the VSI-BGP view is displayed. Step 4 Run: route-distinguisher route-distinguisher The RD of the VSI is configured.
7.3.4 (Optional) Configuring Huawei Devices to Communicate with Non-Huawei Devices When interconnecting a Huawei device with other vendor's devices, you need to set the global encapsulation type of Kompella VPLS on the Huawei device, and configure the Huawei device to ignore the MTU match check.
The sub-interfaces can be dotlq sub-interfaces, QinQ sub-interfaces, VLAN mapping sub-interfaces, or VLAN stacking sub-interfaces. For details on how to access the VPLS through a sub-interface, see Connecting Sub-interfaces to a VPLS Network in the Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet.
Page 702
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration Run: interface { ethernet | gigabitethernet | xgigabitethernet } interface- number The Ethernet interface view is displayed. (Optional) Run: undo portswitch The Layer 2 interface is configured as a Layer 3 interface.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration NOTE Member interfaces of a trunk cannot be Eth-Trunk interfaces. Run: eth-trunk trunk-id The interface is added into the Eth-Trunk. Before adding an interface into an Eth-Trunk, ensure the interface is not configured with any Layer 3 attributes such as IP address and any services.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration 7.4 Configuring Martini VPLS This section describes how to configure Martini VPLS, with the signaling type beling LDP. 7.4.1 Establishing the Configuration Task Before configuring Martini VPLS, familiarize yourself with the applicable environment, complete the pre-configuration tasks, and obtain the required data.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration Data Preparation To configure Martini VPLS, you need the following data. Data VSI name VSI ID IP address of the peer and tunnel policy to establish the peer Binding interface of the VSI 7.4.2 Creating a VSI and Configuring LDP Signaling...
The sub-interfaces can be dotlq sub-interfaces, QinQ sub-interfaces, VLAN mapping sub-interfaces, or VLAN stacking sub-interfaces. For details on how to access the VPLS through a sub-interface, see Connecting Sub-interfaces to a VPLS Network in the Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet.
Page 709
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration (Optional) Run: undo portswitch The Layer 2 interface is configured as a Layer 3 interface. Run: l2 binding vsi vsi-name The VSI is bound to the Ethernet interface.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration Before adding an interface into an Eth-Trunk, ensure the interface is not configured with any Layer 3 attributes such as IP address and any services. An Ethernet interface can join only one Eth-Trunk interface. To join another Eth- Trunk interface, the Ethernet interface must quit from the original one.
Page 711
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration Example Run the display vsi [ name vsi-name ] [ verbose ] command. You can view that the item "VSI State" is displayed as "up". If verbose is selected, the item "Signaling" is displayed as "ldp" and the item "VC State"...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration Local VSI description: Remote VSI description: PW State: Up local remote ------------------------------------------------ VSI Name: ldpvpls ldpvpls VSI ID: VPN Type: Martini VPLS Martini VPLS Admin State: Oper State:...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration Data Preparation To configure the HVPLS, you need the following data. Data Corresponding relationship between the UPE and the SPE IP address of the peer VSI name, VSI ID, and the interface bound with VSI Tunnel policy 7.5.2 Configuring SPE...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration 7.5.3 Configuring UPE This part describes how to configure a UPE to establish the VSI peer relationships with SPEs. Context The configuration of the UPE is similar to that on the PE of the VPLS fully-connected network.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration VSI State : up ..Run the display vsi remote ldp [ router-id ip-address ] [ pw-id pw-id ] command. If information about the remote VSI established through LDP is displayed, it means that the configuration succeeds.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration Data ID of the destination LSR of the static VLL Received and sent label of the static VLL Tunnel policy of the static VLL 7.6.2 Configuring a UPE to Access an SPE Through a Static VLL Context Do as follows on the UPE.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration Procedure Step 1 Run: system-view The system view is displayed. Step 2 Enter the interface view. NOTE The encapsulation modes of the VLL and VPLS must be the same regardless of the access mode.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration The VSI view is created and the static member discovery is enabled. Step 3 Run: pwsignal ldp The LDP is specified as the PW signaling protocol and the VSI LDP view is displayed.
Page 719
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration Run the display vsi remote ldp [ router-id ip-address ] [ pw-id pw-id ] command to check information about the remote VSI. Run the display vpls connection [ ldp | vsi vsi-name ] [ down | up ] [ verbose ] command to check information about the VPLS connection.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration ..Run the display vsi remote ldp [ router-id ip-address ] [ pw-id pw-id ] command. If information about the remote VSI established through LDP is displayed, it means that the configuration succeeds.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration Configuring the VSI on the PE connected with the CE and binding the VSI to the AC interface Configuring the IP address on the CE interface that accesses the PE...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration NOTE In inter-AS VPLS Option A, for the same VPLS network, the VPN target of the VSI on the ASBR and that on the PE in the same AS must be matched. The VPN target of the VSI on the ASBR and that on the PE in different ASs need not be matched.
Page 723
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration Run the display bgp vpls all command on the PE or ASBR. You can view information about the VPLS label block on the ASBR. For example: <Quidway> display bgp vpls all BGP Local Router ID : 1.1.1.1, Local AS Number : 100...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration 192.3.3.3 Egress Info: Succeeded in tracing the destination address 00e0-5952-6f01. 7.8 Configuring Inter-AS Martini VPLS When deploying VPLS in a larger scope, PEs or CEs may belong to different ASs. In such a situation, you cannot directly establish PWs between PEs based on LDP.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration Context The configuration of inter-AS Martini VPLS Option A is as follows: 7.3.7 Checking the Configuration for each AS Configuring the ASBR by regarding the peer ASBR as the local CE No inter-AS-related configuration needs to be performed on the ASBR.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration PW State: Up local remote ------------------------------------------------ VSI Name: ldpvpls ldpvpls VSI ID: VPN Type: Martini VPLS Martini VPLS Admin State: Oper State: VSI MTU: 1500 1500 CE Count: Actual IP Addr: 9.9.9.9...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration 7.9.1 Establishing the Configuration Task Before configuring dual-homed Kompella VPLS, familiarize yourself with the applicable environment, complete the pre-configuration tasks, and obtain the required data. This can help you complete the configuration task quickly and accurately.
Page 729
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration The system view is displayed. Step 2 Run: vsi vsi-name auto VSIs are created and the automatic member discovery mechanism is adopted. The Kompella VPLS does not directly operate on the connection between CEs. Each CE has a globally unique number.
Configuration Guide - VPN 7 VPLS Configuration Step 9 is configured only when the PE communicates with non-Huawei devices. Before performing Step 9, check the encapsulation type of the VSI on the peer PE. The local VSI and peer VSI can communicate only when the VSI encapsulation type of the peer PE is the same as that configured for the local PE.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration 7.9.4 Binding a VSI to an AC Interface According to different AC link types, you can bind a VSI to AC interfaces in different views. Context For the configuration procedure, see "Binding the VSI to the Interface Connected with CE".
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration -------------------------------------------------------------------------------- *> 2 4.4.4.4 35840 4.4.4.4 Run the display vpls connection command on the PE. You can view that the status of the VPLS connection on the PE is "up". For example: <Quidway>...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration Context Do as follows on the PEs of the both ends of the PW: Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: vsi vsi-name [ auto | static ] The VSI view is displayed.
Page 734
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: mac-address aging-time aging-time The aging time of MAC address entries for the VPLS is configured.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration 7.10.4 Configuring a VSI to Ignore the AC Status When the services running on the old network will switch to the new network, you can configure a VSI to ignore the AC status.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration The VSI can be Up only if at least one AC interface or the UPE PW is Up. After you configure a VSI to ignore the AC status, the VSI can keep Up when the VSI PW is Up. That is, the VSI status bears no relation to the AC status.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration Figure 7-11 Networking where the VPLS network is deployed over the edge layer Access Ethernet Aggregation Edge PE-AGG DSLAM VPLS PE-AGG DSLAM Pre-configuration Tasks Before configuring the suppression on broadcast traffic based on VSIs, complete the following...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: vsi vsi-name The VSI view is displayed. Step 3 Run: broadcast-suppression cir cir-value cbs cbs-value The broadcast traffic is suppressed based on VSIs.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration 7.12.2 Checking the Traffic on a VPLS PW After VPLS traffic statistics are enabled, you can view information about the traffic on VPLS PWs. Context NOTE If a PW becomes Down in five minutes, the traffic calculated before the PW becomes Down is not used to calculate the 5-minute traffic rate.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration 7.12.4 Checking the Consistency of VPN Configurations(Service Ping) Checking the consistency of VPN configurations, you can locate faults on the VPN connection. Context NOTE To reduce the bandwidth consumption, the ping vpn-config command only sends one probe packet and set timeout period for waiting for a Response packet to 10 seconds.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration Procedure Run the undo mac-address static mac-address interface-type interface-number vlanif interface-number vsi vsi-name command to clear the MAC address entries of the VSI. Run the undo mac-address { dynamic | static | all } command to clear the dynamic, static, or all the MAC address entries.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration Procedure Run: mac-populate vsi vsi-name mac mac-address [ packet-num num | flood ] * A test on the MAC address learning capacity is initiated by adding an OAM MAC address to the device.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration Context To check connectivity of a VPLS network, configure a VPLS network and do as follows on the Procedure Run: ping vpls mac mac-address vsi vsi-name [ vlan vlan-id | -c count | -m time- value | -s packsize | -t timeout | -exp exp | -r replymode | -h ttl ] Connectivity of the Layer 2 forwarding link on the VPLS network is checked.
Page 746
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration established with LDP as the VPLS signaling, and VPLS is configured to implement the interworking between CE1 and CE2. Figure 7-12 Networking diagram for configuring Martini VPLS Loopback1...
Page 747
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration Data Preparation To complete the configuration, you need the following data: Names and IDs of VSIs IP addresses of peers and tunnel policy used for setting up peer relationships...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration interface GigabitEthernet1/0/0 port hybrid pvid vlan 30 port hybrid tagged vlan 30 interface GigabitEthernet2/0/0 port hybrid pvid vlan 40 port hybrid tagged vlan 40 interface LoopBack1 ip address 3.3.3.9 255.255.255.255 ospf 1 area 0.0.0.0...
Page 753
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration GigabitEthernet 2/0/0 VLANIF 30 169.1.1.1/24 Loopback1 2.2.2.9/32 GigabitEthernet 1/0/0 VLANIF 10 10.1.1.1/24 GigabitEthernet 1/0/0 VLANIF 40 10.1.1.2/24 Configuration Roadmap The configuration roadmap is as follows: Configure a routing protocol on the backbone network to implement the interworking between devices and enable basic MPLS functions.
Page 754
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration Step 3 Configure basic MPLS functions and LDP. For detailed configuration procedures, see the following configuration files. After the configuration, run the display mpls ldp peer command. You can find that the peer relationship is established between PE1 and P and between PE2 and P.
Page 755
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration [PE1] interface vlanif 10 [PE1-Vlanif10] l2 binding vsi bgp1 # Create a sub-interface on PE2, allow the sub-interface to receive packets from VLAN 10, and bind a VSI to the sub-interface.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration return 7.13.3 Example for Configuring VPLS over TE in Martini Mode Networking Requirements Figure 7-14 Networking of VPLS over TE in Martini mode Loopback1 Loopback1 Loopback1 1.1.1.9/32 3.3.3.9/32 2.2.2.9/32...
Page 760
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration Interfaces to which VSIs are bound Procedure Step 1 Create VLANs and configure interfaces to allow packets of these VLANs to pass. # Configure PE1. [Quidway] sysname PE1...
Page 761
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration [PE2] mpls lsr-id 3.3.3.9 [PE2] mpls [PE2-mpls] mpls te [PE2-mpls] mpls rsvp-te [PE2-mpls] mpls te cspf [PE2-mpls] quit [PE2] interface vlanif 30 [PE2-Vlanif30] mpls [PE2-Vlanif30] mpls te [PE2-Vlanif30] mpls rsvp-te [PE2-Vlanif30] quit Step 4 Configure OSPF TE on the backbone network.
Page 762
[PE1-Tunnel1/0/0] display this interface Tunnel1/0/0 current state : UP Line protocol current state : UP Description : HUAWEI, Quidway Series, Tunnel1/0/0 Interface Route Port,The Maximum Transmit Unit is 1500 bytes Internet Address is unnumbered, using address of LoopBack1(1.1.1.9/32) Encapsulation is TUNNEL, loopback not set Tunnel destination 3.3.3.9...
Page 764
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration [CE2] interface vlanif 40 [CE2-Vlanif40] ip address 10.1.1.2 255.255.255.0 [CE2-Vlanif40] quit Step 11 Verify the configuration. After the preceding configurations, run the display vsi name a2 verbose command on PE1, and you can view that the VSI named a2 has established a PW to PE2, and the VSI is in Up state.
Page 765
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration SessionID IngressLsrID 1.1.1.1 LocalLspID Tunnel-Interface Tunnel1/0/0 3.3.3.9/32 Nexthop 100.1.1.2 In-Label NULL Out-Label 9217 In-Interface ---------- Out-Interface Vlanif20 LspIndex 2048 Token 0x10080 LsrType Ingress Mpls-Mtu 1500 TimeStamp 2040sec Bfd-State Run the display vsi pw out-interface vsi a2 command on PE1, and you can view that the outbound interface of the MPLS TE tunnel between 1.1.1.9 and 3.3.3.9 is Tunnel 1/0/0, but the...
Page 772
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration After the preceding configurations, run the display vsi name v123 verbose command on the SPE. You can view that the VSI named v123 is in the Up state and the corresponding PW is also in the Up state.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration return 7.13.5 Example for Configuring Static VLLs to Access a VPLS Network Networking Requirements As shown in Figure 7-16, UPEs do not support dynamic VLLs, and access SPEs through static VLLs;...
Page 777
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration Loopback1 3.3.3.9/32 UPE2 GigabitEthernet 1/0/0 VLANIF 50 100.1.4.2/24 GigabitEthernet 2/0/0 VLANIF 60 Loopback1 5.5.5.9/32 GigabitEthernet 1/0/0 VLANIF 10 10.1.1.1/24 GigabitEthernet 1/0/0 VLANIF 60 10.1.1.2/24 Configuration Roadmap The configuration roadmap is as follows: Complete the task of Configuring Martini VPLS between SPEs.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration 7.13.6 Example for Configuring Dynamic VLLs to Access a VPLS Network Networking Requirements As shown in Figure 7-17, VLLs are set up between UPEs and SPEs in Martini mode. CE1 and CE2 access the full-meshed VPLS network through UPEs.
Page 788
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration GigabitEthernet2/0/0 VLANIF 40 100.1.4.2/24 Loopback1 5.5.5.9/32 GigabitEthernet1/0/0 VLANIF 50 10.1.1.1/24 GigabitEthernet1/0/0 VLANIF 60 10.1.1.2/24 Configuration Roadmap The configuration roadmap is as follows: Configure a routing protocol on the backbone network.
Page 792
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration VC last up time : 2010-01-16 10:53:02 VC total up time : 0 days, 0 hours, 7 minutes, 55 seconds CKey : 16 NKey : 15 Run the display vsi name v100 command on an SPE, and you can see that the VSI named v100 is in Up state and the PW is also in Up state.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration return 7.13.7 Example for Configuring Inter-AS Martini VPLS Option A Networking Requirements As shown in Figure 7-18, the Option A scheme is adopted to establish the inter-AS Martini VPLS.
Page 797
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration Configuration Roadmap The configuration roadmap is as follows: Run an IGP on the MPLS backbone network so that devices in the same AS can interwork. Configure basic MPLS functions on devices in the backbone network and establish dynamic LSPs between PEs and ASBR-PEs in the same AS.
Page 798
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration Reply from 2.2.2.2: bytes=56 Sequence=4 ttl=255 time=60 ms Reply from 2.2.2.2: bytes=56 Sequence=5 ttl=255 time=100 ms --- 2.2.2.2 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 60/98/180 ms Step 3 Enable MPLS and configure dynamic LSPs.
Page 804
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration It is required to adopt Option A to implement inter-AS Kompella VPLS. The interfaces that connect ASBR-PEs serve as AC interfaces to which VSIs are bound, that is, the interfaces are exclusively used by the VPLS.
Page 805
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration Configure an IGP on the backbone network to implement the connectivity between ASBR- PEs and PEs and set up tunnels between PEs. Establish MP IBGP peer relationships between PEs and ASBR-PEs in the same AS.
Page 806
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration 100.1.1.255/32 Direct 0 127.0.0.1 InLoopBack0 127.0.0.0/8 Direct 0 127.0.0.1 InLoopBack0 127.0.0.1/32 Direct 0 127.0.0.1 InLoopBack0 127.0.0.1/32 Direct 0 127.0.0.1 InLoopBack0 127.255.255.255/32 Direct 0 127.0.0.1 InLoopBack0 255.255.255.255/32 Direct 0 127.0.0.1...
Page 807
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration Take the display on PE1 as an example. <PE1> display bgp vpls peer BGP local router ID : 1.1.1.1 Local AS number : 100 Total number of peers : 1...
Page 809
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration Run the display bgp vpls all command on a PE or an ASBR-PE, and you can view information about the VPLS label block of BGP. Take ASBR-PE1 as an example.
Page 810
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 7 VPLS Configuration ip address 100.1.1.1 255.255.255.0 isis enable 1 mpls mpls ldp interface GigabitEthernet1/0/0 port link-type trunk port trunk allow-pass vlan 10 interface GigabitEthernet2/0/0 port link-type trunk port trunk allow-pass vlan 20 interface LoopBack1 ip address 1.1.1.1 255.255.255.255...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 8 VPLS Convergence Configuration VPLS Convergence Configuration About This Chapter This chapter describes the rationale, application, and configuration of VPLS convergence. 8.1 VPLS Convergence Overview This section describes the principle and concepts of VPLS convergence.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 8 VPLS Convergence Configuration 8.1 VPLS Convergence Overview This section describes the principle and concepts of VPLS convergence. The Ethernet switching technology has been mainly applied to the Local Area Network (LAN) for a long time.
Page 816
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 8 VPLS Convergence Configuration mVRRP The only difference between an mVRRP group and a common VRRP group is that the mVRRP group can be bound to service VRRP groups and can determine the status of a service VRRP group according to the binding relation.
Page 817
NPE and uses NPE2 as the backup NPE; the user of UPE2 uses NPE2 as the master NPE and uses NPE1 as the backup NPE. NOTE For more information about VRRP, see VRRP and VRRP6 Configuration in the Quidway S7700 Smart Routing Switch Configuration Guide - Reliability. mVRRP over mVPLS mVRRP over mVPLS indicates that mVRRP packets are transmitted by the mVSI through the mPW.
Page 818
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 8 VPLS Convergence Configuration the mPW between the UPE and the NPEs and forwarded by the mVSI. Other service packets are transmitted through the service PW and exchanged by the service VSI between the UPE and the NPEs.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 8 VPLS Convergence Configuration In addition, different from the service VSI, the mVSI is used to transmit and intercept the ARP packets; therefore, you cannot shut down the mVSI. 8.3 Configuring VPLS Convergence (UPE Directly...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 8 VPLS Convergence Configuration Pre-configuration Tasks Before configuring basic functions of VPLS convergence (UPE directly accesses the NPEs), complete the following tasks: Setting the LSR ID on the UPE and the NPE, enabling MPLS, and creating an MPLS LDP...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 8 VPLS Convergence Configuration peer peer-address [ negotiation-vc-id vc-id ] [ tnl-policy policy-name ] upe The VSI peer relation is configured between the UPE and the NPE. The MPLS LSR ID of the NPE is configured as the peer address.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 8 VPLS Convergence Configuration 8.3.4 Checking the Configuration Prerequisite The configurations of VPLS convergence are complete. Procedure Run the display admin-vsi binding [ admin-vsi vsi-name ] command to view the binding relations between the mVSI and the service VSIs.
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 8 VPLS Convergence Configuration Data Name of the management VSI BFD name Peer IP address of the VSI PW to be detected by the BFD session BFD session parameters: local and remote discriminators 8.4.2 Enabling BFD Globally...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 8 VPLS Convergence Configuration 8.4.4 Establishing BFD Sessions After a BFD session is established and bound to the VSI PW, you need to commit the configuration. Context Do as follows on routers at both ends of the VSI PW to be detected:...
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 8 VPLS Convergence Configuration Procedure Run the debugging mpls l2vpn vpls-forward { error-message | mac-event | vpls- event } command in the user view to enable the debugging of software-based VPLS forwarding and view the debugging information.
Page 828
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 8 VPLS Convergence Configuration l Configure the routing protocol on the UPE so that reachable routes are created between the UPE and the NPEs. l Configure the basic MPLS functions on the UPE.
Page 830
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 8 VPLS Convergence Configuration After the configuration, run the display ip interface brief command, and you can see that the protocol status of the created tunnel interface is Up. Configure the tunnel policy.
Page 831
Quidway S7700 Smart Routing Switch Configuration Guide - VPN 8 VPLS Convergence Configuration Configure the service VSI and bind the service interface to the service VSI. NOTE The common HVPLS needs to be configured between the UPE and NPEs. # Configure the UPE.