No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

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

upgrade

Configuration Guide - VPN 01

NE05E and NE08E V300R003C10SPC500

This is NE05E and NE08E V300R003C10SPC500 Configuration Guide - VPN
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Verifying the BGP/MPLS IP VPN Configuration

Verifying the BGP/MPLS IP VPN Configuration

After configuring a basic BGP/MPLS IP VPN, check information about the VPN instance IPv4 address family created on the PE, including the RD and other attributes, and also information about the IPv4 VPN routes to the local and remote sites on the PE and CE.

Prerequisites

A basic BGP/MPLS IP VPN has been configured.

Procedure

  • Run the following commands on the PE to check information about the created VPN instance IPv4 address family, including the RD and other attributes.

    • Run the display ip vpn-instance vpn-instance-name command to check brief information about a specified VPN instance.
    • Run the display ip vpn-instance verbose vpn-instance-name command to check detailed information about a specified VPN instance, including information in the IPv4 and IPv6 address families enabled for the VPN instance.
    • Run the display ip vpn-instance import-vt ivt-value command to check information about the VPN instances with the specified import VPN target.
    • Run the display ip vpn-instance [ vpn-instance-name ] interface command to view information about the interface bound to a specified VPN instance.

    • Run the display mpls label-stack vpn-instance vpn-instance-name ip-address command to check L3VPN label stack information.

  • Run the following commands on the PE and CE to check information about the IPv4 VPN routes to the local and remote sites:

    • Run the display ip routing-table vpn-instance vpn-instance-name command on the PE to check the routing information of a specified VPN instance IPv4 address family.

    • Run the display ip routing-table command on the CE to check routing information.

Example

After completing the configurations, run the display ip vpn-instance command on a PE. The command output shows brief information about the VPN instances created on the PE.

# View brief information about the VPN instances.

<HUAWEI> display ip vpn-instance 
 Total VPN-Instances configured : 2
 Total IPv4 VPN-Instances configured : 2
 Total IPv6 VPN-Instances configured : 1

  VPN-Instance Name               RD                   Creation Time                     Address-family
  vpn1                            1:1                  2012-11-01 02:11:35               ipv4          
  vpn1                            2:2                  2012-11-01 03:19:20               ipv6          
  vpn2                            1:2                  2012-11-01 03:19:43               ipv4

Run the display ip vpn-instance verbose command on a PE. The command output shows detailed information about the VPN instance created on the PE.

# View detailed information about the VPN instance named vpn1.

<HUAWEI> display ip vpn-instance verbose vpn1
VPN-Instance Name and ID : vpn1, 1
  Description : vrf1
  Interfaces : LoopBack1 
Address family ipv4  
  Create date : 2010/03/05 16:26:27
  Up time : 0 days, 00 hours, 09 minutes and 12 seconds
  Vrf Status : UP
  Route Distinguisher : 100:1
  Export VPN Targets :  1:1
  Import VPN Targets :  1:1
  Label Policy : label per instance
  Per-Instance Label : 1029  
  IP FRR Enable
  Import Route Policy : rp1
  The diffserv-mode Information is : uniform
  The ttl-mode Information is : uniform
  Export Route Policy : rp2
  Tunnel Policy : tp1
  Maximum Routes Limit : 200
  Threshold Routes Limit : 80%

Run the display ip vpn-instance import-vt ivt-value command on a PE. The command output shows information about the VPN instances with the specified import VPN target.

# View information about the VPN instances with the import VPN target of 1:1.

<HUAWEI> display ip vpn-instance import-vt 1:1
The number of ipv4-family matched the import-vt : 3
 VPN-Instance Name and ID : vrf1, 1
 VPN-Instance Name and ID : vrf4, 5
 VPN-Instance Name and ID : vrf5, 4

The number of ipv6-family matched the import-vt : 2
 VPN-Instance Name and ID : vrf1, 1
 VPN-Instance Name and ID : vrf5, 4

Run the display ip vpn-instance [ vpn-instance-name ] interface command on a PE. The command output shows the interface that is bound to the specified VPN instance.

# View the interface bound to the VPN instance named vpna.

<HUAWEI> display ip vpn-instance vpna interface
 VPN-Instance Name and ID : vpna, 1
  Interface Number : 1
  Interface list : GigabitEthernet0/1/3

Run the display ip routing-table vpn-instance vpn-instance-name command on a PE. The command output shows the routing information of a specified VPN instance, including the VPN routes to CEs.

# View the routing information of the VPN instance named vpna.

<HUAWEI> display ip routing-table vpn-instance vpna
Route Flags: R - relay, D - download
to fib, T - to vpn-instance, B - black hole route
------------------------------------------------------------------------------
Routing Tables: vpna
         Destinations : 5        Routes : 5

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

       10.1.1.0/24  Direct  0    0           D   10.1.1.2        GigabitEthernet0/1/3
       10.1.1.2/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/1/3
     10.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/1/3
       10.3.1.0/24  IBGP    255  0          RD   3.3.3.9         GigabitEthernet0/1/1
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0

After the configuration is complete, run the display mpls label-stack vpn-instance vpn-instance-name ip-address command to check L3VPN label stack information.

# View label stack information about the VPN instance named vpna.

<HUAWEI> display mpls label-stack vpn-instance vpna 1.1.1.1
Label-stack  : 1
Level        : 1
Type         : VPN
Label        : 1033
Level        : 2
Type         : LDP
Label        : 1041
OutInterface : GigabitEthernet0/1/0

Run the display ip routing-table command on a CE. The command output shows the route to the remote CE.

# View the routing information on the CE.

<HUAWEI> display ip routing-table
Route Flags: R - relay, D - download
to fib, T - to vpn-instance, B - black hole route
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 8        Routes : 8

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

       10.1.1.0/24  Direct  0    0           D   10.1.1.1        GigabitEthernet0/1/1
       10.1.1.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/1/1
     10.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/1/1
       10.3.1.0/24  EBGP    255  0           D   10.1.1.2        GigabitEthernet0/1/1
      127.0.0.0/8   Direct  0    0           D   127.0.0.1       InLoopBack0
      127.0.0.1/32  Direct  0    0           D   127.0.0.1       InLoopBack0
127.255.255.255/32  Direct  0    0            D  127.0.0.1        InLoopBack0
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0

Translation
Download
Updated: 2019-01-14

Document ID: EDOC1100058925

Views: 28025

Downloads: 53

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